Changeset View
Changeset View
Standalone View
Standalone View
plugins/remotecontrol/remotecontrolplugin.cpp
Show All 38 Lines | |||||
39 | { | 39 | { | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | RemoteControlPlugin::~RemoteControlPlugin() | 42 | RemoteControlPlugin::~RemoteControlPlugin() | ||
43 | {} | 43 | {} | ||
44 | 44 | | |||
45 | void RemoteControlPlugin::moveCursor(const QPoint &p) | 45 | void RemoteControlPlugin::moveCursor(const QPoint &p) | ||
46 | { | 46 | { | ||
47 | NetworkPackage np(PACKAGE_TYPE_MOUSEPAD_REQUEST, { | 47 | NetworkPacket np(PACKET_TYPE_MOUSEPAD_REQUEST, { | ||
48 | {"dx", p.x()}, | 48 | {"dx", p.x()}, | ||
49 | {"dy", p.y()} | 49 | {"dy", p.y()} | ||
50 | }); | 50 | }); | ||
51 | sendPackage(np); | 51 | sendPacket(np); | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | void RemoteControlPlugin::sendCommand(const QString &name, bool val) | 54 | void RemoteControlPlugin::sendCommand(const QString &name, bool val) | ||
55 | { | 55 | { | ||
56 | NetworkPackage np(PACKAGE_TYPE_MOUSEPAD_REQUEST, {{name, val}}); | 56 | NetworkPacket np(PACKET_TYPE_MOUSEPAD_REQUEST, {{name, val}}); | ||
57 | sendPackage(np); | 57 | sendPacket(np); | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | QString RemoteControlPlugin::dbusPath() const | 60 | QString RemoteControlPlugin::dbusPath() const | ||
61 | { | 61 | { | ||
62 | return "/modules/kdeconnect/devices/" + device()->id() + "/remotecontrol"; | 62 | return "/modules/kdeconnect/devices/" + device()->id() + "/remotecontrol"; | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | #include "remotecontrolplugin.moc" | 65 | #include "remotecontrolplugin.moc" |