]> cloud.milkyroute.net Git - dolphin.git/blob - src/dbusinterface.h
Merge branch 'release/20.08'
[dolphin.git] / src / dbusinterface.h
1 /*
2 * SPDX-FileCopyrightText: 2015 Ashish Bansal <bansal.ashish096@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #ifndef DBUSINTERFACE_H
8 #define DBUSINTERFACE_H
9
10 #include <QObject>
11
12 class DBusInterface : QObject
13 {
14 Q_OBJECT
15 Q_CLASSINFO("D-Bus Interface", "org.freedesktop.FileManager1")
16
17 public:
18 DBusInterface();
19 Q_SCRIPTABLE void ShowFolders(const QStringList& uriList, const QString& startUpId);
20 Q_SCRIPTABLE void ShowItems(const QStringList& uriList, const QString& startUpId);
21 Q_SCRIPTABLE void ShowItemProperties(const QStringList& uriList, const QString& startUpId);
22
23 /**
24 * Set whether this interface has been created by dolphin --daemon.
25 */
26 void setAsDaemon();
27
28 /**
29 * @return Whether this interface has been created by dolphin --daemon.
30 */
31 bool isDaemon() const;
32
33 private:
34 bool m_isDaemon = false;
35 };
36
37 #endif // DBUSINTERFACE_H