RetroShare/retroshare-gui/src/gui/PhotoShare/AlbumItem.h
chrisparker126 744a78b140 Added cleanup code for GXS services in rsinit (services now based in GXS_phase1 folder in .retroshare/ folder
disabled msg synchronisation by default through compilation #define (use GXS_ENABLE_MSG_SYNC to enable message sync)
Finally removed v2 suffix from all photo components and filenames (please edit your libretroshare.pro file accordingly)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5883 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-11-24 19:49:23 +00:00

39 lines
748 B
C++

#ifndef ALBUMITEM_H
#define ALBUMITEM_H
#include <QWidget>
#include "string.h"
#include "retroshare/rsphoto.h"
#include "PhotoShareItemHolder.h"
namespace Ui {
class AlbumItem;
}
class AlbumItem : public QWidget, public PhotoShareItem
{
Q_OBJECT
public:
explicit AlbumItem(const RsPhotoAlbum& album, PhotoShareItemHolder* albumHolder, QWidget *parent = 0);
virtual ~AlbumItem();
const RsPhotoAlbum& getAlbum();
bool isSelected() { return mSelected ;}
void setSelected(bool selected);
protected:
void mousePressEvent(QMouseEvent *event);
private:
void setUp();
private:
Ui::AlbumItem *ui;
RsPhotoAlbum mAlbum;
PhotoShareItemHolder* mAlbumHolder;
bool mSelected;
};
#endif // ALBUMITEM_H