~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.1.0/pjsip-apps/src/symbian_ua_gui/src/Symbian_ua_guiSettingItemListSets.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: Symbian_ua_guiSettingItemListSets.cpp 3550 2011-05-05 05:33:27Z nanang $ */
2
 
/* 
3
 
 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4
 
 *
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.
9
 
 *
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.
14
 
 *
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 
18
 
 */
19
 
/**
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.
24
 
 */
25
 
 
26
 
// [[[ begin generated region: do not modify [Generated Includes]
27
 
#include <e32base.h>
28
 
#include <stringloader.h>
29
 
#include <barsread.h>
30
 
#include <symbian_ua_gui.rsg>
31
 
#include "Symbian_ua_guiSettingItemListSettings.h"
32
 
// ]]] end generated region [Generated Includes]
33
 
 
34
 
/**
35
 
 * C/C++ constructor for settings data, cannot throw
36
 
 */
37
 
TSymbian_ua_guiSettingItemListSettings::TSymbian_ua_guiSettingItemListSettings()
38
 
        {
39
 
        }
40
 
 
41
 
/**
42
 
 * Two-phase constructor for settings data
43
 
 */
44
 
TSymbian_ua_guiSettingItemListSettings* TSymbian_ua_guiSettingItemListSettings::NewL()
45
 
        {
46
 
        TSymbian_ua_guiSettingItemListSettings* data = new( ELeave ) TSymbian_ua_guiSettingItemListSettings;
47
 
        CleanupStack::PushL( data );
48
 
        data->ConstructL();
49
 
        CleanupStack::Pop( data );
50
 
        return data;
51
 
        }
52
 
        
53
 
/**
54
 
 *      Second phase for initializing settings data
55
 
 */
56
 
void TSymbian_ua_guiSettingItemListSettings::ConstructL()
57
 
        {
58
 
        // [[[ begin generated region: do not modify [Generated Initializers]
59
 
                {
60
 
                HBufC* text = StringLoader::LoadLC( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_ED_REGISTRAR );
61
 
                SetEd_registrar( text->Des() );
62
 
                CleanupStack::PopAndDestroy( text );
63
 
                }
64
 
                {
65
 
                HBufC* text = StringLoader::LoadLC( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_ED_USER );
66
 
                SetEd_user( text->Des() );
67
 
                CleanupStack::PopAndDestroy( text );
68
 
                }
69
 
        SetB_srtp( 0 );
70
 
        SetB_ice( 0 );
71
 
                {
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 );
75
 
                }
76
 
        // ]]] end generated region [Generated Initializers]
77
 
        
78
 
        }
79
 
        
80
 
// [[[ begin generated region: do not modify [Generated Contents]
81
 
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_registrar()
82
 
        {
83
 
        return iEd_registrar;
84
 
        }
85
 
 
86
 
void TSymbian_ua_guiSettingItemListSettings::SetEd_registrar(const TDesC& aValue)
87
 
        {
88
 
        if ( aValue.Length() < KEd_registrarMaxLength)
89
 
                iEd_registrar.Copy( aValue );
90
 
        else
91
 
                iEd_registrar.Copy( aValue.Ptr(), KEd_registrarMaxLength);
92
 
        }
93
 
 
94
 
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_user()
95
 
        {
96
 
        return iEd_user;
97
 
        }
98
 
 
99
 
void TSymbian_ua_guiSettingItemListSettings::SetEd_user(const TDesC& aValue)
100
 
        {
101
 
        if ( aValue.Length() < KEd_userMaxLength)
102
 
                iEd_user.Copy( aValue );
103
 
        else
104
 
                iEd_user.Copy( aValue.Ptr(), KEd_userMaxLength);
105
 
        }
106
 
 
107
 
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_password()
108
 
        {
109
 
        return iEd_password;
110
 
        }
111
 
 
112
 
void TSymbian_ua_guiSettingItemListSettings::SetEd_password(const TDesC& aValue)
113
 
        {
114
 
        if ( aValue.Length() < KEd_passwordMaxLength)
115
 
                iEd_password.Copy( aValue );
116
 
        else
117
 
                iEd_password.Copy( aValue.Ptr(), KEd_passwordMaxLength);
118
 
        }
119
 
 
120
 
TBool& TSymbian_ua_guiSettingItemListSettings::B_srtp()
121
 
        {
122
 
        return iB_srtp;
123
 
        }
124
 
 
125
 
void TSymbian_ua_guiSettingItemListSettings::SetB_srtp(const TBool& aValue)
126
 
        {
127
 
        iB_srtp = aValue;
128
 
        }
129
 
 
130
 
TBool& TSymbian_ua_guiSettingItemListSettings::B_ice()
131
 
        {
132
 
        return iB_ice;
133
 
        }
134
 
 
135
 
void TSymbian_ua_guiSettingItemListSettings::SetB_ice(const TBool& aValue)
136
 
        {
137
 
        iB_ice = aValue;
138
 
        }
139
 
 
140
 
TDes& TSymbian_ua_guiSettingItemListSettings::Ed_stun_server()
141
 
        {
142
 
        return iEd_stun_server;
143
 
        }
144
 
 
145
 
void TSymbian_ua_guiSettingItemListSettings::SetEd_stun_server(const TDesC& aValue)
146
 
        {
147
 
        if ( aValue.Length() < KEd_stun_serverMaxLength)
148
 
                iEd_stun_server.Copy( aValue );
149
 
        else
150
 
                iEd_stun_server.Copy( aValue.Ptr(), KEd_stun_serverMaxLength);
151
 
        }
152
 
 
153
 
// ]]] end generated region [Generated Contents]
154