Commit 70c76a36 authored by kaniini's avatar kaniini

account manager: implement notification event

parent 59ff9d93
......@@ -47,6 +47,9 @@ void AccountManager::addAccount(Account *account)
QObject::connect(account, &Account::invalidatedPost, [=] (Post *p) {
emit invalidatedPost(account, p);
QObject::connect(account, &Account::notification, [=] (std::shared_ptr<Notification> n) {
emit notification(account, n);
void AccountManager::childIdentityChanged(Account *account)
......@@ -35,6 +35,7 @@ signals:
void invalidated(Account *account);
void fetchedInstanceMetadata(Account *account);
void invalidatedPost(Account *account, Post *post);
void notification(Account *account, std::shared_ptr<Notification> n);
public slots:
void childIdentityChanged(Account *account);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment