Huggle
build:^490^dce1e5c
|
Form to report users to UAA. More...
#include <uaareport.hpp>
Public Member Functions | |
UAAReport (QWidget *parent=0) | |
void | setUserForUAA (WikiUser *user) |
I don't have much of a clue why this is here lol, but I know the dialog can't be initialised from mainwindow without this. | |
Private Slots | |
void | on_pushButton_2_clicked () |
void | on_pushButton_3_clicked () |
void | on_pushButton_clicked () |
void | onStartOfSearch () |
void | onTick () |
Private Member Functions | |
bool | checkIfReported () |
Check if user is reported. | |
void | failed (QString reason) |
Message box, if anything fails. | |
void | getPageContents () |
Get page contents (reason for this is above) More... | |
void | insertUsername () |
Function to that allows us to properly insert what we need to insert. | |
void | whatToReport () |
Function to decide what we are reporting. | |
Private Attributes | |
QString | contentsOfUAA |
QTimer * | cuT |
Timer that does other magical things. | |
QString | dr |
Whole contents of UAA page. | |
QString | optionalreason |
String that represents what is in the line edit. | |
WikiPage * | page |
Pointer to WikiUser. | |
ApiQuery * | qChUAApage |
Pointer that also gets UAA contents; this time it is used for checking if a user is reported or not. | |
ApiQuery * | qUAApage |
Pointer to get UAA contents (we don't want replace the page with our content, do we?) | |
QString | ta |
UAA template. | |
QString | uaaReportReason |
Reason for report. | |
Ui::UAAReport * | ui |
WikiUser * | User |
QTimer * | uT |
Timer pointer that allows us to do magical things. | |
Form to report users to UAA.
Definition at line 36 of file uaareport.hpp.
|
private |
Get page contents (reason for this is above)
Definition at line 46 of file uaareport.cpp.
References Huggle::Core::AppendQuery(), onTick(), Huggle::ApiQuery::Parameters, Huggle::ApiQuery::Process(), qUAApage, Huggle::Collectable::RegisterConsumer(), Huggle::ApiQuery::SetAction(), Huggle::ApiQuery::Target, and uT.
Referenced by on_pushButton_clicked().
|
privateslot |
Definition at line 155 of file uaareport.cpp.
References getPageContents().
|
privateslot |
Definition at line 66 of file uaareport.cpp.
References Huggle::QueryResult::Data, Huggle::Core::DebugLog(), dr, Huggle::Configuration::EditSuffixOfHuggle, failed(), insertUsername(), Huggle::Core::Log(), Huggle::Query::Processed(), qUAApage, Huggle::Query::Result, Huggle::Core::UAAP, Huggle::Collectable::UnregisterConsumer(), Huggle::WikiUser::Username, uT, and whatToReport().
Referenced by getPageContents().