Exemple #1
0
void CFrmUserList::slotSubscriptionReceived(const QString &bareJid)
{
    LOG_MODEL_DEBUG("Roster", "CFrmUserList::subscriptionReceived:%s", qPrintable(bareJid));
    m_frmAddRoster.Init(CGlobal::Instance()->GetXmppClient(), GetGroupsName(), bareJid);
    m_frmAddRoster.show();
    m_frmAddRoster.activateWindow();
}
Exemple #2
0
void CFrmUserList::slotRosterAddReceived(const QString &szId, const CClient::SUBSCRIBE_TYPE &type)
{
    LOG_MODEL_DEBUG("Roster", "CFrmUserList::subscriptionReceived:%s", qPrintable(szId));
    Q_UNUSED(type);
    CDlgAddRoster dlgAddRoster;
    dlgAddRoster.Init( GetGroupsName(), szId, true);
    dlgAddRoster.exec();
}
Exemple #3
0
void CFrmUserList::slotAddRoster()
{
    QSet<QString> groups;
    groups = GetGroupsName();

    m_frmAddRoster.Init(CGlobal::Instance()->GetXmppClient(), groups);
    m_frmAddRoster.show();
    m_frmAddRoster.activateWindow();
}
Exemple #4
0
void CFrmUserList::slotAddRoster()
{
    CDlgAddRoster dlgAddRoster;
    QSet<QString> groups;
    groups = GetGroupsName();
    QString szId = GetCurrentRoster();
    if(!szId.isEmpty() && CUserInfo::None == GLOBAL_USER->GetUserInfoRoster(szId)->GetInfo()->GetSubScriptionType())
        dlgAddRoster.Init(groups, szId);
    else
        dlgAddRoster.Init(groups);
    dlgAddRoster.exec();
}