2012-11-07 18:24:23 -05:00
|
|
|
#ifndef POSTEDCREATEPOSTDIALOG_H
|
|
|
|
#define POSTEDCREATEPOSTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include "retroshare/rsposted.h"
|
2012-12-05 17:45:44 -05:00
|
|
|
#include "PostedUserTypes.h"
|
|
|
|
|
2012-11-07 18:24:23 -05:00
|
|
|
#include "util/TokenQueue.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class PostedCreatePostDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class PostedCreatePostDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* @param tokenQ parent callee token
|
|
|
|
* @param posted
|
|
|
|
*/
|
2012-11-17 16:43:21 -05:00
|
|
|
explicit PostedCreatePostDialog(TokenQueue* tokenQ, RsPosted* posted, const RsGxsGroupId& grpId, QWidget *parent = 0);
|
2012-11-07 18:24:23 -05:00
|
|
|
~PostedCreatePostDialog();
|
|
|
|
|
2012-11-17 16:43:21 -05:00
|
|
|
private slots:
|
2012-11-07 18:24:23 -05:00
|
|
|
|
|
|
|
void createPost();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::PostedCreatePostDialog *ui;
|
|
|
|
|
|
|
|
QString mLink;
|
|
|
|
QString mNotes;
|
|
|
|
RsPosted* mPosted;
|
2012-11-17 16:43:21 -05:00
|
|
|
RsGxsGroupId mGrpId;
|
2012-11-07 18:24:23 -05:00
|
|
|
TokenQueue* mTokenQueue;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // POSTEDCREATEPOSTDIALOG_H
|