Changeset View
Changeset View
Standalone View
Standalone View
src/dbusinterface.h
Show All 26 Lines | 26 | { | |||
---|---|---|---|---|---|
27 | Q_OBJECT | 27 | Q_OBJECT | ||
28 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.FileManager1") | 28 | Q_CLASSINFO("D-Bus Interface", "org.freedesktop.FileManager1") | ||
29 | 29 | | |||
30 | public: | 30 | public: | ||
31 | DBusInterface(); | 31 | DBusInterface(); | ||
32 | Q_SCRIPTABLE void ShowFolders(const QStringList& uriList, const QString& startUpId); | 32 | Q_SCRIPTABLE void ShowFolders(const QStringList& uriList, const QString& startUpId); | ||
33 | Q_SCRIPTABLE void ShowItems(const QStringList& uriList, const QString& startUpId); | 33 | Q_SCRIPTABLE void ShowItems(const QStringList& uriList, const QString& startUpId); | ||
34 | Q_SCRIPTABLE void ShowItemProperties(const QStringList& uriList, const QString& startUpId); | 34 | Q_SCRIPTABLE void ShowItemProperties(const QStringList& uriList, const QString& startUpId); | ||
35 | | ||||
36 | /** | ||||
37 | * Set whether this interface has been created by dolphin --deamon. | ||||
38 | */ | ||||
39 | void setAsDaemon(); | ||||
anthonyfieroni: Since you can't switch from daemon to non-daemon or vice versa, it should be setAsDaemon… | |||||
elvisangelaccio: Good point | |||||
40 | | ||||
41 | /** | ||||
42 | * @return Whether this interface has been created by dolphin --deamon. | ||||
43 | */ | ||||
44 | bool isDaemon() const; | ||||
45 | | ||||
46 | private: | ||||
47 | bool m_isDaemon = false; | ||||
35 | }; | 48 | }; | ||
36 | 49 | | |||
37 | #endif // DBUSINTERFACE_H | 50 | #endif // DBUSINTERFACE_H |
Since you can't switch from daemon to non-daemon or vice versa, it should be setAsDaemon (getting no parameters or inject it as constructor parameter)