File indexing completed on 2024-04-21 05:45:39
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Ashish Bansal <bansal.ashish096@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef DBUSINTERFACE_H 0008 #define DBUSINTERFACE_H 0009 0010 #include <QObject> 0011 0012 class DBusInterface : QObject 0013 { 0014 Q_OBJECT 0015 Q_CLASSINFO("D-Bus Interface", "org.freedesktop.FileManager1") 0016 0017 public: 0018 DBusInterface(); 0019 Q_SCRIPTABLE void ShowFolders(const QStringList &uriList, const QString &startUpId); 0020 Q_SCRIPTABLE void ShowItems(const QStringList &uriList, const QString &startUpId); 0021 Q_SCRIPTABLE void ShowItemProperties(const QStringList &uriList, const QString &startUpId); 0022 0023 Q_SCRIPTABLE void SortOrderForUrl(const QString &url, QString &role, QString &order); 0024 0025 /** 0026 * Set whether this interface has been created by dolphin --daemon. 0027 */ 0028 void setAsDaemon(); 0029 0030 /** 0031 * @return Whether this interface has been created by dolphin --daemon. 0032 */ 0033 bool isDaemon() const; 0034 0035 private: 0036 bool m_isDaemon = false; 0037 }; 0038 0039 #endif // DBUSINTERFACE_H