Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
webserverquery.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef WEBSERVERQUERY_H
12 #define WEBSERVERQUERY_H
13 
14 #include <QList>
15 #include <QString>
16 #include <QtNetwork/QtNetwork>
17 #include <QUrl>
18 #include <QtXml/QtXml>
19 #include <QObject>
20 #include <QThread>
21 #include "core.hpp"
22 #include "query.hpp"
23 
24 namespace Huggle
25 {
26  //! This is a query that can be used to perform simple webserver requests
28  {
29  public:
31  //! Whether the query will submit parameters using POST data
32  bool UsingPOST;
33  //! This is an url of api request, you probably don't want to change it unless
34  //! you want to construct whole api request yourself
35  QString URL;
36  //! Parameters for action, for example page title
37  QString Parameters;
38  //! Run
39  void Process();
40  //! Terminate the query
41  void Kill();
42  private:
43  QNetworkReply *reply;
44  private slots:
45  void ReadData();
46  void Finished();
47  };
48 }
49 
50 #endif // WEBSERVERQUERY_H
void Kill()
Terminate the query.
bool UsingPOST
Whether the query will submit parameters using POST data.
This is a query that can be used to perform simple webserver requests.
QString Parameters
Parameters for action, for example page title.
Query base class for all http queries executed by huggle.
Definition: query.hpp:64