KVIrc
4.9.2
DeveloperAPIs
|
Class which manages the identity profile. More...
#include <KviIdentityProfile.h>
Public Member Functions | |
const QString & | altNick () const |
Returns the alternative nickname of the profile. More... | |
void | copyFrom (const KviIdentityProfile &src) |
Carbon copy. More... | |
KviIdentityProfile () | |
Constructs the identity profile object. More... | |
bool | load (KviConfigurationFile *pCfg, const QString &szPrefix) |
Loads the configuration from file. More... | |
const QString & | name () const |
Returns the name of the profile. More... | |
const QString & | network () const |
Returns the network of the profile. More... | |
const QString & | nick () const |
Returns the nickname of the profile. More... | |
const QString & | realName () const |
Returns the realname of the profile. More... | |
void | save (KviConfigurationFile *pCfg, const QString &szPrefix) |
Saves the configuration to file. More... | |
void | setAltNick (const QString &szAltNick) |
Sets the alternative nickname of the profile. More... | |
void | setName (const QString &szName) |
Sets the name of the profile. More... | |
void | setNetwork (const QString &szNetwork) |
Sets the network of the profile. More... | |
void | setNick (const QString &szNick) |
Sets the nickname of the profile. More... | |
void | setRealName (const QString &szRealName) |
Sets the realname of the profile. More... | |
void | setUserName (const QString &szUserName) |
Sets the username of the profile. More... | |
const QString & | userName () const |
Returns the username of the profile. More... | |
~KviIdentityProfile () | |
Destroys the identity profile object. More... | |
Protected Attributes | |
QString | m_szAltNick |
QString | m_szName |
QString | m_szNetwork |
QString | m_szNick |
QString | m_szRealName |
QString | m_szUserName |
Class which manages the identity profile.
KviIdentityProfile::KviIdentityProfile | ( | ) |
Constructs the identity profile object.
|
default |
Destroys the identity profile object.
|
inline |
Returns the alternative nickname of the profile.
Referenced by OptionsWidget_identityProfile::addProfileEntry(), IdentityProfileEditor::editProfile(), and OptionsWidget_identityProfile::editProfileEntry().
void KviIdentityProfile::copyFrom | ( | const KviIdentityProfile & | src | ) |
Carbon copy.
src | The source profile |
References m_szAltNick, m_szName, m_szNetwork, m_szNick, m_szRealName, and m_szUserName.
Referenced by KviIdentityProfileSet::copyFrom().
bool KviIdentityProfile::load | ( | KviConfigurationFile * | pCfg, |
const QString & | szPrefix | ||
) |
Loads the configuration from file.
Returns false if the loaded data has no sense
pCfg | The configuration file |
szPrefix | The prefix to use |
References m_szAltNick, m_szName, m_szNetwork, m_szNick, m_szRealName, m_szUserName, and KviConfigurationFile::readEntry().
Referenced by KviIdentityProfileSet::loadPrivate().
|
inline |
Returns the name of the profile.
Referenced by OptionsWidget_identityProfile::addProfileEntry(), IdentityProfileEditor::editProfile(), OptionsWidget_identityProfile::editProfileEntry(), and KviIdentityProfileSet::findName().
|
inline |
Returns the network of the profile.
Referenced by OptionsWidget_identityProfile::addProfileEntry(), IdentityProfileEditor::editProfile(), OptionsWidget_identityProfile::editProfileEntry(), and KviIdentityProfileSet::findNetwork().
|
inline |
Returns the nickname of the profile.
Referenced by OptionsWidget_identityProfile::addProfileEntry(), IdentityProfileEditor::editProfile(), OptionsWidget_identityProfile::editProfileEntry(), and KviIrcConnection::pickNextLoginNickName().
|
inline |
Returns the realname of the profile.
Referenced by OptionsWidget_identityProfile::addProfileEntry(), IdentityProfileEditor::editProfile(), OptionsWidget_identityProfile::editProfileEntry(), and KviIrcConnection::useProfileData().
void KviIdentityProfile::save | ( | KviConfigurationFile * | pCfg, |
const QString & | szPrefix | ||
) |
Saves the configuration to file.
pCfg | The configuration file |
szPrefix | The prefix to use |
References m_szAltNick, m_szName, m_szNetwork, m_szNick, m_szRealName, m_szUserName, and KviConfigurationFile::writeEntry().
|
inline |
Sets the alternative nickname of the profile.
szAltNick | The alternative nickname of the profile |
Referenced by OptionsWidget_identityProfile::commit(), IdentityProfileEditor::editProfile(), and OptionsWidget_identityProfile::editProfileEntry().
|
inline |
Sets the name of the profile.
szName | The name of the profile |
Referenced by OptionsWidget_identityProfile::commit(), IdentityProfileEditor::editProfile(), and OptionsWidget_identityProfile::editProfileEntry().
|
inline |
Sets the network of the profile.
szNetwork | The network of the profile |
Referenced by OptionsWidget_identityProfile::commit(), IdentityProfileEditor::editProfile(), and OptionsWidget_identityProfile::editProfileEntry().
|
inline |
Sets the nickname of the profile.
szNick | The nickname of the profile |
Referenced by OptionsWidget_identityProfile::commit(), IdentityProfileEditor::editProfile(), and OptionsWidget_identityProfile::editProfileEntry().
|
inline |
Sets the realname of the profile.
szRealName | The realname of the profile |
Referenced by OptionsWidget_identityProfile::commit(), IdentityProfileEditor::editProfile(), and OptionsWidget_identityProfile::editProfileEntry().
|
inline |
Sets the username of the profile.
szUserName | The username of the profile |
Referenced by OptionsWidget_identityProfile::commit(), IdentityProfileEditor::editProfile(), and OptionsWidget_identityProfile::editProfileEntry().
|
inline |
Returns the username of the profile.
Referenced by OptionsWidget_identityProfile::addProfileEntry(), IdentityProfileEditor::editProfile(), OptionsWidget_identityProfile::editProfileEntry(), and KviIrcConnection::useProfileData().
|
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().