Debian Codegraph @

plugins/plugman/example/NotifySendService.h

raw symbols SCIP
1 #ifndef NOTIFYSENDSERVICE_H
2 #define NOTIFYSENDSERVICE_H
3
4 #include <QObject>
5 #include <PluginInfo.h>
6 #include <PluginLoader.h>
7 #include <QProcess>
8 #include <QScopedPointer>
9
10 class NotifySendService : public ServicePlugin
11 {
12 Q_OBJECT
13 public:
14 explicit NotifySendService(QObject *parent = 0);
15
16 // PluginInfo interface
17 public:
18 virtual QString pluginId() const override;
19 virtual QString location() const override;
20 virtual QString i18n() const override;
21 virtual QVariantMap documentation() const override;
22
23 // ServicePlugin interface
24 public:
25 virtual void start();
26 virtual void stop(){}
27
28 private:
29 QProcess m_process;
30 };
31
32 class NotifySendPlugin : public QObject, public PluginInterface
33 {
34 Q_OBJECT
35 Q_INTERFACES(PluginInterface)
36 Q_PLUGIN_METADATA(IID "example.notifysend.plugin")
37
38 // PluginInterface interface
39 public:
40 virtual QString name() const;
41 virtual QString description() const;
42 virtual PluginInfo *create(QObject *parent) const;
43 };
44
45 #endif // NOTIFYSENDSERVICE_H