forked from blue/squawk
adding and removing contacts, rester testing
This commit is contained in:
parent
f0f26ae1a1
commit
bb509be29a
16 changed files with 389 additions and 14 deletions
|
@ -365,3 +365,14 @@ void Core::Squawk::removeContactRequest(const QString& account, const QString& j
|
|||
|
||||
itr->second->removeContactRequest(jid);
|
||||
}
|
||||
|
||||
void Core::Squawk::addContactRequest(const QString& account, const QString& jid, const QString& name, const QSet<QString>& groups)
|
||||
{
|
||||
AccountsMap::const_iterator itr = amap.find(account);
|
||||
if (itr == amap.end()) {
|
||||
qDebug("An attempt to add contact to a non existing account, skipping");
|
||||
return;
|
||||
}
|
||||
|
||||
itr->second->addContactRequest(jid, name, groups);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue