diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-04-03 18:42:41 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-04-03 18:44:12 -0300 |
commit | 28827058019699a323f57ef2351f1776a9be8e93 (patch) | |
tree | f15486ad09761c7733f3a0ce0b2c1337d6c3f5ca /examples | |
parent | eaae5d521eeb8faca0ff2f43a8b06b9ade48d389 (diff) |
AbstractDBusServiceInterface: Change how registration works to allow interfaces to check whether they are already registered.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cm/protocol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cm/protocol.cpp b/examples/cm/protocol.cpp index 08e4a3b5..01ab53a1 100644 --- a/examples/cm/protocol.cpp +++ b/examples/cm/protocol.cpp @@ -51,14 +51,14 @@ Protocol::Protocol(const QDBusConnection &dbusConnection, const QString &name) setIdentifyAccountCallback(memFun(this, &Protocol::identifyAccount)); setNormalizeContactCallback(memFun(this, &Protocol::normalizeContact)); - addrIface = BaseProtocolAddressingInterface::create(); + addrIface = BaseProtocolAddressingInterface::create(dbusConnection); addrIface->setAddressableVCardFields(QStringList() << QLatin1String("x-example-vcard-field")); addrIface->setAddressableUriSchemes(QStringList() << QLatin1String("example-uri-scheme")); addrIface->setNormalizeVCardAddressCallback(memFun(this, &Protocol::normalizeVCardAddress)); addrIface->setNormalizeContactUriCallback(memFun(this, &Protocol::normalizeContactUri)); plugInterface(AbstractProtocolInterfacePtr::dynamicCast(addrIface)); - avatarsIface = BaseProtocolAvatarsInterface::create(); + avatarsIface = BaseProtocolAvatarsInterface::create(dbusConnection); avatarsIface->setAvatarDetails(AvatarSpec(QStringList() << QLatin1String("image/png"), 16, 64, 32, 16, 64, 32, 1024)); plugInterface(AbstractProtocolInterfacePtr::dynamicCast(avatarsIface)); @@ -77,7 +77,7 @@ Protocol::Protocol(const QDBusConnection &dbusConnection, const QString &name) specs.insert(QLatin1String("available"), spAvailable); specs.insert(QLatin1String("offline"), spOffline); - presenceIface = BaseProtocolPresenceInterface::create(); + presenceIface = BaseProtocolPresenceInterface::create(dbusConnection); presenceIface->setStatuses(PresenceSpecList(specs)); plugInterface(AbstractProtocolInterfacePtr::dynamicCast(presenceIface)); } |