quarkai/plugins/systemmonitor/processmanager.h

51 lines
1.5 KiB
C
Raw Normal View History

2017-12-21 11:51:56 +08:00
/*
2018-01-17 11:45:16 +08:00
* Copyright (C) 2013 ~ 2018 National University of Defense Technology(NUDT) & Tianjin Kylin Ltd.
2017-12-21 11:51:56 +08:00
*
* Authors:
* Kobe Lee xiangli@ubuntukylin.com/kobe24_lixiang@126.com
*
* 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; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2018-01-17 11:45:16 +08:00
2017-12-21 11:51:56 +08:00
#include <QObject>
#include <QString>
2018-01-04 09:50:32 +08:00
#include "../../component/plugininterface.h"
#include "systemmonitor.h"
2017-12-21 11:51:56 +08:00
//插件入口
class ProcessManager : public QObject , PluginInterface
{
Q_OBJECT
Q_INTERFACES(PluginInterface)
2017-12-22 18:03:28 +08:00
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
2018-01-04 09:50:32 +08:00
Q_PLUGIN_METADATA(IID "com.kylin.Plugin.PluginInterface" FILE "systemmonitor.json")//指定IID和.json文件
2017-12-22 18:03:28 +08:00
#endif
2017-12-21 11:51:56 +08:00
public:
2017-12-23 16:11:50 +08:00
explicit ProcessManager(QObject* parent = 0);
2017-12-21 11:51:56 +08:00
virtual ~ProcessManager();
2017-12-23 16:11:50 +08:00
QWidget *centralWidget();
2017-12-21 11:51:56 +08:00
public:
virtual QString getGuid();
virtual QString getName();
virtual QString getDescribe();
virtual QString getPicture();
virtual void doAction();
private:
2018-01-04 09:50:32 +08:00
SystemMonitor *process_dialog = nullptr;
2017-12-21 11:51:56 +08:00
};