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