void GlooxCLEntry::SetGroups (const QStringList& groups) { if (ODS_) return; QXmppRosterIq::Item item = GetRI (); item.setGroups (QSet<QString>::fromList (groups)); Account_->GetClientConnection ()->Update (item); }
bool QXmppRosterManager::addItem(const QString &bareJid, const QString &name, const QSet<QString> &groups) { QXmppRosterIq::Item item; item.setBareJid(bareJid); item.setName(name); item.setGroups(groups); item.setSubscriptionType(QXmppRosterIq::Item::NotSet); QXmppRosterIq iq; iq.setType(QXmppIq::Set); iq.addItem(item); return client()->sendPacket(iq); }