Home · Modules · All Classes · All Namespaces
dbus-object.h
1 
23 #ifndef _TelepathyQt_dbus_object_h_HEADER_GUARD_
24 #define _TelepathyQt_dbus_object_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/Global>
31 
32 #include <QObject>
33 
34 class QDBusConnection;
35 
36 namespace Tp
37 {
38 
39 class TP_QT_EXPORT DBusObject : public QObject
40 {
41  Q_OBJECT
42  Q_DISABLE_COPY(DBusObject)
43 
44 public:
45  DBusObject(const QDBusConnection &dbusConnection, QObject *parent = 0);
46  virtual ~DBusObject();
47 
48  QString objectPath() const;
49  QDBusConnection dbusConnection() const;
50 
51 protected:
52  void setObjectPath(const QString &path);
53 
54 private:
55  struct Private;
56  friend struct Private;
57  Private *mPriv;
58 
59  friend class DBusService;
60 };
61 
62 }
63 
64 #endif
Base class for D-Bus services.
Definition: dbus-service.h:46
A QObject on which low-level D-Bus adaptors are plugged to provide a D-Bus object.
Definition: dbus-object.h:39
Definition: abstract-adaptor.cpp:31