mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 00:01:21 -04:00
Changed the chat service from a timer tick from the gui to a service tick.
Created a new notifier for new chat available - NOTIFY_LIST_CHAT. Removed the QTimer in PeersDialog and connect the signal. Created news feed for public chat (prework of defnax, need still some gui changes) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3413 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c7c6f6d36a
commit
b6b5fa5cd6
18 changed files with 832 additions and 175 deletions
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include "feeds/MsgItem.h"
|
||||
#include "feeds/PeerItem.h"
|
||||
#include "feeds/ChatMsgItem.h"
|
||||
|
||||
#include "settings/rsharesettings.h"
|
||||
#include "chat/PopupChatDialog.h"
|
||||
|
@ -49,6 +50,7 @@ const uint32_t NEWSFEED_CHANMSGLIST = 0x0005;
|
|||
const uint32_t NEWSFEED_BLOGNEWLIST = 0x0006;
|
||||
const uint32_t NEWSFEED_BLOGMSGLIST = 0x0007;
|
||||
const uint32_t NEWSFEED_MESSAGELIST = 0x0008;
|
||||
const uint32_t NEWSFEED_CHATMSGLIST = 0x0009;
|
||||
|
||||
/*****
|
||||
* #define NEWS_DEBUG 1
|
||||
|
@ -371,8 +373,15 @@ void NewsFeed::addFeedItemChatNew(RsFeedItem &fi)
|
|||
std::cerr << "NewsFeed::addFeedItemChatNew()";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* make new widget */
|
||||
ChatMsgItem *cm = new ChatMsgItem(this, NEWSFEED_CHATMSGLIST, fi.mId1, fi.mId2, true);
|
||||
|
||||
/* store in forum list */
|
||||
|
||||
/* add to layout */
|
||||
verticalLayout->insertWidget(0, cm);
|
||||
}
|
||||
|
||||
void NewsFeed::addFeedItemMessage(RsFeedItem &fi)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue