mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 02:36:23 -04:00
Forums:
- Switched from own token member to the new methods on TokenQueue. - Reactivated thread from the old forum to fill the messages. - Load all messages at once. - Added processing of missing messages. - Fixed new/read/unread status. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5952 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6527aaf2d8
commit
4413536926
10 changed files with 781 additions and 661 deletions
|
@ -36,6 +36,7 @@
|
|||
|
||||
class ForumInfo;
|
||||
class RsGxsForumMsg;
|
||||
class GxsForumThreadWidget;
|
||||
|
||||
class GxsForumsDialog : public RsAutoUpdatePage, public TokenResponse
|
||||
{
|
||||
|
@ -55,10 +56,6 @@ public:
|
|||
// Callback for all Loads.
|
||||
virtual void loadRequest(const TokenQueue *queue, const TokenRequest &req);
|
||||
|
||||
// Utility Fns.
|
||||
static QString titleFromInfo(const RsMsgMetaData &meta);
|
||||
static QString messageFromInfo(const RsGxsForumMsg &msg);
|
||||
|
||||
private slots:
|
||||
void forceUpdateDisplay(); // TEMP HACK FN.
|
||||
|
||||
|
@ -80,6 +77,9 @@ private slots:
|
|||
void showForumDetails();
|
||||
void editForumDetails();
|
||||
|
||||
void markMsgAsRead();
|
||||
void markMsgAsUnread();
|
||||
|
||||
void generateMassData();
|
||||
|
||||
void shareKey();
|
||||
|
@ -101,13 +101,13 @@ private:
|
|||
void requestGroupSummary();
|
||||
void loadGroupSummary(const uint32_t &token);
|
||||
|
||||
GxsForumThreadWidget *forumThreadWidget(const std::string &id);
|
||||
|
||||
// void requestGroupSummary_CurrentForum(const std::string &forumId);
|
||||
// void loadGroupSummary_CurrentForum(const uint32_t &token);
|
||||
|
||||
std::string mForumId;
|
||||
TokenQueue *mForumQueue;
|
||||
uint32_t mTokenGroupSummary;
|
||||
bool mRequestGroupSummary;
|
||||
|
||||
QTreeWidgetItem *yourForums;
|
||||
QTreeWidgetItem *subscribedForums;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue