blob: f028ccbbddfe7cdbc0450442ea39f50143bd019c (
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
33
34
35
36
37
38
39
40
41
|
#ifndef FETCHTOPICSACTION_H
#define FETCHTOPICSACTION_H
#include <QtCore/QVariant>
#include <QtSql/QSqlQuery>
#include "board.h"
#include "action.h"
class XmlRpcPendingCall;
class FetchTopicsAction : public Action
{
Q_OBJECT
public:
enum {
FetchAllTopics = -1
};
explicit FetchTopicsAction(int forumId, Board::TopicType type, int start, int end, Board *board);
bool isSupersetOf(Action *action) const;
void execute();
private slots:
void handleFinishedCall();
private:
static QString decodeTopicText(const QVariant& v);
QList<int> getCurrentDbTopics(int start, int end);
private:
XmlRpcPendingCall *_call;
int _forumId;
Board::TopicType _type;
int _start;
int _end;
};
#endif // FETCHTOPICSACTION_H
|