sensorfw
|
00001 00030 #ifndef SENSORMANAGER_I_H 00031 #define SENSORMANAGER_I_H 00032 00033 #include <QtDBus/QtDBus> 00034 #include <QString> 00035 #include "sfwerror.h" 00036 00040 class LocalSensorManagerInterface : public QDBusAbstractInterface 00041 { 00042 Q_OBJECT 00043 Q_DISABLE_COPY(LocalSensorManagerInterface) 00044 Q_PROPERTY(SensorManagerError errorCode READ errorCode) 00045 Q_PROPERTY(QString errorString READ errorString) 00046 Q_PROPERTY(int errorCodeInt READ errorCodeInt) 00047 00053 int errorCodeInt(); 00054 00055 public: 00061 static const char* staticInterfaceName; 00062 00066 virtual ~LocalSensorManagerInterface(); 00067 00073 SensorManagerError errorCode(); 00074 00080 QString errorString(); 00081 00082 public Q_SLOTS: 00083 00090 QDBusReply<bool> loadPlugin(const QString& name); 00091 00098 QDBusReply<int> requestSensor(const QString& id); 00099 00107 QDBusReply<bool> releaseSensor(const QString& id, int sessionId); 00108 00109 Q_SIGNALS: 00110 00116 void errorSignal(int error); 00117 00118 protected: 00119 00128 LocalSensorManagerInterface(const QString& service, const QString& path, const QDBusConnection& connection, QObject* parent = 0); 00129 }; 00130 00131 namespace local { 00132 typedef ::LocalSensorManagerInterface SensorManager; 00133 } 00134 #endif