mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 00:01:21 -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
46
retroshare-gui/src/gui/gxsforums/GxsForumsFillThread.h
Normal file
46
retroshare-gui/src/gui/gxsforums/GxsForumsFillThread.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
#ifndef GXSFORUMSFILLTHREAD_H
|
||||
#define GXSFORUMSFILLTHREAD_H
|
||||
|
||||
#include <QThread>
|
||||
|
||||
class GxsForumThreadWidget;
|
||||
class RSTreeWidgetItemCompareRole;
|
||||
class QTreeWidgetItem;
|
||||
|
||||
class GxsForumsFillThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GxsForumsFillThread(GxsForumThreadWidget *parent);
|
||||
~GxsForumsFillThread();
|
||||
|
||||
void run();
|
||||
void stop();
|
||||
bool wasStopped() { return mStopped; }
|
||||
|
||||
signals:
|
||||
void progress(int current, int count);
|
||||
void status(QString text);
|
||||
|
||||
public:
|
||||
std::string mForumId;
|
||||
int mFilterColumn;
|
||||
int mSubscribeFlags;
|
||||
bool mFillComplete;
|
||||
int mViewType;
|
||||
bool mFlatView;
|
||||
bool mUseChildTS;
|
||||
bool mExpandNewMessages;
|
||||
std::string mFocusMsgId;
|
||||
RSTreeWidgetItemCompareRole *mCompareRole;
|
||||
|
||||
QList<QTreeWidgetItem*> mItems;
|
||||
QList<QTreeWidgetItem*> mItemToExpand;
|
||||
|
||||
private:
|
||||
GxsForumThreadWidget *mParent;
|
||||
volatile bool mStopped;
|
||||
};
|
||||
|
||||
#endif // GXSFORUMSFILLTHREAD_H
|
Loading…
Add table
Add a link
Reference in a new issue