restored updatePeerStatus() method

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1173 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-05-05 19:15:32 +00:00
parent 416b367c58
commit 02c1562622

View file

@ -180,12 +180,6 @@ PeersDialog::PeersDialog(QWidget *parent)
#endif #endif
} }
/*void PeersDialog::setChatDialog(ChatDialog *cd)
{
chatDialog = cd;
}*/
void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point ) void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
{ {
@ -663,20 +657,31 @@ void PeersDialog::configurefriend()
confdialog -> show(); confdialog -> show();
} }
void PeersDialog::updatePeerStatusString(const QString& peer_id,const QString& status_string)
{
RshareSettings settings;
uint chatflags = settings.getChatFlags();
PopupChatDialog *pcd = getPrivateChat(peer_id.toStdString(),rsPeers->getPeerName(peer_id.toStdString()), chatflags);
pcd->updateStatusString(status_string);
}
void PeersDialog::insertChat() void PeersDialog::insertChat()
{ {
if (!rsMsgs->chatAvailable()) if (!rsMsgs->chatAvailable())
{ {
std::cerr << "no chat available." << std::endl ;
return; return;
} }
std::list<ChatInfo> newchat; std::list<ChatInfo> newchat;
if (!rsMsgs->getNewChat(newchat)) if (!rsMsgs->getNewChat(newchat))
{ {
std::cerr << "could not get new chat." << std::endl ;
return; return;
} }
std::cerr << "got new chat." << std::endl ;
QTextEdit *msgWidget = ui.msgText; QTextEdit *msgWidget = ui.msgText;
std::list<ChatInfo>::iterator it; std::list<ChatInfo>::iterator it;