4
Copyright (c) 2011 by Evgeny Khryukin
6
***************************************************************************
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 2 of the License, or *
11
* (at your option) any later version. *
13
***************************************************************************
16
#ifndef UPLOADMANAGER_H
17
#define UPLOADMANAGER_H
20
#include <QNetworkCookie>
22
class QNetworkAccessManager;
26
class UploadManager : public QObject
30
UploadManager(QObject* p = 0);
32
void go(const QString& file);
33
void setCookies(const QList<QNetworkCookie>& cookies);
34
bool success() const { return success_; };
37
void transferProgress(qint64, qint64);
39
void statusText(const QString&);
40
void uploadFileURL(const QString&);
43
void getStorageFinished();
44
void uploadFinished();
45
void verifyingFinished();
48
void doUpload(const QUrl& url);
51
QNetworkAccessManager* manager_;
57
#endif // UPLOADMANAGER_H