19 #include <QStringList>
20 #include <QNetworkAccessManager>
21 #include "queryresult.hpp"
22 #include "collectable.hpp"
23 #include "exception.hpp"
29 typedef void* (*Callback) (Query*);
90 static QNetworkAccessManager NetworkManager;
91 bool RetryOnTimeoutFailure;
130 virtual QString QueryStatusToString();
Base for all items that are supposed to be collected by garbage collector.
bool Repeated
When a query fail and retry this is changed to true so that it doesn't endlessly restart.
virtual void Process()
Execute query.
virtual QString QueryTargetToString()
Return a target of a query.
virtual bool Processed()
Returns true in case that query is processed.
_Status
Status of a query.
static unsigned int LastID
This is a last ID used by a constructor of a query.
virtual QString QueryTypeToString()
Convert a type of this query to a string.
Callback callback
Callback.
virtual void Kill()
Terminates a query.
QueryType Type
Type of a query.
QueryType
The QueryType enum.
virtual ~Query()
Destructor for query.
Query()
Creates empty query.
Query * Dependency
Dependency for query.
enum _Status Status
Current status of a query.
QString CustomStatus
Custom status.
unsigned int ID
Every query has own unique ID which can be used to work with them.
void * CallbackResult
This is a pointer to object returned by your callback function.
Query base class for all http queries executed by huggle.
QueryResult * Result
Result of query, see documentation of QueryResult for more.