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-10-21 15:45:35 -04:00
|
|
|
#include <retroshare/rsposted.h>
|
2012-07-01 19:05:03 -04:00
|
|
|
|
2013-03-11 16:53:15 -04:00
|
|
|
#include "gui/gxs/GxsCommentContainer.h"
|
|
|
|
#include "gui/Posted/PostedListDialog.h"
|
2012-07-01 19:05:03 -04:00
|
|
|
|
2013-03-11 16:53:15 -04:00
|
|
|
class PostedDialog : public GxsCommentContainer
|
2012-07-01 19:05:03 -04:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-03-11 16:53:15 -04:00
|
|
|
PostedDialog(QWidget *parent = 0)
|
|
|
|
:GxsCommentContainer(parent) { return; }
|
|
|
|
|
|
|
|
virtual GxsServiceDialog *createServiceDialog()
|
|
|
|
{
|
|
|
|
return new PostedListDialog(this);
|
|
|
|
}
|
2012-07-01 19:05:03 -04:00
|
|
|
|
2013-03-11 16:53:15 -04:00
|
|
|
virtual QString getServiceName()
|
|
|
|
{
|
|
|
|
return tr("Posted");
|
|
|
|
}
|
2012-07-01 19:05:03 -04:00
|
|
|
|
2013-03-11 16:53:15 -04:00
|
|
|
virtual RsTokenService *getTokenService()
|
|
|
|
{
|
|
|
|
return rsPosted->getTokenService();
|
|
|
|
}
|
2012-07-01 19:05:03 -04:00
|
|
|
|
2013-03-11 16:53:15 -04:00
|
|
|
virtual RsGxsCommentService *getCommentService()
|
|
|
|
{
|
|
|
|
return rsPosted;
|
|
|
|
}
|
2012-07-01 19:05:03 -04:00
|
|
|
|
2013-03-11 16:53:15 -04:00
|
|
|
virtual GxsCommentHeader *createHeaderWidget()
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2012-07-01 19:05:03 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|