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