summaryrefslogtreecommitdiff
path: root/fetchforumsaction.h
blob: b8625fafe80b579e4ba1c71642dabfb91ec8fb91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef FETCHFORUMSACTION_H
#define FETCHFORUMSACTION_H

#include <QtCore/QVariant>
#include "action.h"

class XmlRpcPendingCall;

class FetchForumsAction : public Action
{
	Q_OBJECT
public:
	explicit FetchForumsAction(Board *board);

	void execute();

private slots:
	void handleFinishedCall();

private:
	static QList<QVariantMap> flattenForumList(const QVariantList& list, int *order);
	static QString unencodeForumText(const QVariant& v);


private:
	XmlRpcPendingCall *_call;
};

#endif // FETCHFORUMSACTION_H