forked from blue/squawk
moving on with MUC, nothing final yet
This commit is contained in:
parent
0a6f612b60
commit
828d14c908
10 changed files with 314 additions and 145 deletions
|
@ -21,7 +21,8 @@
|
|||
|
||||
Core::Contact::Contact(const QString& pJid, const QString& account, QObject* parent):
|
||||
RosterItem(pJid, account, parent),
|
||||
groups()
|
||||
groups(),
|
||||
subscriptionState(Shared::unknown)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -54,3 +55,16 @@ void Core::Contact::setGroups(const QSet<QString>& set)
|
|||
emit groupAdded(*itr);
|
||||
}
|
||||
}
|
||||
|
||||
Shared::SubscriptionState Core::Contact::getSubscriptionState() const
|
||||
{
|
||||
return subscriptionState;
|
||||
}
|
||||
|
||||
void Core::Contact::setSubscriptionState(Shared::SubscriptionState state)
|
||||
{
|
||||
if (subscriptionState != state) {
|
||||
subscriptionState = state;
|
||||
emit subscriptionStateChanged(subscriptionState);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue