Fixed posted item serialisation (wrong way round)

cleaned up comments gui and added loading framework
correctly initialisaed posted items


git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5876 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2012-11-22 22:40:31 +00:00
parent 4e63561473
commit ebbe967402
14 changed files with 456 additions and 290 deletions

View file

@ -34,10 +34,8 @@ class PostedItem;
class PostedHolder
{
public:
virtual void deletePostedItem(PostedItem *, uint32_t ptype) = 0;
virtual void notifySelection(PostedItem *item, int ptype) = 0;
virtual void requestComments(std::string threadId) = 0;
virtual void showComments(const RsGxsMessageId& threadId) = 0;
};
@ -48,15 +46,7 @@ class PostedItem : public QWidget, private Ui::PostedItem
public:
PostedItem(PostedHolder *parent, const RsPostedPost &item);
//void setDummyText();
//void updateParent(PhotoHolder *parent); // for external construction.
//void removeItem();
//void setSelected(bool on);
//bool isSelected();
protected:
//void mousePressEvent(QMouseEvent *event);
RsPostedPost getPost() const;
private slots:
void loadComments();
@ -66,7 +56,8 @@ private:
bool mSelected;
std::string mThreadId;
PostedHolder *mParent;
PostedHolder *mPostHolder;
RsPostedPost mPost;
};