summaryrefslogtreecommitdiff
path: root/fetchtopicsaction.h
blob: 747ad93a734a12feef5de55e7ec314e157e512c9 (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
32
#ifndef FETCHTOPICSACTION_H
#define FETCHTOPICSACTION_H

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

class XmlRpcPendingCall;

class FetchTopicsAction : public Action
{
	Q_OBJECT
public:
	explicit FetchTopicsAction(int forumId, int start, int end, Board *board);
	
	void execute();

private slots:
	void handleFinishedCall();

private:
	static QString unencodeTopicText(const QVariant& v);

private:
	XmlRpcPendingCall *_call;
	int _forumId;
	int _start;
	int _end;
	
};

#endif // FETCHTOPICSACTION_H