summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2010-06-23 16:15:50 -0300
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2010-06-28 15:20:01 -0300
commit15c00d53c5cffd86b7096b856821bb968169e7d8 (patch)
treedd5e88f2c430ca6029b7c8c7906f12111a10b4af /examples
parent2b7fe2c57d3e6dec63adfb0e085590c6ed4c6bad (diff)
accounts example: Use new statusChanged signal.
Replaced the usage of the deprecated connectionStatusChanged signal with the new statusChanged signal.
Diffstat (limited to 'examples')
-rw-r--r--examples/accounts/account-item.cpp11
-rw-r--r--examples/accounts/account-item.h4
2 files changed, 9 insertions, 6 deletions
diff --git a/examples/accounts/account-item.cpp b/examples/accounts/account-item.cpp
index bac43438..564be3c4 100644
--- a/examples/accounts/account-item.cpp
+++ b/examples/accounts/account-item.cpp
@@ -99,8 +99,10 @@ void AccountItem::onReady(Tp::PendingOperation *op)
SIGNAL(requestedPresenceChanged(const Tp::SimplePresence &)),
SLOT(onRequestedPresenceChanged(const Tp::SimplePresence &)));
connect(acc,
- SIGNAL(connectionStatusChanged(Tp::ConnectionStatus, Tp::ConnectionStatusReason)),
- SLOT(onConnectionStatusChanged(Tp::ConnectionStatus, Tp::ConnectionStatusReason)));
+ SIGNAL(statusChanged(Tp::ConnectionStatus, Tp::ConnectionStatusReason,
+ const QString &, const QVariantMap &)),
+ SLOT(onStatusChanged(Tp::ConnectionStatus, Tp::ConnectionStatusReason,
+ const QString &, const QVariantMap &)));
connect(acc,
SIGNAL(haveConnectionChanged(bool)),
SLOT(onHaveConnectionChanged(bool)));
@@ -160,8 +162,9 @@ void AccountItem::onRequestedPresenceChanged(const Tp::SimplePresence &presence)
item->setText(presence.status);
}
-void AccountItem::onConnectionStatusChanged(Tp::ConnectionStatus status,
- Tp::ConnectionStatusReason reason)
+void AccountItem::onStatusChanged(Tp::ConnectionStatus status,
+ Tp::ConnectionStatusReason reason, const QString &error,
+ const QVariantMap &errorDetails)
{
QTableWidgetItem *item = mTable->item(mRow, ColumnConnectionStatus);
item->setText(QString::number(status));
diff --git a/examples/accounts/account-item.h b/examples/accounts/account-item.h
index b207a929..5a99e48b 100644
--- a/examples/accounts/account-item.h
+++ b/examples/accounts/account-item.h
@@ -74,8 +74,8 @@ private Q_SLOTS:
void onAutomaticPresenceChanged(const Tp::SimplePresence &);
void onCurrentPresenceChanged(const Tp::SimplePresence &);
void onRequestedPresenceChanged(const Tp::SimplePresence &);
- void onConnectionStatusChanged(Tp::ConnectionStatus,
- Tp::ConnectionStatusReason);
+ void onStatusChanged(Tp::ConnectionStatus, Tp::ConnectionStatusReason,
+ const QString &error, const QVariantMap &errorDetails);
void onHaveConnectionChanged(bool);
private: