|
1 /* |
|
2 * Copyright (c) 2004 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: This class is used to store/retrieve plugin implementation |
|
15 * specific shareddata keys and enumerations. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "timpsaokeys.h" |
|
22 #include "IMPSUIDDefs.h" |
|
23 |
|
24 #include <WVSettingsSharedDataNG.h> |
|
25 #include <impspresenceconnectionuiconstsng.h> |
|
26 |
|
27 //CONSTANTS |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // TIMPSAOKeys::TIMPSAOKeys |
|
31 // C++ default constructor can NOT contain any code, that |
|
32 // might leave. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 TIMPSAOKeys::TIMPSAOKeys() |
|
36 { |
|
37 iMinLoginTypeEnum = EWVSettingsChatMinLoginType; |
|
38 iLoginManualEnum = EWVSettingsChatLoginManual; |
|
39 iLoginApplicationLaunchEnum = EWVSettingsChatLoginApplicationLaunch; |
|
40 iLoginAutoAlwaysEnum = EWVSettingsChatLoginAutoAlways; |
|
41 iLoginAutoInHomeNWEnum = EWVSettingsChatLoginAutoInHomeNW; |
|
42 iMaxLoginTypeEnum = EWVSettingsChatMaxLoginType; |
|
43 iLoginTypeKey = EIMPSSharedKeysIMLogin; |
|
44 iConnDaysKey = EIMPSSharedKeysIMConnDays; |
|
45 iConnStartKey = EIMPSSharedKeysIMConnStart; |
|
46 iConnEndKey = EIMPSSharedKeysIMConnEnd; |
|
47 iScheduleChangedKey = EIMPSSharedKeysServSettScheduleChangedIM; |
|
48 iLoginTypeChangedKey = EIMPSSharedKeysServSettLoginTypeChangedIM; |
|
49 } |
|
50 |
|
51 |
|
52 // --------------------------------------------------------- |
|
53 // TIMPSAOKeys::MinLoginType |
|
54 // |
|
55 // --------------------------------------------------------- |
|
56 // |
|
57 TInt TIMPSAOKeys::MinLoginTypeEnum() |
|
58 { |
|
59 return iMinLoginTypeEnum; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------- |
|
63 // TIMPSAOKeys::LoginManualEnum |
|
64 // |
|
65 // --------------------------------------------------------- |
|
66 // |
|
67 TInt TIMPSAOKeys::LoginManualEnum() |
|
68 { |
|
69 return iLoginManualEnum; |
|
70 } |
|
71 |
|
72 // --------------------------------------------------------- |
|
73 // TIMPSAOKeys::LoginApplicationLaunchEnum |
|
74 // |
|
75 // --------------------------------------------------------- |
|
76 // |
|
77 TInt TIMPSAOKeys::LoginApplicationLaunchEnum() |
|
78 { |
|
79 return iLoginApplicationLaunchEnum; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------- |
|
83 // TIMPSAOKeys::LoginAutoAlwaysEnum |
|
84 // |
|
85 // --------------------------------------------------------- |
|
86 // |
|
87 TInt TIMPSAOKeys::LoginAutoAlwaysEnum() |
|
88 { |
|
89 return iLoginAutoAlwaysEnum; |
|
90 } |
|
91 |
|
92 // --------------------------------------------------------- |
|
93 // TIMPSAOKeys::LoginAutoInHomeNWEnum |
|
94 // |
|
95 // --------------------------------------------------------- |
|
96 // |
|
97 TInt TIMPSAOKeys::LoginAutoInHomeNWEnum() |
|
98 { |
|
99 return iLoginAutoInHomeNWEnum; |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------- |
|
103 // TIMPSAOKeys::MaxLoginType |
|
104 // |
|
105 // --------------------------------------------------------- |
|
106 // |
|
107 TInt TIMPSAOKeys::MaxLoginTypeEnum() |
|
108 { |
|
109 return iMaxLoginTypeEnum; |
|
110 } |
|
111 |
|
112 |
|
113 // --------------------------------------------------------- |
|
114 // TIMPSAOKeys::LoginTypeKey |
|
115 // |
|
116 // --------------------------------------------------------- |
|
117 // |
|
118 const TIMPSSharedKeys& TIMPSAOKeys::LoginTypeKey() |
|
119 { |
|
120 return iLoginTypeKey; |
|
121 } |
|
122 |
|
123 // --------------------------------------------------------- |
|
124 // TIMPSAOKeys::ConnDaysKey |
|
125 // |
|
126 // --------------------------------------------------------- |
|
127 // |
|
128 const TIMPSSharedKeys& TIMPSAOKeys::ConnDaysKey() |
|
129 { |
|
130 return iConnDaysKey; |
|
131 } |
|
132 |
|
133 |
|
134 // --------------------------------------------------------- |
|
135 // TIMPSAOKeys::ConnStartKey |
|
136 // |
|
137 // --------------------------------------------------------- |
|
138 // |
|
139 const TIMPSSharedKeys& TIMPSAOKeys::ConnStartKey() |
|
140 { |
|
141 return iConnStartKey; |
|
142 } |
|
143 |
|
144 // --------------------------------------------------------- |
|
145 // TIMPSAOKeys::ConnEndKey |
|
146 // |
|
147 // --------------------------------------------------------- |
|
148 // |
|
149 const TIMPSSharedKeys& TIMPSAOKeys::ConnEndKey() |
|
150 { |
|
151 return iConnEndKey; |
|
152 } |
|
153 |
|
154 // --------------------------------------------------------- |
|
155 // TIMPSAOKeys::LoginTypeChangedKey |
|
156 // |
|
157 // --------------------------------------------------------- |
|
158 // |
|
159 const TIMPSSharedKeys& TIMPSAOKeys::LoginTypeChangedKey() |
|
160 { |
|
161 return iLoginTypeChangedKey; |
|
162 } |
|
163 |
|
164 // --------------------------------------------------------- |
|
165 // TIMPSAOKeys::ScheduleChangedKey |
|
166 // |
|
167 // --------------------------------------------------------- |
|
168 // |
|
169 const TIMPSSharedKeys& TIMPSAOKeys::ScheduleChangedKey() |
|
170 { |
|
171 return iScheduleChangedKey; |
|
172 } |