Huggle
build:^490^dce1e5c
|
Wiki edit. More...
#include <wikiedit.hpp>
Public Member Functions | |
WikiEdit () | |
Creates a new empty wiki edit. | |
bool | FinalizePostProcessing () |
This function is called by core. More... | |
QString | GetFullUrl () |
Return a full url to edit. | |
bool | IsPostProcessed () |
Return true in case this edit was post processed already. | |
void | PostProcess () |
This function is called by internals of huggle. | |
void | ProcessWords () |
![]() | |
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... | |
Static Public Member Functions | |
static int | GetLevel (QString page) |
Get a level of warning from talk page. | |
Public Attributes | |
bool | Bot |
Edit is a bot edit. | |
WarningLevel | CurrentUserWarningLevel |
Current warning level. | |
int | Diff |
Diff id. | |
QString | DiffText |
bool | EditMadeByHuggle |
If this is true the edit was made by huggle. | |
bool | Minor |
Edit is a minor edit. | |
bool | NewPage |
Edit is a new page. | |
WikiEdit * | Next |
int | OldID |
Old id. | |
bool | OwnEdit |
Edit was made by you. | |
WikiPage * | Page |
Page that was changed by edit. | |
bool | PostProcessing |
WikiEdit * | Previous |
int | Priority |
Priority in queue. | |
bool | ProcessedByWorkerThread |
bool | ProcessingByWorkerThread |
int | RevID |
Revision ID. | |
QString | RollbackToken |
long | Score |
QStringList | ScoreWords |
int | Size |
Size of change of edit. | |
WEStatus | Status |
QString | Summary |
Summary of edit. | |
QDateTime | Time |
bool | TrustworthEdit |
WikiUser * | User |
User who changed the page. | |
Static Public Attributes | |
static QList< WikiEdit * > | EditList |
This list contains reference to all existing edits in memory. | |
Private Attributes | |
ApiQuery * | DifferenceQuery |
bool | ProcessingDiff |
ApiQuery * | ProcessingQuery |
bool | ProcessingRevs |
Wiki edit.
Basically all changes to pages can be represented by this class
Definition at line 67 of file wikiedit.hpp.
bool WikiEdit::FinalizePostProcessing | ( | ) |
This function is called by core.
Definition at line 57 of file wikiedit.cpp.
References Huggle::QueryResult::Data, Huggle::Core::DebugLog(), Huggle::WikiUser::GetTalk(), Huggle::Core::Log(), Page, Huggle::WikiPage::PageName, Huggle::Query::Processed(), Huggle::Query::Result, RevID, Huggle::WikiUser::SetContentsOfTalkPage(), Summary, Huggle::Collectable::UnregisterConsumer(), User, and Huggle::WikiUser::Username.
void WikiEdit::ProcessWords | ( | ) |
Definition at line 219 of file wikiedit.cpp.
References Page.
bool Huggle::WikiEdit::TrustworthEdit |
If this is true the edit was made by some other tool for vandalism reverting
Definition at line 117 of file wikiedit.hpp.
Referenced by WikiEdit().