Changeset View
Changeset View
Standalone View
Standalone View
plugins/systemvolume/osdservice.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * This file was generated by qdbusxml2cpp version 0.8 | ||||
3 | * Command line was: qdbusxml2cpp -m -c OsdServiceInterface -p osdservice /home/nico/workspace/plasma-pa/src/qml/dbus/osdService.xml | ||||
4 | * | ||||
5 | * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. | ||||
6 | * | ||||
7 | * This is an auto-generated file. | ||||
8 | * Do not edit! All changes made to it will be lost. | ||||
9 | */ | ||||
10 | | ||||
11 | #ifndef OSDSERVICE_H | ||||
12 | #define OSDSERVICE_H | ||||
13 | | ||||
14 | #include <QtCore/QObject> | ||||
15 | #include <QtCore/QByteArray> | ||||
16 | #include <QtCore/QList> | ||||
17 | #include <QtCore/QMap> | ||||
18 | #include <QtCore/QString> | ||||
19 | #include <QtCore/QStringList> | ||||
20 | #include <QtCore/QVariant> | ||||
21 | #include <QtDBus/QtDBus> | ||||
22 | | ||||
23 | /* | ||||
24 | * Proxy class for interface org.kde.osdService | ||||
25 | */ | ||||
26 | class OsdServiceInterface: public QDBusAbstractInterface | ||||
27 | { | ||||
28 | Q_OBJECT | ||||
29 | public: | ||||
30 | static inline const char *staticInterfaceName() | ||||
31 | { return "org.kde.osdService"; } | ||||
32 | | ||||
33 | public: | ||||
34 | OsdServiceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); | ||||
35 | | ||||
36 | ~OsdServiceInterface(); | ||||
37 | | ||||
38 | public Q_SLOTS: // METHODS | ||||
39 | inline QDBusPendingReply<> brightnessChanged(int percent) | ||||
40 | { | ||||
41 | QList<QVariant> argumentList; | ||||
42 | argumentList << QVariant::fromValue(percent); | ||||
43 | return asyncCallWithArgumentList(QStringLiteral("brightnessChanged"), argumentList); | ||||
44 | } | ||||
45 | | ||||
46 | inline QDBusPendingReply<> kbdLayoutChanged(const QString &layoutName) | ||||
47 | { | ||||
48 | QList<QVariant> argumentList; | ||||
49 | argumentList << QVariant::fromValue(layoutName); | ||||
50 | return asyncCallWithArgumentList(QStringLiteral("kbdLayoutChanged"), argumentList); | ||||
51 | } | ||||
52 | | ||||
53 | inline QDBusPendingReply<> keyboardBrightnessChanged(int percent) | ||||
54 | { | ||||
55 | QList<QVariant> argumentList; | ||||
56 | argumentList << QVariant::fromValue(percent); | ||||
57 | return asyncCallWithArgumentList(QStringLiteral("keyboardBrightnessChanged"), argumentList); | ||||
58 | } | ||||
59 | | ||||
60 | inline QDBusPendingReply<> mediaPlayerVolumeChanged(int percent, const QString &playerName, const QString &playerIconName) | ||||
61 | { | ||||
62 | QList<QVariant> argumentList; | ||||
63 | argumentList << QVariant::fromValue(percent) << QVariant::fromValue(playerName) << QVariant::fromValue(playerIconName); | ||||
64 | return asyncCallWithArgumentList(QStringLiteral("mediaPlayerVolumeChanged"), argumentList); | ||||
65 | } | ||||
66 | | ||||
67 | inline QDBusPendingReply<> microphoneVolumeChanged(int percent) | ||||
68 | { | ||||
69 | QList<QVariant> argumentList; | ||||
70 | argumentList << QVariant::fromValue(percent); | ||||
71 | return asyncCallWithArgumentList(QStringLiteral("microphoneVolumeChanged"), argumentList); | ||||
72 | } | ||||
73 | | ||||
74 | inline QDBusPendingReply<> virtualDesktopChanged(const QString ¤tVirtualDesktopName) | ||||
75 | { | ||||
76 | QList<QVariant> argumentList; | ||||
77 | argumentList << QVariant::fromValue(currentVirtualDesktopName); | ||||
78 | return asyncCallWithArgumentList(QStringLiteral("virtualDesktopChanged"), argumentList); | ||||
79 | } | ||||
80 | | ||||
81 | inline QDBusPendingReply<> volumeChanged(int percent) | ||||
82 | { | ||||
83 | QList<QVariant> argumentList; | ||||
84 | argumentList << QVariant::fromValue(percent); | ||||
85 | return asyncCallWithArgumentList(QStringLiteral("volumeChanged"), argumentList); | ||||
86 | } | ||||
87 | | ||||
88 | Q_SIGNALS: // SIGNALS | ||||
89 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | ||||
90 | void osdText(const QString &icon, const QString &text); | ||||
91 | }; | ||||
92 | | ||||
93 | namespace org { | ||||
94 | namespace kde { | ||||
95 | typedef ::OsdServiceInterface osdService; | ||||
96 | } | ||||
97 | } | ||||
98 | #endif |