|
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: |
|
15 * Content model for data plug-in. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef WRTDATAPLUGINCONST_H |
|
21 #define WRTDATAPLUGINCONST_H |
|
22 |
|
23 #include <aicontentmodel.h> |
|
24 #include "wrtdatapluginuids.hrh" |
|
25 |
|
26 // AI Data Plug-in ECOM implementation UID. |
|
27 const TInt KImplUidDataPlugin = WRTDP_UID_ECOM_IMPLEMENTATION_CONTENTPUBLISHER_DATAPLUGIN; |
|
28 const TUid KUidDataPlugin = { KImplUidDataPlugin }; |
|
29 |
|
30 // ================================= CONTENT =================================== |
|
31 |
|
32 /** |
|
33 * Content Model type identifier |
|
34 */ |
|
35 _LIT(KText ,"text"); |
|
36 _LIT(KImage, "image"); |
|
37 _LIT(KAnimation, "animation"); |
|
38 _LIT(KPlugin, "plugin"); |
|
39 |
|
40 _LIT(KNewsTicker ,"newsticker"); |
|
41 |
|
42 |
|
43 // CPS Constants |
|
44 _LIT(KService, "service"); |
|
45 _LIT(KInterface, "interface"); |
|
46 _LIT(KCommand, "command"); |
|
47 _LIT8( KType, "type"); |
|
48 _LIT( KCpData, "cp_data"); |
|
49 _LIT( KPubData, "publisher" ); |
|
50 _LIT( KCpData_PubData, "cp_data:publisher"); |
|
51 |
|
52 _LIT8( KFilter, "filter" ); |
|
53 _LIT8( KDataMap, "data_map"); |
|
54 _LIT8( KActionTrigger, "action_trigger" ); |
|
55 _LIT8( KGetList , "GetList" ); |
|
56 _LIT8( KExecuteAction, "ExecuteAction" ); |
|
57 _LIT8( KRequestNotification, "RequestNotification" ); |
|
58 _LIT8( KChangeInfo, "change_info" ); |
|
59 _LIT8( KListMap, "list_map" ); |
|
60 _LIT8( KPublisherId, "publisher" ); |
|
61 _LIT8( KContentType, "content_type" ); |
|
62 _LIT8( KContentId, "content_id" ); |
|
63 _LIT8( KResults, "results"); |
|
64 _LIT( KAll, "all"); |
|
65 _LIT8( KOperation, "operation" ); |
|
66 _LIT8( KFLAG, "flag"); |
|
67 |
|
68 _LIT( KOperationAdd, "add" ); |
|
69 _LIT( KOperationUpdate, "update" ); |
|
70 _LIT( KOperationDelete, "delete" ); |
|
71 _LIT( KOperationExecute, "execute" ); |
|
72 _LIT( KAddUpdateDelete, "add:update:delete" ); |
|
73 |
|
74 _LIT8( KDeActive, "deactive"); |
|
75 _LIT8( KActive, "active"); |
|
76 _LIT8( KSuspend , "suspend"); |
|
77 _LIT8( KResume, "resume"); |
|
78 _LIT8( KOnLine, "online"); |
|
79 _LIT8( KOffLine, "offline"); |
|
80 |
|
81 // reserved extension for retrieving mask handle |
|
82 _LIT8( KImageMask, "image1_mask"); |
|
83 |
|
84 _LIT( KSkin, "skin" ); |
|
85 _LIT( KMif, "mif" ); |
|
86 _LIT( KMIFExtension, ".mif" ); |
|
87 _LIT( KColon, ":"); |
|
88 |
|
89 _LIT( KTemplateWidget,"ai3templatedwidget"); |
|
90 _LIT( KWRTPublisher, "wrt_publisher"); |
|
91 _LIT8(KImage1, "image1"); |
|
92 _LIT8( KWidgetInfo, "widget_info"); |
|
93 _LIT8( KWidgetName, "widget_name"); |
|
94 _LIT8( KWidgetIcon, "widget_icon"); |
|
95 |
|
96 _LIT( KHexPrefix, "0x" ); |
|
97 _LIT( KUid, "uid" ); |
|
98 _LIT8(KElement, "loading"); |
|
99 _LIT8(KDisplay, "display"); |
|
100 _LIT8(KShow, "block"); |
|
101 _LIT8(KHide, "none"); |
|
102 |
|
103 #ifdef __WINS__ |
|
104 _LIT( KDrive, "C:" ); |
|
105 #else |
|
106 _LIT( KDrive, "Z:" ); |
|
107 #endif |
|
108 |
|
109 #ifdef WRT_PREDEFINED_IMAGE |
|
110 _LIT(KImgFolder, "200286dd\\"); |
|
111 _LIT(KJPEG, ".jpg"); |
|
112 _LIT(KPNG, ".png"); |
|
113 #endif |
|
114 |
|
115 const TUint KLeftParenthesis = '('; |
|
116 |
|
117 |
|
118 // WRT Data Plugin Constants |
|
119 const TUint KPluginNameSeprator = '/'; |
|
120 |
|
121 /** |
|
122 * Maximum length for the content name |
|
123 */ |
|
124 const TInt KMaxTypeLength = 8; |
|
125 |
|
126 /** |
|
127 * Maximum length for the content name |
|
128 */ |
|
129 const TInt KWRTContentNameMaxLength = 255; |
|
130 |
|
131 /** |
|
132 * Maximum length for the content value |
|
133 */ |
|
134 const TInt KWRTContentValueMaxLength = 255; |
|
135 |
|
136 /** |
|
137 * Maximum length for the plugin name |
|
138 */ |
|
139 const TInt KAiPluginNameMaxLength = 255; |
|
140 |
|
141 /** |
|
142 * Maximum length for the application uid string |
|
143 * uid(0x123456578) |
|
144 * |
|
145 */ |
|
146 const TInt KWRTAppUidLenth = 16; |
|
147 |
|
148 #endif /* WRTDATAPLUGINCONST_H */ |