예제 #1
0
파일: lmc.cpp 프로젝트: Litew/lanmsng
void lmcCore::startChat(QString* lpszUserId) {
	//	return if a chat window is already open for this user
	for(int index = 0; index < chatWindows.count(); index++)
		if(!chatWindows[index]->groupMode && chatWindows[index]->peerIds.contains(*lpszUserId)) {
			showChatWindow(chatWindows[index], true);
			return;
		}

	createChatWindow(lpszUserId);
	showChatWindow(chatWindows.last(), true);
}
예제 #2
0
void CustomMailPage::onUserJidReceived(const QString &AId, const Jid &AUserJid)
{
	if (AId == FRequestId)
	{
		emit showChatWindow(AUserJid);
		close();
	}
}
예제 #3
0
Profile::Profile(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::Profile)
{
    ui->setupUi(this);

    QPixmap UserProfilePix("C:\\img\\damon.png");
    ui->lbl_ProfilePic->setPixmap(UserProfilePix);

    QPixmap Slot1Pix("C:\\img\\david.png");
    ui->lbl_FirstContactSlot->setPixmap(Slot1Pix);

    QPixmap Slot2Pix("C:\\img\\dom.png");
    ui->lbl_SecondContactSlot->setPixmap(Slot2Pix);

    QPixmap Slot3Pix("C:\\img\\trevor.png");
    ui->lbl_ThirdContactSlot->setPixmap(Slot3Pix);

    QPixmap Slot4Pix("C:\\img\\jesse.png");
    ui->lbl_FourthContactSlot->setPixmap(Slot4Pix);

    connect(ui->pushButton_SignOut, SIGNAL(clicked()), SLOT(hide()));
    connect(ui->pushButton_SignOut, SIGNAL(clicked()), SIGNAL(showLoginWindow()));

    connect(ui->pushButton_AdvancedSettings, SIGNAL(clicked()), SLOT(hide()));
    connect(ui->pushButton_AdvancedSettings, SIGNAL(clicked()), SIGNAL(showSettingsWindow()));

    connect(ui->button_changePass, SIGNAL(clicked()), SIGNAL(showChangePassWindow()));

    connect(ui->btn_changepicture, SIGNAL(clicked()), SIGNAL(showChangePictureWindow()));

    connect(ui->btn_addContact, SIGNAL(clicked()), SIGNAL(showNewContactWindow()));

    connect(ui->pushButton_CS1, SIGNAL(clicked()), SLOT(hide()));
    connect(ui->pushButton_CS1, SIGNAL(clicked()), SIGNAL(showChatWindow()));

    connect(ui->pushButton_CS2, SIGNAL(clicked()), SLOT(hide()));
    connect(ui->pushButton_CS2, SIGNAL(clicked()), SIGNAL(showChatWindow()));


}
예제 #4
0
Settings::Settings(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::Settings)
{
    ui->setupUi(this);

    connect(ui->pushButton_Profile, SIGNAL(clicked()), SLOT(hide()));
    connect(ui->pushButton_Profile, SIGNAL(clicked()), SIGNAL(showProfileWindow()));

    connect(ui->pushButton_chat, SIGNAL(clicked()), SLOT(hide()));
    connect(ui->pushButton_chat, SIGNAL(clicked()), SIGNAL(showChatWindow()));
}
예제 #5
0
int LoginDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: sendEnterMessage((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 1: showChatWindow(); break;
        case 2: enterSlot(); break;
        }
        _id -= 3;
    }
    return _id;
}