1
/* $Id: Symbian_ua_guiSettingItemListSets.cpp 3550 2011-05-05 05:33:27Z nanang $ */
3
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
* Generated helper class which manages the settings contained
21
* in 'symbian_ua_guiSettingItemList'. Each CAknSettingItem maintains
22
* a reference to data in this class so that changes in the setting
23
* item list can be synchronized with this storage.
26
// [[[ begin generated region: do not modify [Generated Includes]
28
#include <stringloader.h>
30
#include <symbian_ua_gui.rsg>
31
#include "Symbian_ua_guiSettingItemListSettings.h"
32
// ]]] end generated region [Generated Includes]
35
* C/C++ constructor for settings data, cannot throw
37
TSymbian_ua_guiSettingItemListSettings::TSymbian_ua_guiSettingItemListSettings()
42
* Two-phase constructor for settings data
44
TSymbian_ua_guiSettingItemListSettings* TSymbian_ua_guiSettingItemListSettings::NewL()
46
TSymbian_ua_guiSettingItemListSettings* data = new( ELeave ) TSymbian_ua_guiSettingItemListSettings;
47
CleanupStack::PushL( data );
49
CleanupStack::Pop( data );
54
* Second phase for initializing settings data
56
void TSymbian_ua_guiSettingItemListSettings::ConstructL()
58
// [[[ begin generated region: do not modify [Generated Initializers]
60
HBufC* text = StringLoader::LoadLC( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_ED_REGISTRAR );
61
SetEd_registrar( text->Des() );
62
CleanupStack::PopAndDestroy( text );
65
HBufC* text = StringLoader::LoadLC( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_ED_USER );
66
SetEd_user( text->Des() );
67
CleanupStack::PopAndDestroy( text );
72
HBufC* text = StringLoader::LoadLC( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_ED_STUN_SERVER );
73
SetEd_stun_server( text->Des() );
74
CleanupStack::PopAndDestroy( text );
76
// ]]] end generated region [Generated Initializers]
80
// [[[ begin generated region: do not modify [Generated Contents]
81
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_registrar()
86
void TSymbian_ua_guiSettingItemListSettings::SetEd_registrar(const TDesC& aValue)
88
if ( aValue.Length() < KEd_registrarMaxLength)
89
iEd_registrar.Copy( aValue );
91
iEd_registrar.Copy( aValue.Ptr(), KEd_registrarMaxLength);
94
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_user()
99
void TSymbian_ua_guiSettingItemListSettings::SetEd_user(const TDesC& aValue)
101
if ( aValue.Length() < KEd_userMaxLength)
102
iEd_user.Copy( aValue );
104
iEd_user.Copy( aValue.Ptr(), KEd_userMaxLength);
107
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_password()
112
void TSymbian_ua_guiSettingItemListSettings::SetEd_password(const TDesC& aValue)
114
if ( aValue.Length() < KEd_passwordMaxLength)
115
iEd_password.Copy( aValue );
117
iEd_password.Copy( aValue.Ptr(), KEd_passwordMaxLength);
120
TBool& TSymbian_ua_guiSettingItemListSettings::B_srtp()
125
void TSymbian_ua_guiSettingItemListSettings::SetB_srtp(const TBool& aValue)
130
TBool& TSymbian_ua_guiSettingItemListSettings::B_ice()
135
void TSymbian_ua_guiSettingItemListSettings::SetB_ice(const TBool& aValue)
140
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_stun_server()
142
return iEd_stun_server;
145
void TSymbian_ua_guiSettingItemListSettings::SetEd_stun_server(const TDesC& aValue)
147
if ( aValue.Length() < KEd_stun_serverMaxLength)
148
iEd_stun_server.Copy( aValue );
150
iEd_stun_server.Copy( aValue.Ptr(), KEd_stun_serverMaxLength);
153
// ]]] end generated region [Generated Contents]