23 #ifndef _TelepathyQt_base_connection_manager_h_HEADER_GUARD_ 24 #define _TelepathyQt_base_connection_manager_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/DBusService> 31 #include <TelepathyQt/Global> 32 #include <TelepathyQt/Types> 34 #include <QDBusConnection> 47 static BaseConnectionManagerPtr
create(
const QString &name)
50 QDBusConnection::sessionBus(), name));
52 template<
typename BaseConnectionManagerSub
class>
56 QDBusConnection::sessionBus(), name));
58 static BaseConnectionManagerPtr
create(
const QDBusConnection &dbusConnection,
63 template<
typename BaseConnectionManagerSub
class>
68 dbusConnection, name));
75 QVariantMap immutableProperties()
const;
77 QList<BaseProtocolPtr> protocols()
const;
78 BaseProtocolPtr protocol(
const QString &protocolName)
const;
79 bool hasProtocol(
const QString &protocolName)
const;
80 bool addProtocol(
const BaseProtocolPtr &protocol);
82 bool registerObject(
DBusError *error = NULL);
84 QList<BaseConnectionPtr> connections()
const;
87 void newConnection(
const BaseConnectionPtr &connection);
92 virtual bool registerObject(
const QString &busName,
const QString &objectPath,
96 TP_QT_NO_EXPORT
void removeConnection();
99 TP_QT_NO_EXPORT
void addConnection(
const BaseConnectionPtr &connection);
102 friend class Adaptee;
104 friend class Private;
static BaseConnectionManagerPtr create(const QDBusConnection &dbusConnection, const QString &name)
Definition: base-connection-manager.h:58
Base class for D-Bus services.
Definition: dbus-service.h:46
Small container class, containing a D-Bus error.
Definition: dbus-error.h:35
static BaseConnectionManagerPtr create(const QString &name)
Definition: base-connection-manager.h:47
static SharedPtr< BaseConnectionManagerSubclass > create(const QString &name)
Definition: base-connection-manager.h:53
Base class for connection manager implementations.
Definition: base-connection-manager.h:41
Definition: abstract-adaptor.cpp:31
static SharedPtr< BaseConnectionManagerSubclass > create(const QDBusConnection &dbusConnection, const QString &name)
Definition: base-connection-manager.h:64
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39