tdebluez
libtdebluez/interfaces/propertiesInterface.h
Go to the documentation of this file.
1 // File autogenerated
2 
3 #if !defined(PROPERTIESINTERFACE_H_INCLUDED)
4 #define PROPERTIESINTERFACE_H_INCLUDED
5 
6 // TQt D-Bus includes
7 #include <tqdbuserror.h>
8 #include <tqdbusobject.h>
9 
10 // forward declarations
11 class TQDomElement;
12 class TQString;
13 class TQStringList;
14 class TQT_DBusError;
15 class TQT_DBusVariant;
16 template <typename K, typename V> class TQMap;
17 
18 namespace org
19 {
20 namespace freedesktop
21 {
22 namespace DBus
23 {
24 
25 class PropertiesInterface : public TQT_DBusObjectBase
26 {
27 public:
28  virtual ~PropertiesInterface() {}
29 
30  static void buildIntrospectionData(TQDomElement& interfaceElement);
31 
32 protected: // implement sending signals
33  virtual bool handleSignalSend(const TQT_DBusMessage& reply) = 0;
34  virtual TQString objectPath() const = 0;
35 
36 protected: // for sending D-Bus signals
37  virtual bool emitPropertiesChanged(const TQString& interface, const TQMap< TQString, TQT_DBusVariant >& changed_properties, const TQStringList& invalidated_properties);
38 
39 
40 protected:
41  virtual bool Get(const TQString& interface, const TQString& name, TQT_DBusVariant& value, TQT_DBusError& error) = 0;
42 
43  virtual bool Set(const TQString& interface, const TQString& name, const TQT_DBusVariant& value, TQT_DBusError& error) = 0;
44 
45  virtual bool GetAll(const TQString& interface, TQMap< TQString, TQT_DBusVariant >& properties, TQT_DBusError& error) = 0;
46 
47 protected: // implement sending replies
48  virtual void handleMethodReply(const TQT_DBusMessage& reply) = 0;
49 
50 protected: // usually no need to reimplement
51  virtual bool handleMethodCall(const TQT_DBusMessage& message);
52 
53  TQT_DBusMessage callGet(const TQT_DBusMessage& message);
54 
55  TQT_DBusMessage callSet(const TQT_DBusMessage& message);
56 
57  TQT_DBusMessage callGetAll(const TQT_DBusMessage& message);
58 
59 }; // class PropertiesInterface
60 
61 }; // namespace DBus
62 
63 }; // namespace freedesktop
64 
65 }; // namespace org
66 
67 #endif //PROPERTIESINTERFACE_H_INCLUDED
68 
69 // End of File
70 
static void buildIntrospectionData(TQDomElement &interfaceElement)
virtual bool emitPropertiesChanged(const TQString &interface, const TQMap< TQString, TQT_DBusVariant > &changed_properties, const TQStringList &invalidated_properties)
virtual TQString objectPath() const =0
TQT_DBusMessage callGetAll(const TQT_DBusMessage &message)
virtual void handleMethodReply(const TQT_DBusMessage &reply)=0
virtual bool GetAll(const TQString &interface, TQMap< TQString, TQT_DBusVariant > &properties, TQT_DBusError &error)=0
virtual bool Get(const TQString &interface, const TQString &name, TQT_DBusVariant &value, TQT_DBusError &error)=0
virtual bool Set(const TQString &interface, const TQString &name, const TQT_DBusVariant &value, TQT_DBusError &error)=0
virtual bool handleSignalSend(const TQT_DBusMessage &reply)=0