Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Huggle::WLQuery Class Reference

Whitelist query :o. More...

#include <wlquery.hpp>

+ Inheritance diagram for Huggle::WLQuery:

Public Member Functions

void Process ()
 Execute query. More...
 
- Public Member Functions inherited from Huggle::Query
 Query ()
 Creates empty query.
 
virtual ~Query ()
 Destructor for query.
 
virtual void Kill ()
 Terminates a query. More...
 
void ProcessCallback ()
 
virtual bool Processed ()
 Returns true in case that query is processed.
 
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.
 
- Public Member Functions inherited from Huggle::Collectable
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 Save
 
- Public Attributes inherited from Huggle::Query
Callback callback
 Callback. More...
 
void * CallbackResult
 This is a pointer to object returned by your callback function.
 
QString CustomStatus
 Custom status. More...
 
QueryDependency
 Dependency for query. More...
 
bool HiddenQuery
 
QueryResultResult
 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 Slots

void Finished ()
 
void ReadData ()
 

Private Attributes

QNetworkReply * r
 

Additional Inherited Members

- Static Public Attributes inherited from Huggle::Query
static QNetworkAccessManager NetworkManager
 

Detailed Description

Whitelist query :o.

Definition at line 23 of file wlquery.hpp.

Member Function Documentation

void WLQuery::Process ( )
virtual

Execute query.

This is a main() of every query, your implementation goes here

Reimplemented from Huggle::Query.

Definition at line 26 of file wlquery.cpp.

References Huggle::Configuration::Project, Huggle::Query::Result, and Huggle::Configuration::WhiteList.

Referenced by Huggle::MainWindow::Exit().


The documentation for this class was generated from the following files: