CDlgCreateGroupChatRoom::CDlgCreateGroupChatRoom(QWidget *parent) : QDialog(parent), ui(new Ui::CDlgCreateGroupChatRoom) { ui->setupUi(this); CTool::SetWindowsGeometry(this); bool check = connect(GETMANAGER->GetManageGroupChat().data(), SIGNAL(sigJoined(QString)), SLOT(accept())); Q_ASSERT(check); check = connect(GETMANAGER->GetManageGroupChat().data(), SIGNAL(sigError(QString,CGroupChat::Condition, int)), SLOT(slotError(QString,CGroupChat::Condition, int))); Q_ASSERT(check); }
void CFrmGroupChat::slotJoined() { if(m_pRoom) emit sigJoined(m_pRoom->jid(), this); }