summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2011-06-30 00:14:50 -0500
committerMateu Batle <mateu.batle@collabora.co.uk>2011-06-30 00:14:50 -0500
commitfb02ddae1ce0f2faf58327e501dd28c9f18fb3c6 (patch)
tree468f8dc4b85e42ca52c7b23d616966e084eb26fc
parent65a17da0f798ef267e4e7e4200a0954ee0041c6d (diff)
Added signals to detect nature of the changes in AccountsModelItem
-rw-r--r--TelepathyQt4Yell/Models/accounts-model-item.cpp57
-rw-r--r--TelepathyQt4Yell/Models/accounts-model-item.h19
2 files changed, 76 insertions, 0 deletions
diff --git a/TelepathyQt4Yell/Models/accounts-model-item.cpp b/TelepathyQt4Yell/Models/accounts-model-item.cpp
index 9e6d4d8..02dbcc6 100644
--- a/TelepathyQt4Yell/Models/accounts-model-item.cpp
+++ b/TelepathyQt4Yell/Models/accounts-model-item.cpp
@@ -70,54 +70,111 @@ AccountsModelItem::AccountsModelItem(const Tp::AccountPtr &account)
SIGNAL(serviceNameChanged(QString)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(serviceNameChanged(QString)),
+ SIGNAL(serviceNameChanged(QString)));
+ connect(mPriv->mAccount.data(),
+ SIGNAL(profileChanged(Tp::ProfilePtr)),
+ SLOT(onChanged()));
+ connect(mPriv->mAccount.data(),
SIGNAL(profileChanged(Tp::ProfilePtr)),
+ SIGNAL(profileChanged(Tp::ProfilePtr)));
+ connect(mPriv->mAccount.data(),
+ SIGNAL(displayNameChanged(QString)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(displayNameChanged(QString)),
+ SIGNAL(displayNameChanged(QString)));
+ connect(mPriv->mAccount.data(),
SIGNAL(iconNameChanged(QString)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(iconNameChanged(QString)),
+ SIGNAL(iconNameChanged(QString)));
+ connect(mPriv->mAccount.data(),
SIGNAL(nicknameChanged(QString)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(nicknameChanged(QString)),
+ SIGNAL(nicknameChanged(QString)));
+ connect(mPriv->mAccount.data(),
SIGNAL(normalizedNameChanged(QString)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(normalizedNameChanged(QString)),
+ SIGNAL(normalizedNameChanged(QString)));
+ connect(mPriv->mAccount.data(),
SIGNAL(validityChanged(bool)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(validityChanged(bool)),
+ SIGNAL(validityChanged(bool)));
+ connect(mPriv->mAccount.data(),
SIGNAL(stateChanged(bool)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(stateChanged(bool)),
+ SIGNAL(stateChanged(bool)));
+ connect(mPriv->mAccount.data(),
SIGNAL(capabilitiesChanged(Tp::ConnectionCapabilities)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(capabilitiesChanged(Tp::ConnectionCapabilities)),
+ SIGNAL(capabilitiesChanged(Tp::ConnectionCapabilities)));
+ connect(mPriv->mAccount.data(),
SIGNAL(connectsAutomaticallyPropertyChanged(bool)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(connectsAutomaticallyPropertyChanged(bool)),
+ SIGNAL(connectsAutomaticallyPropertyChanged(bool)));
+ connect(mPriv->mAccount.data(),
SIGNAL(parametersChanged(QVariantMap)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(parametersChanged(QVariantMap)),
+ SIGNAL(parametersChanged(QVariantMap)));
+ connect(mPriv->mAccount.data(),
SIGNAL(changingPresence(bool)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(changingPresence(bool)),
+ SIGNAL(changingPresence(bool)));
+ connect(mPriv->mAccount.data(),
SIGNAL(automaticPresenceChanged(Tp::Presence)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(automaticPresenceChanged(Tp::Presence)),
+ SIGNAL(automaticPresenceChanged(Tp::Presence)));
+ connect(mPriv->mAccount.data(),
SIGNAL(currentPresenceChanged(Tp::Presence)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(currentPresenceChanged(Tp::Presence)),
+ SIGNAL(currentPresenceChanged(Tp::Presence)));
+ connect(mPriv->mAccount.data(),
SIGNAL(requestedPresenceChanged(Tp::Presence)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(requestedPresenceChanged(Tp::Presence)),
+ SIGNAL(requestedPresenceChanged(Tp::Presence)));
+ connect(mPriv->mAccount.data(),
SIGNAL(onlinenessChanged(bool)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(onlinenessChanged(bool)),
+ SIGNAL(onlinenessChanged(bool)));
+ connect(mPriv->mAccount.data(),
SIGNAL(avatarChanged(Tp::Avatar)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(avatarChanged(Tp::Avatar)),
+ SIGNAL(avatarChanged(Tp::Avatar)));
+ connect(mPriv->mAccount.data(),
SIGNAL(onlinenessChanged(bool)),
SLOT(onChanged()));
connect(mPriv->mAccount.data(),
+ SIGNAL(onlinenessChanged(bool)),
+ SIGNAL(onlinenessChanged(bool)));
+ connect(mPriv->mAccount.data(),
SIGNAL(connectionChanged(Tp::ConnectionPtr)),
SLOT(onConnectionChanged(Tp::ConnectionPtr)));
}
diff --git a/TelepathyQt4Yell/Models/accounts-model-item.h b/TelepathyQt4Yell/Models/accounts-model-item.h
index 7ce141d..f4cb162 100644
--- a/TelepathyQt4Yell/Models/accounts-model-item.h
+++ b/TelepathyQt4Yell/Models/accounts-model-item.h
@@ -27,6 +27,7 @@
#include <TelepathyQt4Yell/Models/TreeNode>
+#include <TelepathyQt4/ConnectionCapabilities>
#include <TelepathyQt4/Constants>
#include <TelepathyQt4/Contact>
#include <TelepathyQt4/Types>
@@ -62,6 +63,24 @@ public Q_SLOTS:
void onConnectionInvalidated();
Q_SIGNALS:
+ void serviceNameChanged(const QString &serviceName);
+ void profileChanged(const Tp::ProfilePtr &profile);
+ void displayNameChanged(const QString &displayName);
+ void iconNameChanged(const QString &iconName);
+ void nicknameChanged(const QString &nickname);
+ void normalizedNameChanged(const QString &normalizedName);
+ void validityChanged(bool validity);
+ void stateChanged(bool state);
+ void capabilitiesChanged(const Tp::ConnectionCapabilities &capabilities);
+ void connectsAutomaticallyPropertyChanged(bool connectsAutomatically);
+ void firstOnline();
+ void parametersChanged(const QVariantMap &parameters);
+ void changingPresence(bool value);
+ void automaticPresenceChanged(const Tp::Presence &automaticPresence);
+ void currentPresenceChanged(const Tp::Presence &currentPresence);
+ void requestedPresenceChanged(const Tp::Presence &requestedPresence);
+ void onlinenessChanged(bool online);
+ void avatarChanged(const Tp::Avatar &avatar);
void connectionStatusChanged(const QString &accountId, int status);
private Q_SLOTS: