File indexing completed on 2024-05-05 17:41:27
0001 /* 0002 SPDX-FileCopyrightText: 2016 Aditya Mehra <aix.m@outlook.com> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef BIGSCREENPLUGIN_DBUS_H 0007 #define BIGSCREENPLUGIN_DBUS_H 0008 0009 #include <QObject> 0010 #include <QStringList> 0011 #include <QtDBus> 0012 0013 QT_BEGIN_NAMESPACE 0014 class QByteArray; 0015 template<class T> 0016 class QList; 0017 template<class Key, class Value> 0018 class QMap; 0019 class QString; 0020 class QVariant; 0021 QT_END_NAMESPACE 0022 0023 /* 0024 * Adaptor class for interface org.kde.bigscreen 0025 */ 0026 class BigscreenDbusAdapterInterface : public QDBusAbstractAdaptor 0027 { 0028 Q_OBJECT 0029 Q_CLASSINFO("D-Bus Interface", "org.kde.bigscreen") 0030 Q_CLASSINFO("D-Bus Introspection", 0031 "" 0032 " <interface name=\"org.kde.bigscreen\">\n" 0033 " <method name=\"autoResolutionChanged\">\n" 0034 " <arg direction=\"in\" />\n" 0035 " </method>\n" 0036 " </interface>\n" 0037 "") 0038 public: 0039 BigscreenDbusAdapterInterface(QObject *parent); 0040 virtual ~BigscreenDbusAdapterInterface(); 0041 Q_INVOKABLE QString getMethod(const QString &method); 0042 0043 public: // PROPERTIES 0044 public Q_SLOTS: // METHODS 0045 void autoResolutionChanged(); 0046 Q_SIGNALS: // SIGNALS 0047 void autoResolutionReceivedChange(); 0048 }; 0049 0050 #endif