mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Posted Links:
- cleaned source code - added auto refresh Updated english translation git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6506 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
11d2701edc
commit
4edcec6fe9
16 changed files with 406 additions and 596 deletions
|
@ -27,31 +27,29 @@
|
|||
#include "ui_PostedItem.h"
|
||||
|
||||
#include <retroshare/rsposted.h>
|
||||
#include "gui/feeds/FeedHolder.h"
|
||||
#include "gui/gxs/GxsFeedItem.h"
|
||||
|
||||
class RsPostedPost;
|
||||
|
||||
class PostedItem : public GxsFeedItem, private Ui::PostedItem
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PostedItem(FeedHolder *parent, uint32_t feedId, const RsGxsGroupId &groupId, const RsGxsMessageId &messageId, bool isHome);
|
||||
PostedItem(FeedHolder *parent, uint32_t feedId, const RsPostedPost &post, bool isHome);
|
||||
PostedItem(FeedHolder *parent, uint32_t feedId, const RsGxsGroupId &groupId, const RsGxsMessageId &messageId, bool isHome);
|
||||
PostedItem(FeedHolder *parent, uint32_t feedId, const RsPostedPost &post, bool isHome);
|
||||
|
||||
RsPostedPost getPost() const;
|
||||
void setContent(const RsPostedPost& post);
|
||||
|
||||
// Make this public so we can sort based on it.
|
||||
RsPostedPost mPost;
|
||||
const RsPostedPost &getPost() const;
|
||||
RsPostedPost &post();
|
||||
void setContent(const RsPostedPost& post);
|
||||
|
||||
private slots:
|
||||
void loadComments();
|
||||
void makeUpVote();
|
||||
void makeDownVote();
|
||||
void loadComments();
|
||||
void makeUpVote();
|
||||
void makeDownVote();
|
||||
|
||||
signals:
|
||||
void vote(const RsGxsGrpMsgIdPair& msgId, bool up);
|
||||
void vote(const RsGxsGrpMsgIdPair& msgId, bool up);
|
||||
|
||||
protected:
|
||||
virtual void loadMessage(const uint32_t &token);
|
||||
|
@ -59,12 +57,9 @@ protected:
|
|||
private:
|
||||
void setup();
|
||||
|
||||
uint32_t mType;
|
||||
bool mSelected;
|
||||
|
||||
|
||||
uint32_t mType;
|
||||
bool mSelected;
|
||||
RsPostedPost mPost;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue