|
1 /* |
|
2 * Copyright (c) 2006 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 shared data keys and enumerations. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __TIMPSAOKEYS_H |
|
21 #define __TIMPSAOKEYS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "MIMPSSharedData.h" // for TIMPSSharedKeys |
|
25 |
|
26 #include <e32std.h> |
|
27 |
|
28 /** |
|
29 * Keeps plugin implementation type related shared data keys and enumerations |
|
30 * |
|
31 * @lib PEngAOPlugin.lib |
|
32 * @since 3.1 |
|
33 */ |
|
34 class TIMPSAOKeys |
|
35 { |
|
36 |
|
37 public: // constructors |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 TIMPSAOKeys(); |
|
42 |
|
43 public: // function for get enumerations |
|
44 |
|
45 /** |
|
46 * @return Minimum login type enum |
|
47 */ |
|
48 TInt MinLoginTypeEnum(); |
|
49 |
|
50 /** |
|
51 * @return Manual login enum |
|
52 */ |
|
53 TInt LoginManualEnum(); |
|
54 |
|
55 /** |
|
56 * @return ApplicationLaunch login enum |
|
57 */ |
|
58 TInt LoginApplicationLaunchEnum(); |
|
59 |
|
60 /** |
|
61 * @return AutoAlways login enum |
|
62 */ |
|
63 TInt LoginAutoAlwaysEnum(); |
|
64 |
|
65 /** |
|
66 * @return AutoInHomeNW login enum |
|
67 */ |
|
68 TInt LoginAutoInHomeNWEnum(); |
|
69 |
|
70 /** |
|
71 * @return Maximum Login type enum |
|
72 */ |
|
73 TInt MaxLoginTypeEnum(); |
|
74 |
|
75 public: // functions for get keys |
|
76 |
|
77 /** |
|
78 * Used for logged client type shared data key |
|
79 * @return connection days shared data key |
|
80 */ |
|
81 const TIMPSSharedKeys& LoginTypeKey(); |
|
82 |
|
83 /** |
|
84 * Used for getting connection days shared data key |
|
85 * @return connection days shared data key |
|
86 */ |
|
87 const TIMPSSharedKeys& ConnDaysKey(); |
|
88 |
|
89 /** |
|
90 * Used for getting connection start time shared data key |
|
91 * @return connection start time shared data key |
|
92 */ |
|
93 const TIMPSSharedKeys& ConnStartKey(); |
|
94 |
|
95 /** |
|
96 * Used for getting connection end time shared data key |
|
97 * @return connection end time shared data key |
|
98 */ |
|
99 const TIMPSSharedKeys& ConnEndKey(); |
|
100 |
|
101 /** |
|
102 * Used for getting logintype changed shared data key |
|
103 * @return logintype changed shared data key |
|
104 */ |
|
105 const TIMPSSharedKeys& LoginTypeChangedKey(); |
|
106 |
|
107 /** |
|
108 * Used for getting schedule changed shared data key |
|
109 * @return schedule changed shared data key |
|
110 */ |
|
111 const TIMPSSharedKeys& ScheduleChangedKey(); |
|
112 |
|
113 |
|
114 private: // member variables |
|
115 |
|
116 /// stored enumerations |
|
117 TInt iMinLoginTypeEnum; |
|
118 TInt iLoginManualEnum; |
|
119 TInt iLoginApplicationLaunchEnum; |
|
120 TInt iLoginAutoAlwaysEnum; |
|
121 TInt iLoginAutoInHomeNWEnum; |
|
122 TInt iMaxLoginTypeEnum; |
|
123 |
|
124 /// stored keys |
|
125 TIMPSSharedKeys iLoginTypeKey; |
|
126 TIMPSSharedKeys iConnDaysKey; |
|
127 TIMPSSharedKeys iConnStartKey; |
|
128 TIMPSSharedKeys iConnEndKey; |
|
129 TIMPSSharedKeys iLoginTypeChangedKey; |
|
130 TIMPSSharedKeys iScheduleChangedKey; |
|
131 |
|
132 |
|
133 }; |
|
134 |
|
135 #endif // __TIMPSAOKEYS_H |