mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 07:25:36 -04:00
Merge branch 'badPacketMessage'
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1168 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
16231dea2b
commit
698425ba9e
7 changed files with 75 additions and 1 deletions
|
@ -267,6 +267,24 @@ void NotifyQt::UpdateGUI()
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (rsNotify->NotifyLogMessage(sysid, type, title, msg))
|
||||
{
|
||||
/* make a log message */
|
||||
std::string logMesString = title + " " + msg;
|
||||
switch(type)
|
||||
{
|
||||
case RS_SYS_ERROR:
|
||||
cDialog->setLogInfo(QString(logMesString.c_str()));
|
||||
break;
|
||||
case RS_SYS_WARNING:
|
||||
cDialog->setLogInfo(QString(logMesString.c_str()));
|
||||
break;
|
||||
default:
|
||||
case RS_SYS_INFO:
|
||||
cDialog->setLogInfo(QString(logMesString.c_str()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -106,6 +106,8 @@ virtual ~RsNotify() { return; }
|
|||
virtual bool NotifySysMessage(uint32_t &sysid, uint32_t &type,
|
||||
std::string &title, std::string &msg) = 0;
|
||||
virtual bool NotifyPopupMessage(uint32_t &ptype, std::string &name, std::string &msg) = 0;
|
||||
virtual bool NotifyLogMessage(uint32_t &sysid, uint32_t &type,
|
||||
std::string &title, std::string &msg) = 0;
|
||||
|
||||
/* Control over Messages */
|
||||
virtual bool GetSysMessageList(std::map<uint32_t, std::string> &list) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue