Enabled creating forum messages in FeedReader plugin

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7706 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-11-24 22:40:29 +00:00
parent 30d9671ca6
commit 069e8e490a
8 changed files with 422 additions and 246 deletions

View file

@ -24,6 +24,7 @@
#include <QDialog>
#include "interface/rsFeedReader.h"
#include "util/TokenQueue.h"
namespace Ui {
class AddFeedDialog;
@ -31,8 +32,9 @@ class AddFeedDialog;
class RsFeedReader;
class FeedReaderNotify;
class UIStateHelper;
class AddFeedDialog : public QDialog
class AddFeedDialog : public QDialog, public TokenResponse
{
Q_OBJECT
@ -43,6 +45,9 @@ public:
void setParent(const std::string &parentId);
bool fillFeed(const std::string &feedId);
/* TokenResponse */
virtual void loadRequest(const TokenQueue *queue, const TokenRequest &req);
private slots:
void authenticationToggled();
void useStandardStorageTimeToggled();
@ -53,21 +58,31 @@ private slots:
void validate();
void createFeed();
void preview();
void clearMessageCache();
private:
void processSettings(bool load);
void getFeedInfo(FeedInfo &feedInfo);
void setActiveForumId(const std::string &forumId);
void requestForumGroups();
void loadForumGroups(const uint32_t &token);
private:
RsFeedReader *mFeedReader;
FeedReaderNotify *mNotify;
std::string mFeedId;
std::string mParentId;
std::string mFillForumId;
RsFeedTransformationType mTransformationType;
std::list<std::string> mXPathsToUse;
std::list<std::string> mXPathsToRemove;
std::string mXslt;
TokenQueue *mTokenQueue;
UIStateHelper *mStateHelper;
Ui::AddFeedDialog *ui;
};