sensorfw
sensormanager_i.h
Go to the documentation of this file.
1 
30 #ifndef SENSORMANAGER_I_H
31 #define SENSORMANAGER_I_H
32 
33 #include <QtDBus/QtDBus>
34 #include <QString>
35 #include "sfwerror.h"
36 
40 class LocalSensorManagerInterface : public QDBusAbstractInterface
41 {
42  Q_OBJECT
43  Q_DISABLE_COPY(LocalSensorManagerInterface)
45  Q_PROPERTY(QString errorString READ errorString)
46  Q_PROPERTY(int errorCodeInt READ errorCodeInt)
47 
53  int errorCodeInt();
54 
55 public:
61  static const char* staticInterfaceName;
62 
66  virtual ~LocalSensorManagerInterface();
67 
74 
80  QString errorString();
81 
82 public Q_SLOTS:
83 
90  QDBusReply<bool> loadPlugin(const QString& name);
91 
98  QDBusReply<int> requestSensor(const QString& id);
99 
107  QDBusReply<bool> releaseSensor(const QString& id, int sessionId);
108 
109 Q_SIGNALS:
110 
116  void errorSignal(int error);
117 
118 protected:
119 
128  LocalSensorManagerInterface(const QString& service, const QString& path, const QDBusConnection& connection, QObject* parent = 0);
129 };
130 
131 namespace local {
132  typedef ::LocalSensorManagerInterface SensorManager;
133 }
134 #endif
SensorManagerError errorCode()
Get error code of occured remote error.
QDBusReply< bool > releaseSensor(const QString &id, int sessionId)
Request sensor deamon to release existing session.
static const char * staticInterfaceName
Get name of the D-Bus interface for this class.
Error definitions.
::LocalSensorManagerInterface SensorManager
void errorSignal(int error)
Signal about occured errors.
QString errorString()
Get error description of occured remote error.
QDBusReply< int > requestSensor(const QString &id)
Request sensor deamon to start new session for sensor.
QDBusReply< bool > loadPlugin(const QString &name)
Request sensor daemon to load plugin.
SensorManagerError
Enumeration about SensorManager error states.
Definition: sfwerror.h:37
DBus interface to SensorManager instance.