RetroShare/retroshare-gui/src/gui/Posted/PostedItem.h
chrisparker126 c518bd2f19 Removed references to postedVEG from GxsGroupDialog and associated classes and PostedDialog (GUI does not work now but does not crash)
Removed V2 references: TokenQueueV2 and RsTokReqOptionsV2 are now TokenQueue and RsTokReqOptions and renamed file
Added initialisation of Posted back end service successfully
Added new msg status flags  GXS_SERV::MSG_STATUS_UNPROCESSED and ::MSG_STATUS_UNREAD



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5707 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-10-21 19:45:35 +00:00

75 lines
1.7 KiB
C++

/*
* Retroshare Posted Plugin.
*
* Copyright 2012-2012 by Robert Fernie.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "retroshare@lunamutt.com".
*
*/
#ifndef MRK_POSTED_POSTED_ITEM_H
#define MRK_POSTED_POSTED_ITEM_H
#include "ui_PostedItem.h"
#include <retroshare/rsposted.h>
class RsPostedPost;
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;
};
class PostedItem : public QWidget, private Ui::PostedItem
{
Q_OBJECT
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);
private slots:
void loadComments();
private:
uint32_t mType;
bool mSelected;
std::string mThreadId;
PostedHolder *mParent;
};
#endif