Huggle
build:^490^dce1e5c
|
Modifications of mediawiki pages can be done using this query. More...
#include <editquery.hpp>
Public Member Functions | |
void | Process () |
Execute query. More... | |
bool | Processed () |
Returns true in case that query is processed. More... | |
![]() | |
Query () | |
Creates empty query. | |
virtual | ~Query () |
Destructor for query. | |
virtual void | Kill () |
Terminates a query. More... | |
void | ProcessCallback () |
unsigned int | QueryID () |
virtual QString | QueryStatusToString () |
virtual QString | QueryTargetToString () |
Return a target of a query. More... | |
virtual QString | QueryTypeToString () |
Convert a type of this query to a string. | |
![]() | |
unsigned long | CollectableID () |
CollectableID. More... | |
QString | DebugHgc () |
DebugHgc. More... | |
bool | IsLocked () |
bool | IsManaged () |
IsManaged Managed class is deleted by GC and must not be deleted by hand. More... | |
void | Lock () |
Lock this object so that other threads can't change consumers or modify its properties. | |
void | RegisterConsumer (const int consumer) |
Registers a consumer. More... | |
void | RegisterConsumer (const QString consumer) |
Registers a consumer. More... | |
virtual bool | SafeDelete () |
Use this if you are not sure if you can delete this object in this moment. | |
void | Unlock () |
Unlock this object for deletion by other threads. | |
void | UnregisterConsumer (const int consumer) |
This function will remove a string which prevent the object from being removed. More... | |
void | UnregisterConsumer (const QString consumer) |
This function will remove a string which prevent the object from being removed. More... | |
Public Attributes | |
bool | Minor |
Whether the edit is minor or not. | |
QString | page |
Page that is going to be edited. | |
QString | summary |
Edit summary. | |
QString | text |
Text a page will be replaced with. | |
![]() | |
Callback | callback |
Callback. More... | |
void * | CallbackResult |
This is a pointer to object returned by your callback function. | |
QString | CustomStatus |
Custom status. More... | |
Query * | Dependency |
Dependency for query. More... | |
bool | HiddenQuery |
QueryResult * | Result |
Result of query, see documentation of QueryResult for more. | |
bool | RetryOnTimeoutFailure |
QDateTime | StartTime |
enum _Status | Status |
Current status of a query. | |
int | Timeout |
QueryType | Type |
Type of a query. More... | |
Private Attributes | |
QString | _Token |
Edit token, will be retrieved during request. | |
ApiQuery * | qEdit |
Api query to edit page. | |
ApiQuery * | qToken |
Additional Inherited Members | |
![]() | |
static QNetworkAccessManager | NetworkManager |
Modifications of mediawiki pages can be done using this query.
Definition at line 25 of file editquery.hpp.
|
virtual |
Execute query.
This is a main() of every query, your implementation goes here
Reimplemented from Huggle::Query.
Definition at line 35 of file editquery.cpp.
References Huggle::Core::AppendQuery(), page, Huggle::ApiQuery::Parameters, Huggle::ApiQuery::Process(), Huggle::Collectable::RegisterConsumer(), Huggle::ApiQuery::SetAction(), and Huggle::ApiQuery::Target.
|
virtual |
Returns true in case that query is processed.
Reimplemented from Huggle::Query.
Definition at line 49 of file editquery.cpp.
References Huggle::MainWindow::_History, _Token, Huggle::Core::AppendQuery(), Huggle::QueryResult::Data, Huggle::Core::DebugLog(), Huggle::QueryResult::ErrorMessage, Huggle::Collectable::Lock(), Huggle::Core::Log(), Huggle::Core::Main, page, Huggle::ApiQuery::Parameters, Huggle::History::Prepend(), Huggle::ApiQuery::Process(), Huggle::Query::Processed(), qEdit, Huggle::Collectable::RegisterConsumer(), Huggle::Query::Result, Huggle::ApiQuery::SetAction(), summary, Huggle::ApiQuery::Target, text, Huggle::HistoryItem::Type, Huggle::Collectable::UnregisterConsumer(), and Huggle::ApiQuery::UsingPOST.
Referenced by Huggle::RevertQuery::ProcessRevert().