Changeset View
Changeset View
Standalone View
Standalone View
interfaces/dbusinterfaces.cpp
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | 155 | FindMyPhoneDeviceDbusInterface::FindMyPhoneDeviceDbusInterface(const QString& deviceId, QObject* parent): | |||
---|---|---|---|---|---|
156 | OrgKdeKdeconnectDeviceFindmyphoneInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/" + deviceId + "/findmyphone", QDBusConnection::sessionBus(), parent) | 156 | OrgKdeKdeconnectDeviceFindmyphoneInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/" + deviceId + "/findmyphone", QDBusConnection::sessionBus(), parent) | ||
157 | { | 157 | { | ||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | FindMyPhoneDeviceDbusInterface::~FindMyPhoneDeviceDbusInterface() | 160 | FindMyPhoneDeviceDbusInterface::~FindMyPhoneDeviceDbusInterface() | ||
161 | { | 161 | { | ||
162 | } | 162 | } | ||
163 | 163 | | |||
164 | RemoteCommandsDbusInterface::RemoteCommandsDbusInterface(const QString& deviceId, QObject* parent): | 164 | DeviceRemotecommandsDbusInterface::DeviceRemotecommandsDbusInterface(const QString& id, QObject* parent) | ||
165 | OrgKdeKdeconnectDeviceRemotecommandsInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/" + deviceId + "/remotecommands", QDBusConnection::sessionBus(), parent) | 165 | : OrgKdeKdeconnectDeviceRemotecommandsInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/"+id, QDBusConnection::sessionBus(), parent) | ||
166 | { | 166 | { | ||
167 | | ||||
167 | } | 168 | } | ||
168 | 169 | | |||
169 | RemoteCommandsDbusInterface::~RemoteCommandsDbusInterface() = default; | 170 | DeviceRemotecommandsDbusInterface::~DeviceRemotecommandsDbusInterface() = default; | ||
171 | | ||||
172 | RemotecommandDbusInterface::RemotecommandDbusInterface(const QString& deviceId, const QString& commandId, QObject* parent) | ||||
173 | : OrgKdeKdeconnectDeviceRemotecommandsRemotecommandInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/"+deviceId+"/remotecommands/"+commandId, QDBusConnection::sessionBus(), parent) | ||||
174 | , id(commandId) | ||||
175 | { | ||||
176 | | ||||
177 | } | ||||
178 | | ||||
179 | RemotecommandDbusInterface::~RemotecommandDbusInterface() = default; | ||||
180 | | ||||
170 | 181 | | |||
171 | RemoteKeyboardDbusInterface::RemoteKeyboardDbusInterface(const QString& deviceId, QObject* parent): | 182 | RemoteKeyboardDbusInterface::RemoteKeyboardDbusInterface(const QString& deviceId, QObject* parent): | ||
172 | OrgKdeKdeconnectDeviceRemotekeyboardInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/" + deviceId + "/remotekeyboard", QDBusConnection::sessionBus(), parent) | 183 | OrgKdeKdeconnectDeviceRemotekeyboardInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/" + deviceId + "/remotekeyboard", QDBusConnection::sessionBus(), parent) | ||
173 | { | 184 | { | ||
174 | connect(this, &OrgKdeKdeconnectDeviceRemotekeyboardInterface::remoteStateChanged, this, &RemoteKeyboardDbusInterface::remoteStateChanged); | 185 | connect(this, &OrgKdeKdeconnectDeviceRemotekeyboardInterface::remoteStateChanged, this, &RemoteKeyboardDbusInterface::remoteStateChanged); | ||
175 | } | 186 | } | ||
176 | 187 | | |||
177 | RemoteKeyboardDbusInterface::~RemoteKeyboardDbusInterface() = default; | 188 | RemoteKeyboardDbusInterface::~RemoteKeyboardDbusInterface() = default; | ||
178 | 189 | | |||
179 | TelephonyDbusInterface::TelephonyDbusInterface(const QString& deviceId, QObject* parent): | 190 | TelephonyDbusInterface::TelephonyDbusInterface(const QString& deviceId, QObject* parent): | ||
180 | OrgKdeKdeconnectDeviceTelephonyInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/" + deviceId + "/telephony", QDBusConnection::sessionBus(), parent) | 191 | OrgKdeKdeconnectDeviceTelephonyInterface(DaemonDbusInterface::activatedService(), "/modules/kdeconnect/devices/" + deviceId + "/telephony", QDBusConnection::sessionBus(), parent) | ||
181 | { | 192 | { | ||
182 | } | 193 | } | ||
183 | 194 | | |||
184 | TelephonyDbusInterface::~TelephonyDbusInterface() = default; | 195 | TelephonyDbusInterface::~TelephonyDbusInterface() = default; |