Changeset 5601
- Timestamp:
- 10/11/07 17:53:03 (14 months ago)
- Location:
- branches/qt-gui_qt4/src
- Files:
-
- 3 modified
-
historyview.cpp (modified) (1 diff)
-
mainwin.cpp (modified) (2 diffs)
-
userevents/usersendcommon.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/historyview.cpp
r5577 r5601 488 488 489 489 internalAddMsg(s); 490 } 490 GotoEnd(); 491 } -
branches/qt-gui_qt4/src/mainwin.cpp
r5598 r5601 1426 1426 } 1427 1427 1428 void MainWindow::slot_socket(QString id, unsigned long ppid, unsigned long nConvoId) 1429 { 1430 // Add the user to an ongoing conversation 1428 void MainWindow::slot_socket(QString id, unsigned long ppid, unsigned long convoId) 1429 { 1431 1430 for (int i = 0; i < licqUserSend.size(); ++i) 1432 1431 { … … 1434 1433 if (item->id() == id && item->ppid() == ppid) 1435 1434 { 1436 item->setConvoId(nConvoId); 1437 break; 1438 } 1439 } 1440 } 1441 1442 void MainWindow::slot_convoJoin(QString id, unsigned long /* ppid */, unsigned long nConvoId) 1443 { 1444 // Add the user to an ongoing conversation 1435 item->setConvoId(convoId); 1436 break; 1437 } 1438 } 1439 } 1440 1441 void MainWindow::slot_convoJoin(QString id, unsigned long ppid, unsigned long convoId) 1442 { 1445 1443 for (int i = 0; i < licqUserSend.size(); ++i) 1446 1444 { 1447 1445 UserSendCommon* item = licqUserSend.at(i); 1448 if (item->convoId() == nConvoId) 1449 { 1450 item->convoJoin(id, nConvoId); 1451 return; 1452 } 1453 } 1454 1455 // No conversation shown, so make one 1456 1457 } 1458 1459 void MainWindow::slot_convoLeave(QString id, unsigned long /* ppid */, unsigned long nConvoId) 1460 { 1461 // Add the user to an ongoing conversation 1446 if (item->ppid() == ppid && item->convoId() == convoId) 1447 { 1448 item->convoJoin(id, convoId); 1449 break; 1450 } 1451 } 1452 } 1453 1454 void MainWindow::slot_convoLeave(QString id, unsigned long ppid, unsigned long convoId) 1455 { 1462 1456 for (int i = 0; i < licqUserSend.size(); ++i) 1463 1457 { 1464 1458 UserSendCommon* item = licqUserSend.at(i); 1465 if (item->convoId() == nConvoId) 1466 { 1467 item->convoLeave(id, nConvoId); 1468 return; 1459 if (item->ppid() == ppid && item->convoId() == convoId && 1460 item->isUserInConvo(id)) 1461 { 1462 item->convoLeave(id, convoId); 1463 break; 1469 1464 } 1470 1465 } -
branches/qt-gui_qt4/src/userevents/usersendcommon.cpp
r5591 r5601 509 509 userName = id; 510 510 511 QString strMsg = QString("%1 has joined the conversation.").arg(userName);512 mleHistory->addNotice(QDateTime::currentDateTime(), strMsg);511 mleHistory->addNotice(QDateTime::currentDateTime(), 512 tr("%1 has joined the conversation.").arg(userName)); 513 513 } 514 514 … … 516 516 { 517 517 char* realId; 518 //XXX The PPID? 519 ICQUser::MakeRealId(id.toLatin1(), LICQ_PPID, realId); 518 ICQUser::MakeRealId(id.toLatin1(), myPpid, realId); 520 519 myUsers.push_back(realId); 521 520 delete [] realId; … … 543 542 userName = id; 544 543 545 QString strMsg = QString("%1 has left the conversation.").arg(userName);546 mleHistory->addNotice(QDateTime::currentDateTime(), strMsg);544 mleHistory->addNotice(QDateTime::currentDateTime(), 545 tr("%1 has left the conversation.").arg(userName)); 547 546 548 547 // Remove the typing notification if active
