imtegrating plugin to kdeconnect system

This commit is contained in:
Samoilenko Yuri 2014-01-07 00:56:51 +04:00
parent f4813b88bc
commit 16f8675bb6
4 changed files with 23 additions and 1 deletions

View file

@ -9,4 +9,5 @@ add_subdirectory(telephony)
add_subdirectory(battery) add_subdirectory(battery)
add_subdirectory(share) add_subdirectory(share)
add_subdirectory(notifications) add_subdirectory(notifications)
add_subdirectory(sftp)

View file

@ -20,6 +20,7 @@ set_source_files_properties(
${CMAKE_BINARY_DIR}/kded/org.kde.kdeconnect.daemon.xml ${CMAKE_BINARY_DIR}/kded/org.kde.kdeconnect.daemon.xml
${CMAKE_BINARY_DIR}/kded/org.kde.kdeconnect.device.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/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.xml
${CMAKE_BINARY_DIR}/kded/plugins/notifications/org.kde.kdeconnect.device.notifications.notification.xml ${CMAKE_BINARY_DIR}/kded/plugins/notifications/org.kde.kdeconnect.device.notifications.notification.xml
PROPERTIES NO_NAMESPACE true 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.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/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/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.xml devicenotificationsinterface )
qt4_add_dbus_interface(libkdeconnect_SRC ${CMAKE_BINARY_DIR}/kded/plugins/notifications/org.kde.kdeconnect.device.notifications.notification.xml notificationinterface ) 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.daemon.xml
org.kde.kdeconnect.device.xml org.kde.kdeconnect.device.xml
org.kde.kdeconnect.device.battery.xml org.kde.kdeconnect.device.battery.xml
org.kde.kdeconnect.device.sftp.xml
org.kde.kdeconnect.device.notifications.xml org.kde.kdeconnect.device.notifications.xml
org.kde.kdeconnect.device.notifications.notification.xml org.kde.kdeconnect.device.notifications.notification.xml
) )

View file

@ -49,4 +49,12 @@ NotificationDbusInterface::NotificationDbusInterface(const QString& deviceId, co
: OrgKdeKdeconnectDeviceNotificationsNotificationInterface("org.kde.kdeconnect", "/modules/kdeconnect/devices/"+deviceId+"/notifications/"+notificationId, QDBusConnection::sessionBus(), parent) : OrgKdeKdeconnectDeviceNotificationsNotificationInterface("org.kde.kdeconnect", "/modules/kdeconnect/devices/"+deviceId+"/notifications/"+notificationId, QDBusConnection::sessionBus(), parent)
{ {
} }
SftpDbusInterface::SftpDbusInterface(const QString& id, QObject* parent)
: OrgKdeKdeconnectDeviceSftpInterface("org.kde.kdeconnect", "/modules/kdeconnect/devices/"+id, QDBusConnection::sessionBus(), parent)
{
}
SftpDbusInterface::~SftpDbusInterface() {}

View file

@ -26,6 +26,7 @@
#include "libkdeconnect/daemoninterface.h" #include "libkdeconnect/daemoninterface.h"
#include "libkdeconnect/deviceinterface.h" #include "libkdeconnect/deviceinterface.h"
#include "libkdeconnect/devicebatteryinterface.h" #include "libkdeconnect/devicebatteryinterface.h"
#include "libkdeconnect/devicesftpinterface.h"
#include "libkdeconnect/devicenotificationsinterface.h" #include "libkdeconnect/devicenotificationsinterface.h"
#include "libkdeconnect/notificationinterface.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 #endif // DEVICEINTERFACE_H