File: bigscreenplugin_dbus.cpp

package info (click to toggle)
plasma-bigscreen 5.27.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,436 kB
  • sloc: cpp: 1,695; xml: 223; javascript: 118; sh: 32; python: 11; makefile: 3
file content (42 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download
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;
}