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  static const TQCString interface() { return TQCString("org.freedesktop.DBus.Properties"); }
33 
34 protected: // implement sending signals
35  virtual bool handleSignalSend(const TQT_DBusMessage& reply) = 0;
36  virtual TQString objectPath() const = 0;
37 
38 protected: // for sending D-Bus signals
39  virtual bool emitPropertiesChanged(const TQString& interface, const TQMap< TQString, TQT_DBusVariant >& changed_properties, const TQStringList& invalidated_properties);
40 
41 
42 protected:
43  virtual bool Get(const TQString& interface, const TQString& name, TQT_DBusVariant& value, TQT_DBusError& error) = 0;
44 
45  virtual bool Set(const TQString& interface, const TQString& name, const TQT_DBusVariant& value, TQT_DBusError& error) = 0;
46 
47  virtual bool GetAll(const TQString& interface, TQMap< TQString, TQT_DBusVariant >& properties, TQT_DBusError& error) = 0;
48 
49 protected: // implement sending replies
50  virtual void handleMethodReply(const TQT_DBusMessage& reply) = 0;
51 
52 protected: // usually no need to reimplement
53  virtual bool handleMethodCall(const TQT_DBusMessage& message);
54 
55  TQT_DBusMessage callGet(const TQT_DBusMessage& message);
56 
57  TQT_DBusMessage callSet(const TQT_DBusMessage& message);
58 
59  TQT_DBusMessage callGetAll(const TQT_DBusMessage& message);
60 
61 }; // class PropertiesInterface
62 
63 }; // namespace DBus
64 
65 }; // namespace freedesktop
66 
67 }; // namespace org
68 
69 #endif //PROPERTIESINTERFACE_H_INCLUDED
70 
71 // End of File
72 
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