19 #include "configuration.hpp"
20 #include "wikiedit.hpp"
48 static QMutex ProblematicUserListLock;
76 void Update(
bool MatchingOnly =
false);
101 void setBadnessScore(
long value);
111 void SetBot(
bool value);
QString GetContentsOfTalkPage()
GetContentsOfTalkPage returns a precached content of this users talk page If there is a global instan...
long BadnessScore
Badness score of current user.
void Update(bool MatchingOnly=false)
Call UpdateUser on current user.
bool IsIP()
Returns true in case the current user is IP user.
QString Username
Username.
long getBadnessScore(bool _resync=true)
Retrieve a badness score for current user, see WikiUser::BadnessScore for more.
static QRegExp IPv4Regex
Matches only IPv4.
static WikiUser * RetrieveUser(WikiUser *user)
Function that return static version of this user.
int WarningLevel
Current warning level of user.
void Resync()
Update the information of this user based on global user list.
bool IsWhitelisted()
Returns true if this user is wl.
static QList< WikiUser * > ProblematicUsers
List of users that are scored in this instance of huggle.
QString ContentsOfTalkPage
In case that we retrieved the talk page during parse of warning level, this string contains it...
static QRegExp IPv6Regex
Matches all IP.
QList< WikiEdit * > Contributions
Cache of contributions made by this user.
void ForceIP()
Change the IP property to true forcefully even if user isn't IP.
QString GetTalk()
Return a link to talk page of this user (like User talk:Jimbo)
static void TrimProblematicUsersList()
Delete all users that have badness score 0 these users aren't necessary to be stored in a list...
void SetContentsOfTalkPage(QString text)
SetContentsOfTalkPage Change a cache for talk page in local and global cache.
static void UpdateUser(WikiUser *us)
Update a list of problematic users.