~xavi-garcia-mena/storage-provider-webdav/base-url-host-fix

« back to all changes in this revision

Viewing changes to src/MultiStatusParser.h

  • Committer: Tarmac
  • Author(s): James Henstridge
  • Date: 2016-09-23 05:03:11 UTC
  • mfrom: (7.1.13 provider-test-fixture)
  • Revision ID: tarmac-20160923050311-bb3m6zal58cpccqu
Add test infrastructure for testing DavProvider.

Approved by Michi Henning, unity-api-1-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include <QIODevice>
4
4
#include <QObject>
5
5
#include <QString>
 
6
#include <QUrl>
6
7
#include <QXmlInputSource>
7
8
#include <QXmlReader>
8
9
 
21
22
{
22
23
    Q_OBJECT
23
24
public:
24
 
    MultiStatusParser(QIODevice* input);
 
25
    MultiStatusParser(QUrl const& base_url, QIODevice* input);
25
26
    virtual ~MultiStatusParser();
26
27
 
27
28
    void startParsing();
28
29
    QString const& errorString() const;
29
30
 
30
31
Q_SIGNALS:
31
 
    void response(QString const& href, std::vector<MultiStatusProperty> const& properties, int status);
 
32
    void response(QUrl const& href, std::vector<MultiStatusProperty> const& properties, int status);
32
33
    void finished();
33
34
 
34
35
private Q_SLOTS:
39
40
    class Handler;
40
41
    friend class Handler;
41
42
 
 
43
    QUrl const base_url_;
 
44
 
42
45
    // These two represent the same input: we need to keep the
43
46
    // QIODevice around to access bytesAvailable() method.
44
47
    QIODevice* const input_;