2008-06-21 10:28:10 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 by Dominik Riebeling
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2008-06-21 10:28:10 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SYSINFO_H
|
|
|
|
#define SYSINFO_H
|
|
|
|
|
2013-01-27 11:01:56 +00:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QWidget>
|
2008-06-21 10:28:10 +00:00
|
|
|
#include "ui_sysinfofrm.h"
|
|
|
|
|
|
|
|
class Sysinfo : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-11-03 10:35:41 +00:00
|
|
|
enum InfoType {
|
|
|
|
InfoHtml,
|
|
|
|
InfoText,
|
|
|
|
};
|
2008-06-21 10:28:10 +00:00
|
|
|
Sysinfo(QWidget *parent = 0);
|
2011-10-02 14:30:05 +00:00
|
|
|
|
2013-11-03 10:35:41 +00:00
|
|
|
static QString getInfo(InfoType type = InfoHtml);
|
2008-06-21 10:28:10 +00:00
|
|
|
private:
|
2011-10-02 14:30:05 +00:00
|
|
|
void changeEvent(QEvent *event);
|
2008-06-21 10:28:10 +00:00
|
|
|
Ui::SysinfoFrm ui;
|
|
|
|
|
|
|
|
private slots:
|
2011-10-02 14:30:05 +00:00
|
|
|
void updateSysinfo(void);
|
2008-06-21 10:28:10 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|