AuthStatus GlooxCLEntry::GetAuthStatus () const { if (ODS_) return ODS_->AuthStatus_; return static_cast<AuthStatus> (GetRI ().subscriptionType ()); }
void GlooxCLEntry::SetGroups (const QStringList& groups) { if (ODS_) return; QXmppRosterIq::Item item = GetRI (); item.setGroups (QSet<QString>::fromList (groups)); Account_->GetClientConnection ()->Update (item); }
QStringList GlooxCLEntry::Groups () const { if (ODS_) return ODS_->Groups_; QStringList groups = GetRI ().groups ().toList (); if (AuthRequested_) groups += tr ("Unauthorized users"); return groups; }
QString GlooxCLEntry::GetEntryName () const { if (ODS_) return ODS_->Name_; QString name = GetRI ().name (); if (name.isEmpty ()) return BareJID_; return name; }
QString GlooxCLEntry::GetEntryName () const { if (ODS_) return ODS_->Name_; QString name = GetRI ().name (); if (name.isEmpty ()) return HumanReadableId_; return name; }
void GlooxCLEntry::SetEntryName (const QString& name) { if (ODS_) return; QXmppRosterIq::Item item = GetRI (); item.setName (name); Account_->GetClientConnection ()->Update (item); emit nameChanged (name); }