-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEpmPlugin.h
More file actions
38 lines (32 loc) · 898 Bytes
/
EpmPlugin.h
File metadata and controls
38 lines (32 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef EPMPLUGIN_H
#define EPMPLUGIN_H
#include "Plugin.h"
#include <QVector>
struct EpmPluginInfo{
QString id;
QString name;
QString description;
QString author;
QString version;
QString min_require;
int timestamp;
};
class EpmPlugin : public Plugin
{
Q_OBJECT
public:
explicit EpmPlugin();
public:
bool initPlugin(QString pluginPath) { Q_UNUSED(pluginPath); return true; }
bool query(Query query,QVector<Result>& vecResult);
bool getMenu(Result& result, QVector<Result>& vecMenu);
void itemClick(Result &item,QObject* parent);
bool parsePluginList(QString& strJson);
EpmPluginInfo* getPluginInfo(QString name);
public:
Q_INVOKABLE void installPlugin(QString url, QObject* parent);
Q_INVOKABLE void setProxy(QString proxy, QObject* parent);
private:
QVector<EpmPluginInfo> m_vecPluginInfo;
};
#endif // EPMPLUGIN_H