|
1 /* |
|
2 * Copyright (c) 2005-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: Device Status plug-in content model |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef AIDEVICESTATUSCONTENTMODEL_H |
|
21 #define AIDEVICESTATUSCONTENTMODEL_H |
|
22 |
|
23 #include <aicontentmodel.h> |
|
24 |
|
25 /** |
|
26 * Content model for Device Status plug-in. |
|
27 * This header defines which information Device Status publishes |
|
28 */ |
|
29 |
|
30 // ================================= CONTENT =================================== |
|
31 |
|
32 //content item id's |
|
33 enum TAiDeviceStatusContentIds |
|
34 { |
|
35 EAiDeviceStatusContentNetworkIdentity, |
|
36 EAiDeviceStatusContentProfileName, |
|
37 EAiDeviceStatusContentGeneralProfileName, |
|
38 EAiDeviceStatusContentDate, |
|
39 EAiDeviceStatusContentSilentIndicator, |
|
40 EAiDeviceStatusContentTimedProfileIndicator, |
|
41 EAiDeviceStatusContentSIMRegStatus, |
|
42 EAiDeviceStatusContentNWStatus, |
|
43 EAiDeviceStatusContentMCNIndicator, |
|
44 EAiDeviceStatusContentVHZIndicator, |
|
45 EAiDeviceStatusContentCUGIndicator, |
|
46 EAiDeviceStatusContentGeneralIndicator, |
|
47 EAiDeviceStatusContentVHZText, |
|
48 EAiDeviceStatusContentCUGMCNIndicator |
|
49 }; |
|
50 |
|
51 |
|
52 //content item textual id's |
|
53 const wchar_t KAiDeviceStatusContentNetworkIdentity_Cid[] = L"NetworkIdentity"; |
|
54 const wchar_t KAiDeviceStatusContentProfileName_Cid[] = L"ProfileName"; |
|
55 const wchar_t KAiDeviceStatusContentGeneralProfileName_Cid[] = L"GeneralProfileName"; |
|
56 const wchar_t KAiDeviceStatusContentDate_Cid[] = L"Date"; |
|
57 const wchar_t KAiDeviceStatusContentSilentIndicator_Cid[] = L"SilentIndicator"; |
|
58 const wchar_t KAiDeviceStatusContentTimedProfileIndicator_Cid[] = L"TimedProfileIndicator"; |
|
59 const wchar_t KAiDeviceStatusContentSIMRegStatus_Cid[] = L"SIMRegStatus"; |
|
60 const wchar_t KAiDeviceStatusContentNWStatus_Cid[] = L"NWStatus"; |
|
61 const wchar_t KAiDeviceStatusContentMCNIndicator_Cid[] = L"MCNIndicator"; |
|
62 const wchar_t KAiDeviceStatusContentVHZIndicator_Cid[] = L"VHZIndicator"; |
|
63 const wchar_t KAiDeviceStatusContentCUGIndicator_Cid[] = L"CUGIndicator"; |
|
64 const wchar_t KAiDeviceStatusContentGeneralIndicator_Cid[] = L"GeneralIndicator"; |
|
65 const wchar_t KAiDeviceStatusContentVHZText_Cid[] = L"VHZText"; |
|
66 const wchar_t KAiDeviceStatusContentCUGMCNIndicator_Cid[] = L"CUGMCNIndicator"; |
|
67 |
|
68 |
|
69 const char KAiDeviceStatusMimeTypeTextPlain[] = "text/plain"; |
|
70 |
|
71 /** |
|
72 * Content what device status plugin publishes |
|
73 */ |
|
74 |
|
75 const TAiContentItem KAiDeviceStatusContent[] = |
|
76 { |
|
77 //Published data can be service provider name, offline profile, |
|
78 //operator logo or anything related to network status |
|
79 { EAiDeviceStatusContentNetworkIdentity, KAiDeviceStatusContentNetworkIdentity_Cid, |
|
80 KAiDeviceStatusMimeTypeTextPlain }, |
|
81 |
|
82 //Published data is name of the profile from profiles engine |
|
83 { EAiDeviceStatusContentProfileName, KAiDeviceStatusContentProfileName_Cid, |
|
84 KAiDeviceStatusMimeTypeTextPlain }, |
|
85 |
|
86 //Published data is name of the general profile from profiles engine |
|
87 { EAiDeviceStatusContentGeneralProfileName, KAiDeviceStatusContentGeneralProfileName_Cid, |
|
88 KAiDeviceStatusMimeTypeTextPlain }, |
|
89 |
|
90 //Published data is current date as a text. Formatted according to current locale |
|
91 { EAiDeviceStatusContentDate, KAiDeviceStatusContentDate_Cid, |
|
92 KAiDeviceStatusMimeTypeTextPlain }, |
|
93 |
|
94 //Published data silent indicator as a text |
|
95 { EAiDeviceStatusContentSilentIndicator, KAiDeviceStatusContentSilentIndicator_Cid, |
|
96 KAiDeviceStatusMimeTypeTextPlain }, |
|
97 |
|
98 //Published data timed profile indicator as a text |
|
99 { EAiDeviceStatusContentTimedProfileIndicator, KAiDeviceStatusContentTimedProfileIndicator_Cid, |
|
100 KAiDeviceStatusMimeTypeTextPlain }, |
|
101 |
|
102 //Published data is resource id |
|
103 { EAiDeviceStatusContentSIMRegStatus, KAiDeviceStatusContentSIMRegStatus_Cid, |
|
104 KAiDeviceStatusMimeTypeTextPlain }, |
|
105 |
|
106 //Published data is resource id |
|
107 { EAiDeviceStatusContentNWStatus, KAiDeviceStatusContentNWStatus_Cid, |
|
108 KAiDeviceStatusMimeTypeTextPlain }, |
|
109 |
|
110 //Published data is MCN message |
|
111 { EAiDeviceStatusContentMCNIndicator, KAiDeviceStatusContentMCNIndicator_Cid, |
|
112 KAiDeviceStatusMimeTypeTextPlain }, |
|
113 |
|
114 //Published data is VHZ name |
|
115 { EAiDeviceStatusContentVHZIndicator, KAiDeviceStatusContentVHZIndicator_Cid, |
|
116 KAiDeviceStatusMimeTypeTextPlain }, |
|
117 |
|
118 //Published data is localized text, for example "Group 1" |
|
119 { EAiDeviceStatusContentCUGIndicator, KAiDeviceStatusContentCUGIndicator_Cid, |
|
120 KAiDeviceStatusMimeTypeTextPlain }, |
|
121 |
|
122 //Published data general indicator as a text |
|
123 { EAiDeviceStatusContentGeneralIndicator, KAiDeviceStatusContentGeneralIndicator_Cid, |
|
124 KAiDeviceStatusMimeTypeTextPlain }, |
|
125 |
|
126 //Published data VHZ text |
|
127 { EAiDeviceStatusContentVHZText, KAiDeviceStatusContentVHZText_Cid, |
|
128 KAiDeviceStatusMimeTypeTextPlain }, |
|
129 |
|
130 //Published data is localized text, for example "Group 1" or MCN message |
|
131 { EAiDeviceStatusContentCUGMCNIndicator, KAiDeviceStatusContentCUGMCNIndicator_Cid, |
|
132 KAiDeviceStatusMimeTypeTextPlain } |
|
133 }; |
|
134 |
|
135 const TInt KAiDeviceStatusContentCount = sizeof( KAiDeviceStatusContent ) / |
|
136 sizeof( KAiDeviceStatusContent[0] ); |
|
137 |
|
138 |
|
139 |
|
140 //content item id's |
|
141 enum TAiDeviceStatusResourceIds |
|
142 { |
|
143 EAiDeviceStatusResourceSIMRegFail, |
|
144 EAiDeviceStatusResourceNWOk, |
|
145 EAiDeviceStatusResourceNWLost |
|
146 }; |
|
147 |
|
148 const wchar_t KAiDeviceStatusResourceSIMRegFail_Cid[] = L"SIMRegFail"; |
|
149 const wchar_t KAiDeviceStatusResourceShowNWLost_Cid[] = L"NWLost"; |
|
150 |
|
151 |
|
152 const TAiContentItem KAiDeviceStatusResources[] = |
|
153 { |
|
154 //Published data is resource id |
|
155 { EAiDeviceStatusResourceSIMRegFail, KAiDeviceStatusResourceSIMRegFail_Cid, |
|
156 KAiDeviceStatusMimeTypeTextPlain }, |
|
157 { EAiDeviceStatusResourceNWLost, KAiDeviceStatusResourceShowNWLost_Cid, |
|
158 KAiDeviceStatusMimeTypeTextPlain }, |
|
159 }; |
|
160 |
|
161 const TInt KAiDeviceStatusResourceCount = sizeof( KAiDeviceStatusResources ) / |
|
162 sizeof( KAiDeviceStatusResources[0] ); |
|
163 |
|
164 |
|
165 #endif // AIDEVICESTATUSCONTENTMODEL_H |