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
11class TQDomElement;
12class TQString;
13class TQStringList;
14class TQT_DBusError;
15class TQT_DBusVariant;
16template <typename K, typename V> class TQMap;
17
18namespace org
19{
20namespace freedesktop
21{
22namespace DBus
23{
24
25class PropertiesInterface : public TQT_DBusObjectBase
26{
27public:
29
30 static void buildIntrospectionData(TQDomElement& interfaceElement);
31
32protected: // implement sending signals
33 virtual bool handleSignalSend(const TQT_DBusMessage& reply) = 0;
34 virtual TQString objectPath() const = 0;
35
36protected: // 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
40protected:
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
47protected: // implement sending replies
48 virtual void handleMethodReply(const TQT_DBusMessage& reply) = 0;
49
50protected: // 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