1 #ifndef _KVI_IRCUSER_ENTRY_H_
2 #define _KVI_IRCUSER_ENTRY_H_
73 ModeMask = UserOp | Voice | HalfOp | Op | ChanAdmin | ChanOwner
138 void setBot(
bool bIsBot) { m_bBot = bIsBot; };
152 void setUser(
const QString & szUser) { m_szUser = szUser; };
159 void setServer(
const QString & szServ) { m_szServer = szServ; };
166 void setRealName(
const QString & szReal);
187 void setAway(
bool bAway) { m_bAway = bAway; };
202 void setAvatar(std::unique_ptr<KviAvatar> upAvatar =
nullptr);
211 void setAvatar(
KviAvatar * upAvatar =
nullptr);
218 void setUserFlags(
const QString & szFlags) { m_szUserFlags = szFlags; };
242 bool hasUser() {
return (!m_szUser.isEmpty()); };
248 bool hasHost() {
return (!m_szHost.isEmpty()); };
272 const QString &
user() {
return m_szUser; };
278 const QString &
host() {
return m_szHost; };
284 const QString &
server() {
return m_szServer; };
290 const QString &
realName() {
return m_szRealName; };
302 int hops() {
return m_iHops; };
320 std::unique_ptr<KviAvatar> forgetAvatar();
342 void setAccountName(
const QString & szAccountName) { m_szAccountName = szAccountName; };
351 #endif // _KVI_IRCUSER_ENTRY_H_
const QString & host()
Returns the hostname of the user.
Definition: KviIrcUserEntry.h:278
const QString & accountName()
Returns the account name (if any)
Definition: KviIrcUserEntry.h:337
void setUserFlags(const QString &szFlags)
Sets the user global flags (eg: "G*")
Definition: KviIrcUserEntry.h:218
void setSmartNickColor(const int iColor)
Sets the ircview smart nick color of the user.
Definition: KviIrcUserEntry.h:125
bool hasUser()
Returns true if the user has the username set.
Definition: KviIrcUserEntry.h:242
QString m_szRegisteredUserName
Definition: KviIrcUserEntry.h:104
bool m_bIrcOp
Definition: KviIrcUserEntry.h:95
void setUser(const QString &szUser)
Sets the username of the user.
Definition: KviIrcUserEntry.h:152
std::unique_ptr< KviAvatar > m_upAvatar
Definition: KviIrcUserEntry.h:97
QString m_szUser
Definition: KviIrcUserEntry.h:85
void setIrcOp(bool bIrcOp)
Sets the irc operator state of the user.
Definition: KviIrcUserEntry.h:194
bool m_bAway
Definition: KviIrcUserEntry.h:94
QString m_szHost
Definition: KviIrcUserEntry.h:86
QString m_szAccountName
Definition: KviIrcUserEntry.h:111
void setHost(const QString &szHost)
Sets the hostname of the user.
Definition: KviIrcUserEntry.h:180
bool m_bBot
Definition: KviIrcUserEntry.h:100
int m_nRefs
Definition: KviIrcUserEntry.h:99
bool hasHops()
Returns true if the user has hops set.
Definition: KviIrcUserEntry.h:266
int m_iHops
Definition: KviIrcUserEntry.h:90
QColor m_cachedColor
Definition: KviIrcUserEntry.h:107
const QString & user()
Returns the username of the user.
Definition: KviIrcUserEntry.h:272
QString m_szRealName
Definition: KviIrcUserEntry.h:89
Gender
Defines the gender of the user.
Definition: KviIrcUserEntry.h:54
QString szHost
Definition: libkvisetup.cpp:45
bool hasAccountName()
Returns true if the user has an account name.
Definition: KviIrcUserEntry.h:348
Gender m_eGender
Definition: KviIrcUserEntry.h:91
Avatar class.
Definition: KviAvatar.h:52
const QString & server()
Returns the server of the user.
Definition: KviIrcUserEntry.h:284
int hops()
Returns the number of hops.
Definition: KviIrcUserEntry.h:302
bool hasHost()
Returns true if the user has the hostname set.
Definition: KviIrcUserEntry.h:248
QString m_szServer
Definition: KviIrcUserEntry.h:88
bool hasServer()
Returns true if the user has the server set.
Definition: KviIrcUserEntry.h:254
bool m_bAvatarRequested
Definition: KviIrcUserEntry.h:101
void setServer(const QString &szServ)
Sets the server of the user.
Definition: KviIrcUserEntry.h:159
void setGender(Gender g)
Sets the gender of the user.
Definition: KviIrcUserEntry.h:145
#define g
Definition: detector.cpp:71
KviAvatar * avatar()
Returns the avatar of the user.
Definition: KviIrcUserEntry.h:308
bool m_bUseCustomColor
Definition: KviIrcUserEntry.h:108
UserMode
Defines the user mode in a channel.
Definition: KviIrcUserEntry.h:65
int m_iSmartNickColor
Definition: KviIrcUserEntry.h:110
void setBot(bool bIsBot)
Sets the user as a bot.
Definition: KviIrcUserEntry.h:138
void setHops(int iHops)
Sets the number of hops of the user.
Definition: KviIrcUserEntry.h:173
bool isBot()
Returns true if the user is marked as a bot.
Definition: KviIrcUserEntry.h:224
bool isIrcOp() const
Returns true if the user is an irc operator.
Definition: KviIrcUserEntry.h:236
A class to handle the entries of the user database.
Definition: KviIrcUserEntry.h:45
int nRefs()
Returns the number of references of the user in the database.
Definition: KviIrcUserEntry.h:314
void setAway(bool bAway)
Sets the away state of the user.
Definition: KviIrcUserEntry.h:187
The class which manages the user database.
Definition: KviIrcUserDataBase.h:45
const QString & realName()
Returns the realname of the user.
Definition: KviIrcUserEntry.h:290
bool avatarRequested() const
Returns true if kvirc already made an attempt to download user's avatar.
Definition: KviIrcUserEntry.h:326
bool isAway() const
Returns true if the user is in away mode.
Definition: KviIrcUserEntry.h:230
QString m_szLastRegisteredMatchNick
Definition: KviIrcUserEntry.h:105
QString m_szUserFlags
Definition: KviIrcUserEntry.h:92
const QString & userFlags()
Returns the user flags.
Definition: KviIrcUserEntry.h:296
Gender gender()
Returns the gender of the user.
Definition: KviIrcUserEntry.h:131
int smartNickColor()
Returns the ircview smart nick color of the user.
Definition: KviIrcUserEntry.h:118
This file contains compile time settings.
bool hasRealName()
Returns true if the user has the realname set.
Definition: KviIrcUserEntry.h:260
#define KVILIB_API
Definition: kvi_settings.h:125
bool m_bNotFoundRegUserLookup
Definition: KviIrcUserEntry.h:103
void setAccountName(const QString &szAccountName)
Sets the account name for the user.
Definition: KviIrcUserEntry.h:342
void setAvatarRequested()
Mark that kvirc is trying (already tried) to get user's avatar.
Definition: KviIrcUserEntry.h:331