Home · All Classes · All Namespaces · Modules · Functions · Files
ready-object.h
1 
23 #ifndef _TelepathyQt_ready_object_h_HEADER_GUARD_
24 #define _TelepathyQt_ready_object_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/Feature>
31 
32 #include <QObject>
33 
34 namespace Tp
35 {
36 
37 class DBusProxy;
38 class PendingReady;
39 class ReadinessHelper;
40 class RefCounted;
41 
42 class TP_QT_EXPORT ReadyObject
43 {
44  Q_DISABLE_COPY(ReadyObject)
45 
46 public:
47  ReadyObject(RefCounted *object, const Feature &featureCore);
48  ReadyObject(DBusProxy *proxy, const Feature &featureCore);
49  virtual ~ReadyObject();
50 
51  virtual bool isReady(const Features &features = Features()) const;
52  virtual PendingReady *becomeReady(const Features &requestedFeatures = Features());
53 
54  virtual Features requestedFeatures() const;
55  virtual Features actualFeatures() const;
56  virtual Features missingFeatures() const;
57 
58 protected:
59  ReadinessHelper *readinessHelper() const;
60 
61 private:
62  struct Private;
63  friend struct Private;
64  Private *mPriv;
65 };
66 
67 } // Tp
68 
69 #endif
The RefCounted class is a base class for shared objects used by SharedPtr.
Definition: shared-ptr.h:42
The PendingReady class represents the features requested and the reply to a request for an object to ...
Definition: pending-ready.h:40
The Features class represents a list of Feature.
Definition: feature.h:61
Definition: ready-object.h:42
Definition: abstract-adaptor.cpp:31
The ReadinessHelper class is a helper class used by the introspection process.
Definition: readiness-helper.h:48
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.7