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

The ProtectPage class display a window where user can protect a page given they have the permissions to do that. More...

#include <protectpage.hpp>

+ Inheritance diagram for Huggle::ProtectPage:

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
 
ApiQueryptkk
 Pointer for second token.
 
ApiQueryptkq
 Pointer to get first token.
 
WikiPageptpge
 DOCUMENT ME.
 
ApiQueryptpt
 Pointer for protection.
 
int PtQueryPhase
 
QTimer * tt
 DOCUMENT ME.
 
Ui::ProtectPage * ui
 

Detailed Description

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.

Constructor & Destructor Documentation

ProtectPage::ProtectPage ( QWidget *  parent = 0)
explicit
Todo:
LOCALIZE ME
Todo:
LOCALIZE ME
Todo:
LOCALIZE ME

Definition at line 16 of file protectpage.cpp.

References ptkk, ptkq, ptpge, ptpt, and tt.

Member Function Documentation

void ProtectPage::Failed ( QString  reason)
private
Todo:
LOCALIZE ME
Todo:
LOCALIZE ME

Definition at line 149 of file protectpage.cpp.

References ptkq, ptpt, tt, and Huggle::Collectable::UnregisterConsumer().

Referenced by checkTokenToProtect(), and Protect().

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

Parameters
Pagethat will be protected by user

Definition at line 42 of file protectpage.cpp.

References ptpge.

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


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