KVIrc 5.2.4
Developer APIs
KviIdentityProfile.h
Go to the documentation of this file.
1#ifndef _KVI_IDENTITY_PROFILE_H_
2#define _KVI_IDENTITY_PROFILE_H_
3//=============================================================================
4//
5// File : KviIdentityProfile.h
6// Creation date : Thu Oct 16 2008 16:37:48 by Elvio Basello
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 2008 Elvio Basello (hellvis69 at netsons dot org)
10//
11// This program is FREE software. You can redistribute it and/or
12// modify it under the terms of the GNU General Public License
13// as published by the Free Software Foundation; either version 2
14// of the License, or (at your option) any later version.
15//
16// This program is distributed in the HOPE that it will be USEFUL,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19// See the GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program. If not, write to the Free Software Foundation,
23// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24//
25//=============================================================================
26
33#include "kvi_settings.h"
34#include "KviHeapObject.h"
35
36#include <QString>
37
39
45{
46public:
52
58
59protected:
60 QString m_szName;
61 QString m_szNetwork;
62 QString m_szNick;
63 QString m_szAltNick;
64 QString m_szUserName;
65 QString m_szRealName;
66
67public:
72 const QString & name() const { return m_szName; };
73
78 const QString & network() const { return m_szNetwork; };
79
84 const QString & nick() const { return m_szNick; };
85
90 const QString & altNick() const { return m_szAltNick; };
91
96 const QString & userName() const { return m_szUserName; };
97
102 const QString & realName() const { return m_szRealName; };
103
109 void setName(const QString & szName) { m_szName = szName; };
110
116 void setNetwork(const QString & szNetwork) { m_szNetwork = szNetwork; };
117
123 void setNick(const QString & szNick) { m_szNick = szNick; };
124
130 void setAltNick(const QString & szAltNick) { m_szAltNick = szAltNick; };
131
137 void setUserName(const QString & szUserName) { m_szUserName = szUserName; };
138
144 void setRealName(const QString & szRealName) { m_szRealName = szRealName; };
145
151 void copyFrom(const KviIdentityProfile & src);
152
159 void save(KviConfigurationFile * pCfg, const QString & szPrefix);
160
169 bool load(KviConfigurationFile * pCfg, const QString & szPrefix);
170};
171
172#endif // _KVI_IDENTITY_PROFILE_H_
Heap Object.
Definition KviConfigurationFile.h:50
Definition KviHeapObject.h:119
Class which manages the identity profile.
Definition KviIdentityProfile.h:45
const QString & nick() const
Returns the nickname of the profile.
Definition KviIdentityProfile.h:84
void setNick(const QString &szNick)
Sets the nickname of the profile.
Definition KviIdentityProfile.h:123
QString m_szUserName
Definition KviIdentityProfile.h:64
~KviIdentityProfile()
Destroys the identity profile object.
void setUserName(const QString &szUserName)
Sets the username of the profile.
Definition KviIdentityProfile.h:137
const QString & realName() const
Returns the realname of the profile.
Definition KviIdentityProfile.h:102
void setRealName(const QString &szRealName)
Sets the realname of the profile.
Definition KviIdentityProfile.h:144
QString m_szNetwork
Definition KviIdentityProfile.h:61
const QString & userName() const
Returns the username of the profile.
Definition KviIdentityProfile.h:96
void setNetwork(const QString &szNetwork)
Sets the network of the profile.
Definition KviIdentityProfile.h:116
const QString & name() const
Returns the name of the profile.
Definition KviIdentityProfile.h:72
const QString & altNick() const
Returns the alternative nickname of the profile.
Definition KviIdentityProfile.h:90
void setAltNick(const QString &szAltNick)
Sets the alternative nickname of the profile.
Definition KviIdentityProfile.h:130
QString m_szNick
Definition KviIdentityProfile.h:62
QString m_szAltNick
Definition KviIdentityProfile.h:63
const QString & network() const
Returns the network of the profile.
Definition KviIdentityProfile.h:78
QString m_szRealName
Definition KviIdentityProfile.h:65
QString m_szName
Definition KviIdentityProfile.h:60
void setName(const QString &szName)
Sets the name of the profile.
Definition KviIdentityProfile.h:109
This file contains compile time settings.
#define KVILIB_API
Definition kvi_settings.h:124