summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2014-04-12 13:20:53 +0200
committerDavid Edmundson <kde@davidedmundson.co.uk>2014-04-12 13:20:53 +0200
commit0744748d89ceb2a9ee689d1e4b5d993309fbd64d (patch)
tree8df56afa737816fb644823821b1e0d63d0e3045c
parent841a19cfc3d7ba72ca2de65f34ae4e55c7847d86 (diff)
Port accounts example SimplePresence -> Presence
-rw-r--r--examples/accounts/account-item.cpp12
-rw-r--r--examples/accounts/account-item.h6
2 files changed, 9 insertions, 9 deletions
diff --git a/examples/accounts/account-item.cpp b/examples/accounts/account-item.cpp
index b533d81a..a9e9d302 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 07b72049..656da767 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);