Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
editquery.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 EDITQUERY_H
12 #define EDITQUERY_H
13 
14 #include <QString>
15 #include <QUrl>
16 #include "apiquery.hpp"
17 #include "core.hpp"
18 #include "history.hpp"
19 
20 namespace Huggle
21 {
22  class ApiQuery;
23 
24  //! Modifications of mediawiki pages can be done using this query
25  class EditQuery : public Query
26  {
27  public:
28  EditQuery();
29  ~EditQuery();
30  void Process();
31  bool Processed();
32  //! Page that is going to be edited
33  QString page;
34  //! Text a page will be replaced with
35  QString text;
36  //! Edit summary
37  QString summary;
38  //! Whether the edit is minor or not
39  bool Minor;
40  private:
41  ApiQuery *qToken;
42  //! Api query to edit page
44  //! Edit token, will be retrieved during request
45  QString _Token;
46  };
47 }
48 
49 #endif // EDITQUERY_H
void Process()
Execute query.
Definition: editquery.cpp:35
QString summary
Edit summary.
Definition: editquery.hpp:37
bool Minor
Whether the edit is minor or not.
Definition: editquery.hpp:39
QString page
Page that is going to be edited.
Definition: editquery.hpp:33
ApiQuery * qEdit
Api query to edit page.
Definition: editquery.hpp:43
QString text
Text a page will be replaced with.
Definition: editquery.hpp:35
bool Processed()
Returns true in case that query is processed.
Definition: editquery.cpp:49
Modifications of mediawiki pages can be done using this query.
Definition: editquery.hpp:25
This class can be used to execute any kind of api query on any wiki.
Definition: apiquery.hpp:55
QString _Token
Edit token, will be retrieved during request.
Definition: editquery.hpp:45
Query base class for all http queries executed by huggle.
Definition: query.hpp:64