23
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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: constant declaration class
|
|
15 |
*
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef SERVICEWIDGETLOBALS_H
|
|
22 |
#define SERVICEWIDGETLOBALS_H
|
|
23 |
|
|
24 |
#include <vwsdef.h>
|
|
25 |
|
|
26 |
// meco service uid
|
|
27 |
const TInt32 KMECOIMPLEMENTATIONUID ( 0x20012423 );
|
|
28 |
|
|
29 |
/*
|
|
30 |
* service tab app and view uid
|
|
31 |
*/
|
|
32 |
const TInt32 KIMServicetabPluginUid ( 0x20007B6D );
|
|
33 |
|
|
34 |
/*
|
|
35 |
* define constants
|
|
36 |
*/
|
|
37 |
#define KIMWCP_FIRSTTEXT_SIZE 50 // first row text length
|
|
38 |
#define KIMWCP_SECONDTEXT_SIZE 100 // second row text length
|
|
39 |
#define KIMW_MAX_LENGTH 512 // own user id
|
|
40 |
#define KTimerInterval 3000000 // 3 sc timer expiration time
|
|
41 |
#define KSW_RESOURCE_MAX_LENGTH 512 // resource path max length
|
|
42 |
#define KIMWCP_ADD_DATA_SIZE 100 // additional data length
|
|
43 |
/*
|
|
44 |
* resource related strings
|
|
45 |
*/
|
|
46 |
_LIT(KResourceDrive, "\\resource\\" );
|
|
47 |
_LIT(KResourceFileName, "servicewidgetpluginres.rsc" );
|
|
48 |
|
|
49 |
/*
|
|
50 |
* some special character
|
|
51 |
*/
|
|
52 |
_LIT(KAt, "@" );
|
|
53 |
_LIT(KSlash, "/");
|
|
54 |
_LIT(KColon,":");
|
|
55 |
|
|
56 |
/*
|
|
57 |
* content publishing service
|
|
58 |
*/
|
|
59 |
_LIT8( KCPInterface, "IDataSource" );
|
|
60 |
_LIT8( KCPContentInterface, "IContentPublishing" );
|
|
61 |
_LIT8( KCPService, "Service.ContentPublishing" );
|
|
62 |
|
|
63 |
/*
|
|
64 |
* publisher id and types supported
|
|
65 |
*/
|
|
66 |
_LIT(KMask,"_mask");
|
|
67 |
|
|
68 |
//Supported Commands
|
|
69 |
_LIT8( KAdd, "Add" );
|
|
70 |
_LIT8(KGetList,"GetList");
|
|
71 |
_LIT8(KResults,"results");
|
|
72 |
// Input arguments
|
|
73 |
_LIT8( KType, "type" );
|
|
74 |
_LIT8( KItem, "item" );
|
|
75 |
_LIT8( KPublisherId, "publisher" );
|
|
76 |
_LIT8( KContentType, "content_type" );
|
|
77 |
_LIT8( KContentId, "content_id" );
|
|
78 |
_LIT( KCpData, "cp_data" );
|
|
79 |
|
|
80 |
/*
|
|
81 |
* own id content id and key defined in xml
|
|
82 |
*/
|
|
83 |
_LIT8(KOwnTextKey, "owntext");
|
|
84 |
|
|
85 |
/*
|
|
86 |
* message content id and key defined in xml
|
|
87 |
*/
|
|
88 |
_LIT8(KMessageTextKey, "msgtext");
|
|
89 |
|
|
90 |
/*
|
|
91 |
* serviceimage content id and key defined in xml
|
|
92 |
*/
|
|
93 |
_LIT8(KServiceImageKey, "serviceimage");
|
|
94 |
|
|
95 |
/*
|
|
96 |
* own status content id and key defined in xml
|
|
97 |
*/
|
|
98 |
_LIT8(KStatusIconKey, "statusimage");
|
|
99 |
|
|
100 |
/*
|
|
101 |
* HandleNotify constant
|
|
102 |
*/
|
|
103 |
_LIT8( KActive, "active");
|
|
104 |
_LIT8( KDeActive, "deactive");
|
|
105 |
_LIT8( KSuspend, "suspend");
|
|
106 |
_LIT8( KInactive, "inactive");
|
|
107 |
_LIT8( KResume, "resume");
|
|
108 |
_LIT8( KData, "data" );
|
|
109 |
_LIT8( KDelete, "Delete" );
|
|
110 |
_LIT8(KSelected, "selected");
|
|
111 |
// Output
|
|
112 |
_LIT8( KDataMap, "data_map" );
|
|
113 |
_LIT8( KActionMap, "action_map" );
|
|
114 |
|
|
115 |
//Register Widget
|
|
116 |
_LIT(KServiceWidget, "servicewidget");
|
|
117 |
//UID 20021383 is of Publisher used here as constant to avoid conflict with any other
|
|
118 |
//Homescreen widget.This will be suffix to publisher name to make unique id for theme.
|
|
119 |
_LIT( KThemeUid, ":0x20021383");
|
|
120 |
_LIT8( KTemplateType, "template_type");
|
|
121 |
_LIT8( KWidgetName, "widget_name");
|
|
122 |
_LIT8( KWidgetInfo, "widget_info");
|
|
123 |
_LIT(KTemplateWidget, "hstemplate");
|
|
124 |
_LIT8( KExecute, "execute" );
|
|
125 |
_LIT( KAll, "all");
|
|
126 |
_LIT8( KMaxWidgetInst, "widget_inst");
|
|
127 |
_LIT8( KWidgetDesc, "widget_desc");
|
|
128 |
_LIT8( KWidgetLogo, "widget_icon");
|
|
129 |
|
|
130 |
|
|
131 |
_LIT8( KRequestNotification, "RequestNotification" );
|
|
132 |
_LIT( KPublisher, "publisher" );
|
|
133 |
_LIT8( KFilter, "filter" );
|
|
134 |
_LIT(KTriggerMap, "data");
|
|
135 |
_LIT8( KChangeInfo, "change_info" );
|
|
136 |
_LIT8( KActionTrigger, "action_trigger" );
|
|
137 |
_LIT8( KOperation, "operation" );
|
|
138 |
|
|
139 |
#endif /*SERVICEWIDGETLOBALS_H*/
|