mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Allow to download torrents from a local file (Web UI)
This commit is contained in:
parent
a4318cc060
commit
b9c4a434c9
9 changed files with 92 additions and 9 deletions
|
@ -30,10 +30,11 @@ class HttpRequestParser : public QHttpRequestHeader
|
|||
bool headerDone;
|
||||
bool messageDone;
|
||||
bool error;
|
||||
QString data;
|
||||
QByteArray data;
|
||||
QString path;
|
||||
QMap<QString, QString> postMap;
|
||||
QMap<QString, QString> getMap;
|
||||
QByteArray torrent_content;
|
||||
|
||||
public:
|
||||
HttpRequestParser();
|
||||
|
@ -41,10 +42,11 @@ class HttpRequestParser : public QHttpRequestHeader
|
|||
bool isParsable() const;
|
||||
bool isError() const;
|
||||
QString url() const;
|
||||
QString message() const;
|
||||
QByteArray message() const;
|
||||
QString get(const QString key) const;
|
||||
QString post(const QString key) const;
|
||||
void write(QString str);
|
||||
QByteArray torrent() const;
|
||||
void write(QByteArray str);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue