diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-03-02 19:05:23 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-04-02 10:26:31 -0300 |
commit | a4b05b4af7c06e3cbc050b1c3d0297c001309b63 (patch) | |
tree | 506bff3a2b391b8056c3a8e0193f37fb87d07226 /examples | |
parent | 8e714dff1697cc95b3e08e68e7169b2d39903b33 (diff) |
cm example: Reimplement BaseProtocol::identifyAccount/normalizeContact.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cm/protocol.cpp | 16 | ||||
-rw-r--r-- | examples/cm/protocol.h | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/examples/cm/protocol.cpp b/examples/cm/protocol.cpp index 8fdfcb7d..ce82883e 100644 --- a/examples/cm/protocol.cpp +++ b/examples/cm/protocol.cpp @@ -58,3 +58,19 @@ BaseConnectionPtr Protocol::createConnection(const QVariantMap ¶meters, Tp:: } return BaseConnectionPtr(); } + +QString Protocol::identifyAccount(const QVariantMap ¶meters, Tp::DBusError *error) +{ + if (error) { + error->set(QLatin1String("IdentifyAccount.Error.Test"), QLatin1String("")); + } + return QString(); +} + +QString Protocol::normalizeContact(const QString &contactId, Tp::DBusError *error) +{ + if (error) { + error->set(QLatin1String("NormalizeContact.Error.Test"), QLatin1String("")); + } + return QString(); +} diff --git a/examples/cm/protocol.h b/examples/cm/protocol.h index d4219282..1ce6321f 100644 --- a/examples/cm/protocol.h +++ b/examples/cm/protocol.h @@ -36,8 +36,8 @@ public: protected Q_SLOTS: Tp::BaseConnectionPtr createConnection(const QVariantMap ¶meters, Tp::DBusError *error); - // identifyAccount - // normalizeContact + QString identifyAccount(const QVariantMap ¶meters, Tp::DBusError *error); + QString normalizeContact(const QString &contactId, Tp::DBusError *error); }; #endif |