summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/symbian_ua_gui/src/Symbian_ua_guiSettingItemListSets.cpp
blob: 69be61ffd3e523552f076e099e2ef742ccb7789c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
========================================================================
 Name        : Symbian_ua_guiSettingItemListSettings.cpp
 Author      : nanang
 Copyright   : (c) 2008-2009 Teluu Inc.
 Description : 
========================================================================
*/
/**
 *	Generated helper class which manages the settings contained 
 *	in 'symbian_ua_guiSettingItemList'.  Each CAknSettingItem maintains
 *	a reference to data in this class so that changes in the setting
 *	item list can be synchronized with this storage.
 */
 
// [[[ begin generated region: do not modify [Generated Includes]
#include <e32base.h>
#include <stringloader.h>
#include <barsread.h>
#include <symbian_ua_gui.rsg>
#include "Symbian_ua_guiSettingItemListSettings.h"
// ]]] end generated region [Generated Includes]

/**
 * C/C++ constructor for settings data, cannot throw
 */
TSymbian_ua_guiSettingItemListSettings::TSymbian_ua_guiSettingItemListSettings()
	{
	}

/**
 * Two-phase constructor for settings data
 */
TSymbian_ua_guiSettingItemListSettings* TSymbian_ua_guiSettingItemListSettings::NewL()
	{
	TSymbian_ua_guiSettingItemListSettings* data = new( ELeave ) TSymbian_ua_guiSettingItemListSettings;
	CleanupStack::PushL( data );
	data->ConstructL();
	CleanupStack::Pop( data );
	return data;
	}
	
/**
 *	Second phase for initializing settings data
 */
void TSymbian_ua_guiSettingItemListSettings::ConstructL()
	{
	// [[[ begin generated region: do not modify [Generated Initializers]
		{
		HBufC* text = StringLoader::LoadLC( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_ED_REGISTRAR );
		SetEd_registrar( text->Des() );
		CleanupStack::PopAndDestroy( text );
		}
		{
		HBufC* text = StringLoader::LoadLC( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_ED_USER );
		SetEd_user( text->Des() );
		CleanupStack::PopAndDestroy( text );
		}
	SetB_srtp( 0 );
	SetB_ice( 0 );
		{
		HBufC* text = StringLoader::LoadLC( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_ED_STUN_SERVER );
		SetEd_stun_server( text->Des() );
		CleanupStack::PopAndDestroy( text );
		}
	// ]]] end generated region [Generated Initializers]
	
	}
	
// [[[ begin generated region: do not modify [Generated Contents]
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_registrar()
	{
	return iEd_registrar;
	}

void TSymbian_ua_guiSettingItemListSettings::SetEd_registrar(const TDesC& aValue)
	{
	if ( aValue.Length() < KEd_registrarMaxLength)
		iEd_registrar.Copy( aValue );
	else
		iEd_registrar.Copy( aValue.Ptr(), KEd_registrarMaxLength);
	}

TDes& TSymbian_ua_guiSettingItemListSettings::Ed_user()
	{
	return iEd_user;
	}

void TSymbian_ua_guiSettingItemListSettings::SetEd_user(const TDesC& aValue)
	{
	if ( aValue.Length() < KEd_userMaxLength)
		iEd_user.Copy( aValue );
	else
		iEd_user.Copy( aValue.Ptr(), KEd_userMaxLength);
	}

TDes& TSymbian_ua_guiSettingItemListSettings::Ed_password()
	{
	return iEd_password;
	}

void TSymbian_ua_guiSettingItemListSettings::SetEd_password(const TDesC& aValue)
	{
	if ( aValue.Length() < KEd_passwordMaxLength)
		iEd_password.Copy( aValue );
	else
		iEd_password.Copy( aValue.Ptr(), KEd_passwordMaxLength);
	}

TBool& TSymbian_ua_guiSettingItemListSettings::B_srtp()
	{
	return iB_srtp;
	}

void TSymbian_ua_guiSettingItemListSettings::SetB_srtp(const TBool& aValue)
	{
	iB_srtp = aValue;
	}

TBool& TSymbian_ua_guiSettingItemListSettings::B_ice()
	{
	return iB_ice;
	}

void TSymbian_ua_guiSettingItemListSettings::SetB_ice(const TBool& aValue)
	{
	iB_ice = aValue;
	}

TDes& TSymbian_ua_guiSettingItemListSettings::Ed_stun_server()
	{
	return iEd_stun_server;
	}

void TSymbian_ua_guiSettingItemListSettings::SetEd_stun_server(const TDesC& aValue)
	{
	if ( aValue.Length() < KEd_stun_serverMaxLength)
		iEd_stun_server.Copy( aValue );
	else
		iEd_stun_server.Copy( aValue.Ptr(), KEd_stun_serverMaxLength);
	}

// ]]] end generated region [Generated Contents]