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 #include "bigscreenplugin_dbus.h" 0007 #include <QByteArray> 0008 #include <QList> 0009 #include <QMap> 0010 #include <QMetaObject> 0011 #include <QString> 0012 #include <QVariant> 0013 0014 /* 0015 * Implementation of adaptor class BigscreenDbusAdapterInterface 0016 */ 0017 0018 BigscreenDbusAdapterInterface::BigscreenDbusAdapterInterface(QObject *parent) 0019 : QDBusAbstractAdaptor(parent) 0020 { 0021 // constructor 0022 QDBusConnection dbus = QDBusConnection::sessionBus(); 0023 dbus.registerObject("/Plugin", this, QDBusConnection::ExportScriptableSlots | QDBusConnection::ExportNonScriptableSlots); 0024 dbus.registerService("org.kde.bigscreen"); 0025 setAutoRelaySignals(true); 0026 } 0027 0028 BigscreenDbusAdapterInterface::~BigscreenDbusAdapterInterface() 0029 { 0030 // destructor 0031 } 0032 0033 void BigscreenDbusAdapterInterface::autoResolutionChanged() 0034 { 0035 emit autoResolutionReceivedChange(); 0036 } 0037 0038 Q_INVOKABLE QString BigscreenDbusAdapterInterface::getMethod(const QString &method) 0039 { 0040 QString str = method; 0041 return str; 0042 }