[next] telepathy-qt: Port accounts example SimplePresence -> Presence
David Edmundson
davidedmundson at kemper.freedesktop.org
Sat Apr 12 04:20:42 PDT 2014
Module: telepathy-qt
Branch: next
Commit: 0744748d89ceb2a9ee689d1e4b5d993309fbd64d
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=0744748d89ceb2a9ee689d1e4b5d993309fbd64d
Author: David Edmundson <kde at davidedmundson.co.uk>
Date: Sat Apr 12 13:20:53 2014 +0200
Port accounts example SimplePresence -> Presence
---
examples/accounts/account-item.cpp | 12 ++++++------
examples/accounts/account-item.h | 6 +++---
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/examples/accounts/account-item.cpp b/examples/accounts/account-item.cpp
index b533d81..a9e9d30 100644
--- a/examples/accounts/account-item.cpp
+++ b/examples/accounts/account-item.cpp
@@ -142,22 +142,22 @@ void AccountItem::onChangingPresenceChanged(bool value)
item->setText((value ? QLatin1String("true") : QLatin1String("false")));
}
-void AccountItem::onAutomaticPresenceChanged(const Tp::SimplePresence &presence)
+void AccountItem::onAutomaticPresenceChanged(const Tp::Presence &presence)
{
QTableWidgetItem *item = mTable->item(mRow, ColumnAutomaticPresence);
- item->setText(presence.status);
+ item->setText(presence.status());
}
-void AccountItem::onCurrentPresenceChanged(const Tp::SimplePresence &presence)
+void AccountItem::onCurrentPresenceChanged(const Tp::Presence &presence)
{
QTableWidgetItem *item = mTable->item(mRow, ColumnCurrentPresence);
- item->setText(presence.status);
+ item->setText(presence.status());
}
-void AccountItem::onRequestedPresenceChanged(const Tp::SimplePresence &presence)
+void AccountItem::onRequestedPresenceChanged(const Tp::Presence &presence)
{
QTableWidgetItem *item = mTable->item(mRow, ColumnRequestedPresence);
- item->setText(presence.status);
+ item->setText(presence.status());
}
void AccountItem::onStatusChanged(Tp::ConnectionStatus status,
diff --git a/examples/accounts/account-item.h b/examples/accounts/account-item.h
index 07b7204..656da76 100644
--- a/examples/accounts/account-item.h
+++ b/examples/accounts/account-item.h
@@ -70,9 +70,9 @@ private Q_SLOTS:
void onNicknameChanged(const QString &);
void onConnectsAutomaticallyPropertyChanged(bool);
void onChangingPresenceChanged(bool);
- void onAutomaticPresenceChanged(const Tp::SimplePresence &);
- void onCurrentPresenceChanged(const Tp::SimplePresence &);
- void onRequestedPresenceChanged(const Tp::SimplePresence &);
+ void onAutomaticPresenceChanged(const Tp::Presence &);
+ void onCurrentPresenceChanged(const Tp::Presence &);
+ void onRequestedPresenceChanged(const Tp::Presence &);
void onStatusChanged(Tp::ConnectionStatus, Tp::ConnectionStatusReason,
const QString &error, const QVariantMap &errorDetails);
void onHaveConnectionChanged(bool);
More information about the telepathy-commits
mailing list