1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/*
SPDX-FileCopyrightText: 2016 Aditya Mehra <aix.m@outlook.com>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "bigscreenplugin_dbus.h"
#include <QByteArray>
#include <QList>
#include <QMap>
#include <QMetaObject>
#include <QString>
#include <QVariant>
/*
* Implementation of adaptor class BigscreenDbusAdapterInterface
*/
BigscreenDbusAdapterInterface::BigscreenDbusAdapterInterface(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
QDBusConnection dbus = QDBusConnection::sessionBus();
dbus.registerObject("/Plugin", this, QDBusConnection::ExportScriptableSlots | QDBusConnection::ExportNonScriptableSlots);
dbus.registerService("org.kde.bigscreen");
setAutoRelaySignals(true);
}
BigscreenDbusAdapterInterface::~BigscreenDbusAdapterInterface()
{
// destructor
}
void BigscreenDbusAdapterInterface::autoResolutionChanged()
{
emit autoResolutionReceivedChange();
}
Q_INVOKABLE QString BigscreenDbusAdapterInterface::getMethod(const QString &method)
{
QString str = method;
return str;
}
|