summaryrefslogtreecommitdiff
path: root/fetchforumsaction.h
blob: 3652492d8b162272d5f5d82a6e0f3e91e062fc3b (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
30
31
#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);

	bool isSupersetOf(Action *action) const;

	void execute();

private slots:
	void handleFinishedCall();

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


private:
	XmlRpcPendingCall *_call;
};

#endif // FETCHFORUMSACTION_H