blob: fdbccbd18c75b87036e4ffd03249cfa1387d5f72 (
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
42
43
44
|
#ifndef TESTLIBRSS_H
#define TESTLIBRSS_H
#include <tqobject.h>
#include "loader.h"
#include "document.h"
#include "article.h"
#include "global.h"
using RSS::Loader;
using RSS::Document;
using RSS::Status;
class Tester : public TQObject
{
TQ_OBJECT
public:
void test( const TQString &url );
private slots:
void slotLoadingComplete( Loader *loader, Document doc, Status status );
};
class TestRetriever : public RSS::DataRetriever
{
TQ_OBJECT
public:
TestRetriever();
~TestRetriever() override;
void retrieveData(const KURL &url) override;
int errorCode() const override { return m_errorCode; }
void abort() override { /* no-op */ }
private:
int m_errorCode;
};
#endif
|