Commit cf0c7572 authored by Martin Klapetek's avatar Martin Klapetek Committed by Alexander Akulich

[declarative] Allow later setting of Tp::Account to Conversation

As opposed to constructor-only
Reviewed-by: Alexander Akulich's avatarAlexander Akulich <akulichalexander@gmail.com>
parent 33fc59f0
......@@ -175,6 +175,11 @@ Tp::AccountPtr Conversation::account() const
return d->account;
}
void Conversation::setAccount(const Tp::AccountPtr &account)
{
d->account = account;
}
bool Conversation::isValid() const
{
return d->valid;
......
......@@ -61,6 +61,7 @@ public:
KTp::ContactPtr targetContact() const;
Tp::AccountPtr account() const;
void setAccount(const Tp::AccountPtr &account);
bool isValid() const;
bool hasUnreadMessages() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment