first thought about forms, discovering contact pep support

This commit is contained in:
Blue 2022-08-26 01:49:49 +03:00
parent c50cd1140e
commit 7b2b7ee5d5
Signed by: blue
GPG key ID: 9B203B252A63EE38
11 changed files with 230 additions and 9 deletions

View file

@ -22,7 +22,8 @@
Core::Contact::Contact(const QString& pJid, const QString& account, QObject* parent):
RosterItem(pJid, account, parent),
groups(),
subscriptionState(Shared::SubscriptionState::unknown)
subscriptionState(Shared::SubscriptionState::unknown),
pep(Shared::Support::unknown)
{
}
@ -98,3 +99,15 @@ void Core::Contact::handlePresence(const QXmppPresence& pres)
}
}
}
void Core::Contact::setPepSupport(Shared::Support support) {
if (pep != support) {
pep = support;
}
}
Shared::Support Core::Contact::getPepSupport() const {
return pep;}