KVIrc
4.9.2
DeveloperAPIs
|
User identity handling class. More...
#include <KviUserIdentity.h>
Public Member Functions | |
const QString & | age () const |
Returns the age of the user. More... | |
const QString & | altNickName1 () const |
Returns the alternative nickname of the user. More... | |
const QString & | altNickName2 () const |
Returns the second alternative nickname of the user. More... | |
const QString & | altNickName3 () const |
Returns the third alternative nickanem of the user. More... | |
const KviPixmap & | avatar () const |
Returns the avatar of the user. More... | |
const QString & | gender () const |
Returns the gender of the user. More... | |
const QString & | id () const |
Returns the id of the user. More... | |
KviUserIdentity () | |
Constructs the user identity object. More... | |
const QString & | languages () const |
Returns the languages of the user. More... | |
const QString & | location () const |
Returns the location of the user. More... | |
const QString & | nickName () const |
Returns the nickname of the user. More... | |
const QString & | onConnectCommand () const |
Returns the list of commands to run on connection. More... | |
const QString & | onLoginCommand () const |
Returns the list of commands to run on login. More... | |
const QString & | otherInfo () const |
Returns the other info field of the user. More... | |
const QString & | partMessage () const |
Returns the part message of the user. More... | |
const QString & | password () const |
Returns the password of the user. More... | |
const QString & | quitMessage () const |
Returns the quit message of the user. More... | |
void | setAge (const QString &szAge) |
Sets the age of the user. More... | |
void | setAltNickName1 (const QString &szNickName) |
Sets the alternative nickname of the user. More... | |
void | setAltNickName2 (const QString &szNickName) |
Sets the second alternative nickname of the user. More... | |
void | setAltNickName3 (const QString &szNickName) |
Sets the third alternative nickname of the user. More... | |
void | setAvatar (const KviPixmap &pix) |
Sets the avatar of the user. More... | |
void | setGender (const QString &szGender) |
Sets the gender of the user. More... | |
void | setId (const QString &szId) |
Sets the id of the user. More... | |
void | setLanguages (const QString &szLanguages) |
Sets the languages of the user. More... | |
void | setLocation (const QString &szLocation) |
Sets the location of the user. More... | |
void | setNickName (const QString &szNickName) |
Sets the nickname of the user. More... | |
void | setOnConnectCommand (const QString &szOnConnectCommand) |
Sets the commands list to run on connection. More... | |
void | setOnLoginCommand (const QString &szOnLoginCommand) |
Sets the commands list to run on login. More... | |
void | setOtherInfo (const QString &szOtherInfo) |
Sets the other info for the user. More... | |
void | setPartMessage (const QString &szMsg) |
Sets the part messaege of the user. More... | |
void | setPassword (const QString &szPassword) |
Sets the password of the user. More... | |
void | setQuitMessage (const QString &szMsg) |
Sets the quit messaege of the user. More... | |
void | setRealName (const QString &szRealName) |
Sets the realname of the user. More... | |
void | setUserMode (const QString &szUserMode) |
Sets the user mode of the user. More... | |
void | setUserName (const QString &szUserName) |
Sets the username of the user. More... | |
const QString & | userMode () const |
Returns the user mode of the user. More... | |
const QString & | userName () const |
Returns the username of the user. More... | |
~KviUserIdentity () | |
Destroys the user identity object. More... | |
Protected Member Functions | |
void | copyFrom (const KviUserIdentity &src) |
Carbon copy. More... | |
bool | load (KviConfigurationFile &cfg) |
Loads the user identity. More... | |
bool | save (KviConfigurationFile &cfg) |
Saves the user identity. More... | |
Protected Attributes | |
KviPixmap | m_pixAvatar |
QString | m_szAge |
QString | m_szAltNickName1 |
QString | m_szAltNickName2 |
QString | m_szAltNickName3 |
QString | m_szGender |
QString | m_szId |
QString | m_szLanguages |
QString | m_szLocation |
QString | m_szNickName |
QString | m_szOnConnectCommand |
QString | m_szOnLoginCommand |
QString | m_szOtherInfo |
QString | m_szPartMessage |
QString | m_szPassword |
QString | m_szQuitMessage |
QString | m_szRealName |
QString | m_szUserMode |
QString | m_szUserName |
Friends | |
class | KviUserIdentityManager |
User identity handling class.
KviUserIdentity::KviUserIdentity | ( | ) |
Constructs the user identity object.
|
default |
Destroys the user identity object.
|
inline |
Returns the age of the user.
|
inline |
Returns the alternative nickname of the user.
|
inline |
Returns the second alternative nickname of the user.
|
inline |
Returns the third alternative nickanem of the user.
|
inline |
Returns the avatar of the user.
|
protected |
Carbon copy.
src | The source user identity |
References m_pixAvatar, m_szAge, m_szAltNickName1, m_szAltNickName2, m_szAltNickName3, m_szGender, m_szId, m_szLanguages, m_szLocation, m_szNickName, m_szOnConnectCommand, m_szOnLoginCommand, m_szOtherInfo, m_szPartMessage, m_szPassword, m_szQuitMessage, m_szRealName, m_szUserMode, and m_szUserName.
Referenced by KviUserIdentityManager::copyFrom().
|
inline |
Returns the gender of the user.
|
inline |
Returns the id of the user.
Referenced by KviUserIdentityManager::copyFrom(), KviUserIdentityManager::defaultIdentity(), and KviUserIdentityManager::load().
|
inline |
Returns the languages of the user.
|
protected |
Loads the user identity.
cfg | The config file where to load |
References KviConfigurationFile::group(), m_pixAvatar, m_szAge, m_szAltNickName1, m_szAltNickName2, m_szAltNickName3, m_szGender, m_szId, m_szLanguages, m_szLocation, m_szNickName, m_szOnConnectCommand, m_szOnLoginCommand, m_szOtherInfo, m_szPartMessage, m_szPassword, m_szQuitMessage, m_szUserMode, m_szUserName, KviConfigurationFile::readEntry(), and KviConfigurationFile::readPixmapEntry().
Referenced by KviUserIdentityManager::load().
|
inline |
Returns the location of the user.
|
inline |
Returns the nickname of the user.
|
inline |
Returns the list of commands to run on connection.
Referenced by KviIrcConnection::loginToIrcServer().
|
inline |
Returns the list of commands to run on login.
Referenced by KviIrcConnection::loginComplete().
|
inline |
Returns the other info field of the user.
|
inline |
Returns the part message of the user.
|
inline |
Returns the password of the user.
|
inline |
Returns the quit message of the user.
|
protected |
Saves the user identity.
cfg | The config file where to save |
References m_pixAvatar, m_szAge, m_szAltNickName1, m_szAltNickName2, m_szAltNickName3, m_szGender, m_szId, m_szLanguages, m_szLocation, m_szNickName, m_szOnConnectCommand, m_szOnLoginCommand, m_szOtherInfo, m_szPartMessage, m_szPassword, m_szQuitMessage, m_szUserMode, m_szUserName, KviConfigurationFile::setGroup(), and KviConfigurationFile::writeEntry().
|
inline |
Sets the age of the user.
szAge | The age of the user |
|
inline |
Sets the alternative nickname of the user.
szNickName | The nickname of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Sets the second alternative nickname of the user.
szNickName | The nickname of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Sets the third alternative nickname of the user.
szNickName | The nickname of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Sets the avatar of the user.
pix | The avatar of the user |
|
inline |
Sets the gender of the user.
szGender | The gemder of the user |
|
inline |
Sets the id of the user.
szId | The id of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Sets the languages of the user.
szLanguages | The languages of the user |
|
inline |
Sets the location of the user.
szLocation | The location of the user |
|
inline |
Sets the nickname of the user.
szNickName | The nickname of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Sets the commands list to run on connection.
szOnConnectCommand | The commands to run |
|
inline |
Sets the commands list to run on login.
szOnLoginCommand | The commands to run |
|
inline |
Sets the other info for the user.
szOtherInfo | The other info of the user |
|
inline |
Sets the part messaege of the user.
szMsg | The part message of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Sets the password of the user.
szPassword | The password of the user |
|
inline |
Sets the quit messaege of the user.
szMsg | The quit message of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Sets the realname of the user.
szRealName | The realname of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Sets the user mode of the user.
szUserMode | The user mode of the user |
|
inline |
Sets the username of the user.
szUserName | The username of the user |
Referenced by KviUserIdentityManager::defaultIdentity().
|
inline |
Returns the user mode of the user.
|
inline |
Returns the username of the user.
|
friend |
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom().
|
protected |
Referenced by copyFrom(), load(), and save().
|
protected |
Referenced by copyFrom(), load(), and save().