Changeset View
Changeset View
Standalone View
Standalone View
plugin/libdbusmenuqt/dbusmenuimporter.h
Show All 16 Lines | 1 | /* This file is part of the dbusmenu-qt library | |||
---|---|---|---|---|---|
17 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to | ||
18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
19 | Boston, MA 02110-1301, USA. | 19 | Boston, MA 02110-1301, USA. | ||
20 | */ | 20 | */ | ||
21 | #ifndef DBUSMENUIMPORTER_H | 21 | #ifndef DBUSMENUIMPORTER_H | ||
22 | #define DBUSMENUIMPORTER_H | 22 | #define DBUSMENUIMPORTER_H | ||
23 | 23 | | |||
24 | // Qt | 24 | // Qt | ||
25 | #include <QtCore/QObject> | 25 | #include <QObject> | ||
26 | 26 | | |||
27 | class QAction; | 27 | class QAction; | ||
28 | class QDBusPendingCallWatcher; | 28 | class QDBusPendingCallWatcher; | ||
29 | class QDBusVariant; | 29 | class QDBusVariant; | ||
30 | class QIcon; | 30 | class QIcon; | ||
31 | class QMenu; | 31 | class QMenu; | ||
32 | 32 | | |||
33 | class DBusMenuImporterPrivate; | 33 | class DBusMenuImporterPrivate; | ||
34 | 34 | | |||
35 | /** | 35 | /** | ||
36 | * A DBusMenuImporter instance can recreate a menu serialized over DBus by | 36 | * A DBusMenuImporter instance can recreate a menu serialized over DBus by | ||
37 | * DBusMenuExporter | 37 | * DBusMenuExporter | ||
38 | */ | 38 | */ | ||
39 | class DBusMenuImporter : public QObject | 39 | class DBusMenuImporter : public QObject | ||
40 | { | 40 | { | ||
41 | Q_OBJECT | 41 | Q_OBJECT | ||
42 | public: | 42 | public: | ||
43 | /** | 43 | /** | ||
44 | * Creates a DBusMenuImporter listening over DBus on service, path | 44 | * Creates a DBusMenuImporter listening over DBus on service, path | ||
45 | */ | 45 | */ | ||
46 | DBusMenuImporter(const QString &service, const QString &path, QObject *parent = 0); | 46 | DBusMenuImporter(const QString &service, const QString &path, QObject *parent = nullptr); | ||
47 | 47 | | |||
48 | ~DBusMenuImporter() override; | 48 | ~DBusMenuImporter() override; | ||
49 | 49 | | |||
50 | 50 | | |||
51 | QAction *actionForId(int id) const; | 51 | QAction *actionForId(int id) const; | ||
52 | 52 | | |||
53 | /** | 53 | /** | ||
54 | * The menu created from listening to the DBusMenuExporter over DBus | 54 | * The menu created from listening to the DBusMenuExporter over DBus | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |