Home · All Classes · All Namespaces · Modules · Functions · Files |
Base class for connection manager implementations. More...
#include <TelepathyQt/BaseConnectionManager>
Signals | |
void | newConnection (const BaseConnectionPtr &connection) |
![]() | |
void | propertyChanged (const QString &propertyName) |
Public Member Functions | |
virtual | ~BaseConnectionManager () |
QString | name () const |
QVariantMap | immutableProperties () const |
QList< BaseProtocolPtr > | protocols () const |
BaseProtocolPtr | protocol (const QString &protocolName) const |
bool | hasProtocol (const QString &protocolName) const |
bool | addProtocol (const BaseProtocolPtr &protocol) |
bool | registerObject (DBusError *error=NULL) |
QList< BaseConnectionPtr > | connections () const |
![]() | |
DBusService (const QDBusConnection &dbusConnection) | |
virtual | ~DBusService () |
QDBusConnection | dbusConnection () const |
QString | busName () const |
QString | objectPath () const |
DBusObject * | dbusObject () const |
bool | isRegistered () const |
![]() | |
virtual | ~Object () |
![]() | |
QObject (QObject *parent) | |
virtual | ~QObject () |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
virtual const QMetaObject * | metaObject () const |
QString | objectName () const |
void | setObjectName (const QString &name) |
bool | isWidgetType () const |
bool | signalsBlocked () const |
bool | blockSignals (bool block) |
QThread * | thread () const |
void | moveToThread (QThread *targetThread) |
int | startTimer (int interval) |
void | killTimer (int id) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
void | setParent (QObject *parent) |
void | installEventFilter (QObject *filterObj) |
void | removeEventFilter (QObject *obj) |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *receiver, const char *method) |
void | dumpObjectTree () |
void | dumpObjectInfo () |
bool | setProperty (const char *name, const QVariant &value) |
QVariant | property (const char *name) const |
QList< QByteArray > | dynamicPropertyNames () const |
void | destroyed (QObject *obj) |
QObject * | parent () const |
bool | inherits (const char *className) const |
void | deleteLater () |
QObject (QObject *parent, const char *name) | |
void | insertChild (QObject *object) |
void | removeChild (QObject *object) |
bool | isA (const char *className) const |
const char * | className () const |
const char * | name () const |
const char * | name (const char *defaultName) const |
void | setName (const char *name) |
![]() | |
RefCounted () | |
virtual | ~RefCounted () |
Static Public Member Functions | |
static BaseConnectionManagerPtr | create (const QString &name) |
template<typename BaseConnectionManagerSubclass > | |
static SharedPtr < BaseConnectionManagerSubclass > | create (const QString &name) |
static BaseConnectionManagerPtr | create (const QDBusConnection &dbusConnection, const QString &name) |
template<typename BaseConnectionManagerSubclass > | |
static SharedPtr < BaseConnectionManagerSubclass > | create (const QDBusConnection &dbusConnection, const QString &name) |
![]() | |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
Protected Member Functions | |
BaseConnectionManager (const QDBusConnection &dbusConnection, const QString &name) | |
virtual bool | registerObject (const QString &busName, const QString &objectPath, DBusError *error) |
![]() | |
Object () | |
void | notify (const char *propertyName) |
![]() | |
QObject * | sender () const |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | disconnectNotify (const char *signal) |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
Additional Inherited Members | |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
Base class for connection manager implementations.
|
virtual |
Class destructor.
|
protected |
Constructs a new BaseConnectionManager object that implements a connection manager on the given dbusConnection and has the given name.
dbusConnection | The QDBusConnection to use. |
name | The name of the connection manager. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
QString Tp::BaseConnectionManager::name | ( | ) | const |
Return the connection manager's name, as given on the constructor.
|
virtual |
Return the immutable properties of this connection manager object.
Immutable properties cannot change after the object has been registered on the bus with registerObject().
Implements Tp::DBusService.
QList< BaseProtocolPtr > Tp::BaseConnectionManager::protocols | ( | ) | const |
Return a list of all protocols that this connection manager implements.
This property is immutable and cannot change after the connection manager has been registered on the bus with registerObject().
BaseProtocolPtr Tp::BaseConnectionManager::protocol | ( | const QString & | protocolName | ) | const |
Return a pointer to the BaseProtocol instance that implements the protocol with the given protocolName, or a null BaseProtocolPtr if no such protocol has been added to the connection manager.
protocolName | The name of the protocol in interest. |
bool Tp::BaseConnectionManager::hasProtocol | ( | const QString & | protocolName | ) | const |
Return whether a protocol with the given protocolName has been added to the connection manager.
protocolName | The name of the protocol in interest. |
true
if a protocol with the given protocolName has been added to the connection manager, or false
otherwise. bool Tp::BaseConnectionManager::addProtocol | ( | const BaseProtocolPtr & | protocol | ) |
Add a new protocol to the list of protocols that this connection manager implements.
Note that you cannot add new protocols after the connection manager has been registered on the bus with registerObject(). In addition, you cannot add two protocols with the same name. If any of these conditions is not met, this function will return false and print a suitable warning.
protocol | The protocol to add. |
true
on success or false
otherwise. bool Tp::BaseConnectionManager::registerObject | ( | DBusError * | error = NULL | ) |
Register this connection manager on the bus.
A connection manager can only be registered once, and it should be registered only after all the protocols it implements have been added with addProtocol().
If error is passed, any D-Bus error that may occur will be stored there.
error | A pointer to an empty DBusError where any possible D-Bus error will be stored. |
true
on success and false
if there was an error or this connection manager is already registered. QList< BaseConnectionPtr > Tp::BaseConnectionManager::connections | ( | ) | const |
Return a list of all connections that have currently been made.
|
signal |
|
protectedvirtual |
Reimplemented from DBusService.
Reimplemented from Tp::DBusService.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.4 |