summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--TelepathyQt4Yell/Models/accounts-model.cpp1
-rw-r--r--TelepathyQt4Yell/Models/accounts-model.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7a9bb0a..ae7eed9 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ telepathy-qt4-yell 0.1.x
=========================
Enhancements:
+ * Emit a signal when an account item is added to AccountsModel
Fixes:
* Report the connection status reason using the Connection object if possible
diff --git a/TelepathyQt4Yell/Models/accounts-model.cpp b/TelepathyQt4Yell/Models/accounts-model.cpp
index 9de6961..2e655d9 100644
--- a/TelepathyQt4Yell/Models/accounts-model.cpp
+++ b/TelepathyQt4Yell/Models/accounts-model.cpp
@@ -146,6 +146,7 @@ void AccountsModel::onNewAccount(const Tp::AccountPtr &account)
&& account->connection()->isValid()) {
item->onConnectionChanged(account->connection());
}
+ emit newAccountItem(account->uniqueIdentifier());
}
void AccountsModel::onItemChanged(TreeNode *node)
diff --git a/TelepathyQt4Yell/Models/accounts-model.h b/TelepathyQt4Yell/Models/accounts-model.h
index 93658ba..1c2ee66 100644
--- a/TelepathyQt4Yell/Models/accounts-model.h
+++ b/TelepathyQt4Yell/Models/accounts-model.h
@@ -124,6 +124,7 @@ Q_SIGNALS:
void accountConnectionStatusChanged(const QString &accountId, int status);
// expensive operation, updates all children from parents first .. last
void hierarchicalDataChanged(const QModelIndex &first, const QModelIndex &last);
+ void newAccountItem(const QString &accountId);
protected Q_SLOTS:
void onLoadAccounts();