[Telepathy-commits] [telepathy-qt4/master] Account: Added haveConnectionChanged signal.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Wed Feb 4 10:03:45 PST 2009
---
TelepathyQt4/Client/account.cpp | 1 +
TelepathyQt4/Client/account.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/TelepathyQt4/Client/account.cpp b/TelepathyQt4/Client/account.cpp
index cafac00..30c6cf6 100644
--- a/TelepathyQt4/Client/account.cpp
+++ b/TelepathyQt4/Client/account.cpp
@@ -874,6 +874,7 @@ void Account::updateProperties(const QVariantMap &props)
}
mPriv->connection.clear();
mPriv->connectionObjectPath = path;
+ emit haveConnectionChanged(!path.isEmpty());
}
if (props.contains("ConnectionStatus") || props.contains("ConnectionStatusReason")) {
diff --git a/TelepathyQt4/Client/account.h b/TelepathyQt4/Client/account.h
index 2432dd3..e8972e9 100644
--- a/TelepathyQt4/Client/account.h
+++ b/TelepathyQt4/Client/account.h
@@ -174,6 +174,7 @@ Q_SIGNALS:
void avatarChanged(const Telepathy::Avatar &);
void connectionStatusChanged(Telepathy::ConnectionStatus,
Telepathy::ConnectionStatusReason);
+ void haveConnectionChanged(bool haveConnection);
protected:
AccountInterface *baseInterface() const;
--
1.5.6.5
More information about the telepathy-commits
mailing list