|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: The model of the server setting views |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "sipsettlistsipsrvsetmodel.h" |
|
22 #include <siprouteheader.h> |
|
23 #include <gssipsettingspluginrsc.rsg> //GUI Resource |
|
24 #include <eikenv.h> |
|
25 #include <eikappui.h> |
|
26 #include "gssippluginlogger.h" |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =============================== |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CSIPSettListSIPSrvSetModel::CSIPSettListSIPSrvSetModel |
|
32 // C++ default constructor can NOT contain any code, that |
|
33 // might leave. |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 CSIPSettListSIPSrvSetModel::CSIPSettListSIPSrvSetModel( |
|
37 TGSSIPServerData& aData, |
|
38 TSIPProfileTypeInfo::TSIPProfileClass aProfileType, |
|
39 TBool aLocked ) |
|
40 : iData( aData ), |
|
41 iProfileType( aProfileType ), |
|
42 iLocked( aLocked ) |
|
43 { |
|
44 __GSLOGSTRING("CSIPSettListSIPSrvSetModel::CSIPSettListSIPSrvSetModel" ) |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CSIPSettListSIPSrvSetModel::ConstructL |
|
49 // Symbian 2nd phase constructor can leave. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 void CSIPSettListSIPSrvSetModel::ConstructL() |
|
53 { |
|
54 __GSLOGSTRING("CSIPSettListSIPSrvSetModel::ConstructL" ) |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // CSIPSettListSIPSrvSetModel::NewL |
|
59 // Two-phased constructor. |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 CSIPSettListSIPSrvSetModel* CSIPSettListSIPSrvSetModel::NewL( |
|
63 TGSSIPServerData& aData, |
|
64 TSIPProfileTypeInfo::TSIPProfileClass aProfileType, |
|
65 TBool aLocked ) |
|
66 { |
|
67 __GSLOGSTRING("CSIPSettListSIPSrvSetModel::NewL" ) |
|
68 CSIPSettListSIPSrvSetModel* self = |
|
69 new ( ELeave ) CSIPSettListSIPSrvSetModel( |
|
70 aData, aProfileType, aLocked ); |
|
71 |
|
72 CleanupStack::PushL( self ); |
|
73 self->ConstructL(); |
|
74 CleanupStack::Pop( self ); |
|
75 |
|
76 return self; |
|
77 } |
|
78 |
|
79 |
|
80 // Destructor |
|
81 CSIPSettListSIPSrvSetModel::~CSIPSettListSIPSrvSetModel() |
|
82 { |
|
83 __GSLOGSTRING("CSIPSettListSIPSrvSetModel::~CSIPSettListSIPSrvSetModel" ) |
|
84 } |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // CSIPSettListSIPSrvSetModel::Settings |
|
88 // Fetches the settings of the modified server |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 TGSSIPServerData* CSIPSettListSIPSrvSetModel::Settings() |
|
92 { |
|
93 return &iData; |
|
94 } |
|
95 |
|
96 // ----------------------------------------------------------------------------- |
|
97 // CGSSettListSIPSrvSetModel::ProfileType |
|
98 // Returns selected service profile type |
|
99 // ----------------------------------------------------------------------------- |
|
100 // |
|
101 TSIPProfileTypeInfo::TSIPProfileClass CSIPSettListSIPSrvSetModel::ProfileType() |
|
102 { |
|
103 return iProfileType; |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // CGSSettListSIPSrvSetModel::ProfileLocked |
|
108 // Checks is currently shown profile locked |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 TBool CSIPSettListSIPSrvSetModel::ProfileLocked() |
|
112 { |
|
113 return iLocked; |
|
114 } |
|
115 |
|
116 // End of File |