]> cloud.milkyroute.net Git - dolphin.git/blob - src/dbusinterface.h
Fix up 2f208662cbd604f879027d3cd633a5ce59182a4f
[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 Q_SCRIPTABLE void SortOrderForUrl(const QString &url, QString &role, QString &order);
24
25 /**
26 * Set whether this interface has been created by dolphin --daemon.
27 */
28 void setAsDaemon();
29
30 /**
31 * @return Whether this interface has been created by dolphin --daemon.
32 */
33 bool isDaemon() const;
34
35 private:
36 bool m_isDaemon = false;
37 };
38
39 #endif // DBUSINTERFACE_H