Dekko
Loading...
Searching...
No Matches
NotifySendService.h
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
11{
12 Q_OBJECT
13public:
14 explicit NotifySendService(QObject *parent = 0);
15
16 // PluginInfo interface
17public:
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
24public:
25 virtual void start();
26 virtual void stop(){}
27
28private:
29 QProcess m_process;
30};
31
32class 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
39public:
40 virtual QString name() const;
41 virtual QString description() const;
42 virtual PluginInfo *create(QObject *parent) const;
43};
44
45#endif // NOTIFYSENDSERVICE_H