Huggle
build:^490^dce1e5c
|
The ProtectPage class display a window where user can protect a page given they have the permissions to do that. More...
#include <protectpage.hpp>
Public Member Functions | |
ProtectPage (QWidget *parent=0) | |
void | setPageToProtect (WikiPage *Page) |
set a page that is supposed to be protected, this needs to be called by owner who created this form More... | |
Private Slots | |
void | on_pushButton_2_clicked () |
void | on_pushButton_clicked () |
void | onTick () |
Private Member Functions | |
void | checkTokenToProtect () |
void | Failed (QString reason) |
void | getTokenToProtect () |
void | Protect () |
Private Attributes | |
QString | protecttoken |
ApiQuery * | ptkk |
Pointer for second token. | |
ApiQuery * | ptkq |
Pointer to get first token. | |
WikiPage * | ptpge |
DOCUMENT ME. | |
ApiQuery * | ptpt |
Pointer for protection. | |
int | PtQueryPhase |
QTimer * | tt |
DOCUMENT ME. | |
Ui::ProtectPage * | ui |
The ProtectPage class display a window where user can protect a page given they have the permissions to do that.
Definition at line 36 of file protectpage.hpp.
|
explicit |
|
private |
Definition at line 78 of file protectpage.cpp.
References Huggle::Core::AppendQuery(), Huggle::QueryResult::Data, Huggle::Core::DebugLog(), Huggle::QueryResult::ErrorMessage, Failed(), Huggle::WikiPage::PageName, Huggle::ApiQuery::Parameters, Huggle::ApiQuery::Process(), Huggle::Query::Processed(), ptkq, ptpge, ptpt, Huggle::Collectable::RegisterConsumer(), Huggle::Query::Result, Huggle::ApiQuery::SetAction(), Huggle::ApiQuery::Target, and Huggle::Collectable::UnregisterConsumer().
|
private |
Definition at line 149 of file protectpage.cpp.
References ptkq, ptpt, tt, and Huggle::Collectable::UnregisterConsumer().
Referenced by checkTokenToProtect(), and Protect().
|
private |
Definition at line 47 of file protectpage.cpp.
References Huggle::Core::AppendQuery(), Huggle::WikiPage::PageName, Huggle::ApiQuery::Parameters, Huggle::ApiQuery::Process(), ptkq, ptpge, Huggle::Collectable::RegisterConsumer(), Huggle::ApiQuery::SetAction(), Huggle::ApiQuery::Target, and tt.
|
private |
Definition at line 174 of file protectpage.cpp.
References Huggle::Core::DebugLog(), Huggle::QueryResult::ErrorMessage, Failed(), Huggle::WikiPage::PageName, Huggle::Query::Processed(), ptpge, ptpt, Huggle::Query::Result, tt, and Huggle::Collectable::UnregisterConsumer().
void ProtectPage::setPageToProtect | ( | WikiPage * | Page | ) |
set a page that is supposed to be protected, this needs to be called by owner who created this form
Page | that will be protected by user |
Definition at line 42 of file protectpage.cpp.
References ptpge.
Referenced by Huggle::MainWindow::on_actionProtect_triggered().