imtegrating plugin to kdeconnect system
This commit is contained in:
parent
f4813b88bc
commit
16f8675bb6
4 changed files with 23 additions and 1 deletions
|
@ -9,4 +9,5 @@ add_subdirectory(telephony)
|
|||
add_subdirectory(battery)
|
||||
add_subdirectory(share)
|
||||
add_subdirectory(notifications)
|
||||
add_subdirectory(sftp)
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ set_source_files_properties(
|
|||
${CMAKE_BINARY_DIR}/kded/org.kde.kdeconnect.daemon.xml
|
||||
${CMAKE_BINARY_DIR}/kded/org.kde.kdeconnect.device.xml
|
||||
${CMAKE_BINARY_DIR}/kded/plugins/battery/org.kde.kdeconnect.device.battery.xml
|
||||
${CMAKE_BINARY_DIR}/kded/plugins/sftp/org.kde.kdeconnect.device.sftp.xml
|
||||
${CMAKE_BINARY_DIR}/kded/plugins/notifications/org.kde.kdeconnect.device.notifications.xml
|
||||
${CMAKE_BINARY_DIR}/kded/plugins/notifications/org.kde.kdeconnect.device.notifications.notification.xml
|
||||
PROPERTIES NO_NAMESPACE true
|
||||
|
@ -27,6 +28,7 @@ set_source_files_properties(
|
|||
qt4_add_dbus_interface(libkdeconnect_SRC ${CMAKE_BINARY_DIR}/kded/org.kde.kdeconnect.daemon.xml daemoninterface)
|
||||
qt4_add_dbus_interface(libkdeconnect_SRC ${CMAKE_BINARY_DIR}/kded/org.kde.kdeconnect.device.xml deviceinterface)
|
||||
qt4_add_dbus_interface(libkdeconnect_SRC ${CMAKE_BINARY_DIR}/kded/plugins/battery/org.kde.kdeconnect.device.battery.xml devicebatteryinterface )
|
||||
qt4_add_dbus_interface(libkdeconnect_SRC ${CMAKE_BINARY_DIR}/kded/plugins/sftp/org.kde.kdeconnect.device.sftp.xml devicesftpinterface )
|
||||
qt4_add_dbus_interface(libkdeconnect_SRC ${CMAKE_BINARY_DIR}/kded/plugins/notifications/org.kde.kdeconnect.device.notifications.xml devicenotificationsinterface )
|
||||
qt4_add_dbus_interface(libkdeconnect_SRC ${CMAKE_BINARY_DIR}/kded/plugins/notifications/org.kde.kdeconnect.device.notifications.notification.xml notificationinterface )
|
||||
|
||||
|
@ -40,6 +42,7 @@ add_dependencies(kdeconnect
|
|||
org.kde.kdeconnect.daemon.xml
|
||||
org.kde.kdeconnect.device.xml
|
||||
org.kde.kdeconnect.device.battery.xml
|
||||
org.kde.kdeconnect.device.sftp.xml
|
||||
org.kde.kdeconnect.device.notifications.xml
|
||||
org.kde.kdeconnect.device.notifications.notification.xml
|
||||
)
|
||||
|
|
|
@ -50,3 +50,11 @@ NotificationDbusInterface::NotificationDbusInterface(const QString& deviceId, co
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
SftpDbusInterface::SftpDbusInterface(const QString& id, QObject* parent)
|
||||
: OrgKdeKdeconnectDeviceSftpInterface("org.kde.kdeconnect", "/modules/kdeconnect/devices/"+id, QDBusConnection::sessionBus(), parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
SftpDbusInterface::~SftpDbusInterface() {}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "libkdeconnect/daemoninterface.h"
|
||||
#include "libkdeconnect/deviceinterface.h"
|
||||
#include "libkdeconnect/devicebatteryinterface.h"
|
||||
#include "libkdeconnect/devicesftpinterface.h"
|
||||
#include "libkdeconnect/devicenotificationsinterface.h"
|
||||
#include "libkdeconnect/notificationinterface.h"
|
||||
|
||||
|
@ -78,6 +79,15 @@ public:
|
|||
|
||||
};
|
||||
|
||||
class KDECONNECT_EXPORT SftpDbusInterface
|
||||
: public OrgKdeKdeconnectDeviceSftpInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SftpDbusInterface(const QString& deviceId, QObject* parent = 0);
|
||||
virtual ~SftpDbusInterface();
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // DEVICEINTERFACE_H
|
||||
|
|
Loading…
Reference in a new issue