mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 23:55:35 -04:00
Improvements for New Services.
* Forums now loads example data... * new Posted Service, only the basics for now. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@5269 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d83e1ea6ec
commit
f05d2f9b09
15 changed files with 3236 additions and 1 deletions
65
retroshare-gui/src/gui/Posted/PostedItem.h
Normal file
65
retroshare-gui/src/gui/Posted/PostedItem.h
Normal file
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* 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;
|
||||
};
|
||||
|
||||
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:
|
||||
uint32_t mType;
|
||||
bool mSelected;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue