2012-07-01 19:05:03 -04:00
|
|
|
/*
|
|
|
|
* Retroshare Posted Dialog
|
|
|
|
*
|
|
|
|
* 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_DIALOG_H
|
|
|
|
#define MRK_POSTED_DIALOG_H
|
|
|
|
|
2012-07-27 11:41:52 -04:00
|
|
|
#include "retroshare-gui/mainpage.h"
|
2012-07-01 19:05:03 -04:00
|
|
|
#include "ui_PostedDialog.h"
|
|
|
|
|
2012-10-21 15:45:35 -04:00
|
|
|
#include <retroshare/rsposted.h>
|
2012-07-01 19:05:03 -04:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
2012-11-22 17:40:31 -05:00
|
|
|
class CommentHolder
|
|
|
|
{
|
|
|
|
public:
|
2012-07-01 19:05:03 -04:00
|
|
|
|
2012-11-22 17:40:31 -05:00
|
|
|
/*!
|
|
|
|
* This should be used for loading comments of a message on a main comment viewing page
|
|
|
|
* @param msgId the message id for which comments will be requested
|
|
|
|
*/
|
2012-11-25 16:50:45 -05:00
|
|
|
virtual void commentLoad(const RsPostedPost&) = 0;
|
2012-11-22 17:40:31 -05:00
|
|
|
};
|
2012-07-01 19:05:03 -04:00
|
|
|
|
|
|
|
class PostedListDialog;
|
|
|
|
class PostedComments;
|
|
|
|
|
2012-11-22 17:40:31 -05:00
|
|
|
class PostedDialog : public MainPage, public CommentHolder
|
2012-07-01 19:05:03 -04:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
PostedDialog(QWidget *parent = 0);
|
2012-11-25 16:50:45 -05:00
|
|
|
void commentLoad(const RsPostedPost &);
|
2012-07-01 19:05:03 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
PostedListDialog *mPostedList;
|
|
|
|
PostedComments *mPostedComments;
|
|
|
|
|
|
|
|
/* UI - from Designer */
|
|
|
|
Ui::PostedDialog ui;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|