64
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 - 2009 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: constants needed in content publishing
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef CMAILCPSIFCONSTS_H_
|
|
20 |
#define CMAILCPSIFCONSTS_H_
|
|
21 |
|
|
22 |
// Hardcoded maximum value for number of rows in widget
|
|
23 |
const TInt KMaxRowCount = 3;
|
|
24 |
const TInt KMaxMsgCount = 2;
|
|
25 |
// Hardcoded maximum value for number of mailboxes
|
|
26 |
const TInt KMaxMailboxCount = 18;
|
|
27 |
const TInt KMaxUnreadCount = 999;
|
|
28 |
const TInt KMaxDescLen = 256;
|
|
29 |
_LIT(KNullDes, "");
|
|
30 |
_LIT8(KNullDes8, "");
|
|
31 |
const TInt KNullIcon = 0;
|
|
32 |
|
|
33 |
_LIT( KGreaterThan,">");
|
|
34 |
_LIT( KLessThan,"<");
|
|
35 |
_LIT( KAt,"@");
|
|
36 |
_LIT( KDot,".");
|
|
37 |
_LIT( KSkinPrefix, "SKIN(" );
|
|
38 |
|
|
39 |
_LIT( KSkinPostfix, "):");
|
|
40 |
_LIT( KMifPrefix, "mif(");
|
|
41 |
// Mif file name and path, drive letter need to be parsed run time
|
|
42 |
_LIT( KMifPath, "\\resource\\apps\\cmailhandlerplugin.mif");
|
|
43 |
_LIT( KSpace, " ");
|
|
44 |
// Resource file name and path, drive letter need to be parsed run time
|
|
45 |
_LIT( KResourceFile, "\\resource\\apps\\emailwidget.rsc" );
|
|
46 |
_LIT( KDissociated,"0");
|
|
47 |
|
|
48 |
_LIT(KStartSeparator, "<");
|
|
49 |
_LIT(KEndSeparator, ">");
|
|
50 |
|
|
51 |
//
|
|
52 |
// EMAIL WIDGET SPECIFIC CONSTANTS USED IN PUBLISHING
|
|
53 |
//
|
|
54 |
|
|
55 |
_LIT(KPubId, "0x2001F413:CMailWidget");
|
|
56 |
_LIT8(KConfId8, "0x2001e272");
|
|
57 |
|
|
58 |
_LIT(KContTypeText, "text");
|
|
59 |
_LIT(KContTypeImage, "image");
|
|
60 |
|
|
61 |
_LIT(KContTypeSetupText, "ct_setup_text");
|
|
62 |
_LIT(KKeySetupText, "key_setup_text");
|
|
63 |
_LIT(KContTypeSetupIcon, "ct_setup_icon");
|
|
64 |
_LIT8(KKeySetupIcon, "key_setup_icon");
|
|
65 |
|
|
66 |
_LIT(KContTypeSetupBrandIcon1, "ct_setup_brand_icon_1");
|
|
67 |
_LIT8(KKeySetupBrandIcon1, "key_setup_brand_icon_1");
|
|
68 |
_LIT(KContTypeSetupBrandIcon2, "ct_setup_brand_icon_2");
|
|
69 |
_LIT8(KKeySetupBrandIcon2, "key_setup_brand_icon_2");
|
|
70 |
_LIT(KContTypeSetupBrandIcon3, "ct_setup_brand_icon_3");
|
|
71 |
_LIT8(KKeySetupBrandIcon3, "key_setup_brand_icon_3");
|
|
72 |
_LIT(KContTypeSetupBrandIcon4, "ct_setup_brand_icon_4");
|
|
73 |
_LIT8(KKeySetupBrandIcon4, "key_setup_brand_icon_4");
|
|
74 |
|
|
75 |
_LIT(KSetupBrand1, "ovi.com");
|
|
76 |
_LIT(KSetupBrand2, "yahoo.com");
|
|
77 |
_LIT(KSetupBrand3, "hotmail.com");
|
|
78 |
_LIT(KSetupBrand4, "gmail.com");
|
|
79 |
|
|
80 |
_LIT(KContTypeBodyText, "ct_body_text_");
|
|
81 |
_LIT(KKeyBodyText, "key_body_text_");
|
|
82 |
|
|
83 |
_LIT(KContTypeSubjectText, "ct_subject_text_");
|
|
84 |
_LIT(KKeySubjectText, "key_subject_text_");
|
|
85 |
|
|
86 |
_LIT(KContTypeIndicatorIcon, "ct_indicator_icon_");
|
|
87 |
_LIT8(KKeyIndicatorIcon, "key_indicator_icon_");
|
|
88 |
|
|
89 |
_LIT(KContTypeMailboxIcons, "ct_mailbox_icons_");
|
|
90 |
_LIT8(KKeyMailboxIcons, "key_mailbox_icons_");
|
|
91 |
|
|
92 |
_LIT(KContTypeTime, "ct_time_");
|
|
93 |
_LIT(KKeyTime, "key_time_");
|
|
94 |
|
|
95 |
// Wizard launching action
|
|
96 |
_LIT(KTriggerWizard, "trigger_wizard");
|
|
97 |
_LIT8(KTriggerWizard8, "trigger_wizard");
|
|
98 |
const TUid KUidWizardApp = { 0x10281c96 };
|
|
99 |
const TUid KUidEmailWizardView = { 0x10281C9A };
|
|
100 |
|
|
101 |
// email ui launching action
|
|
102 |
_LIT(KTriggerEmailUi, "trigger_emailui");
|
|
103 |
_LIT8(KTriggerEmailUi8, "trigger_emailui");
|
|
104 |
const TUid KUidEmailUi = { 0x2001E277 };
|
|
105 |
const TUid KMailListId = { 0x00000002 };
|
|
106 |
|
|
107 |
// settings app launching
|
|
108 |
const TUid KUidEMWSettings = { 0x2002429E };
|
|
109 |
const TUid KUidEMWSettingsView = { 0 };
|
|
110 |
|
|
111 |
//
|
|
112 |
// CONSTANTS NEEDED BY CONTENT PUBLISHING SERVICE
|
|
113 |
//
|
|
114 |
_LIT8( KAdd, "Add" );
|
|
115 |
_LIT8( KContentId, "content_id" );
|
|
116 |
_LIT8( KContentType, "content_type" );
|
|
117 |
_LIT8( KCPInterface, "IDataSource" );
|
|
118 |
_LIT8( KCPContentInterface, "IContentPublishing" );
|
|
119 |
_LIT8( KCPService, "Service.ContentPublishing" );
|
|
120 |
_LIT8( KCommand, "cmd" );
|
|
121 |
_LIT8( KType, "type" );
|
|
122 |
_LIT8( KDataMap, "data_map" );
|
|
123 |
_LIT8( KDelete, "Delete" );
|
|
124 |
_LIT( KCpData, "cp_data" );
|
|
125 |
_LIT8( KFilter, "filter" );
|
|
126 |
_LIT8( KData8, "data" );
|
|
127 |
_LIT8( KId, "id" );
|
|
128 |
_LIT8( KItem, "item" );
|
|
129 |
_LIT8( KItemId, "item_id" );
|
|
130 |
_LIT8( KPublisherId, "publisher" );
|
|
131 |
_LIT8( KPluginId, "plugin_id");
|
|
132 |
_LIT8( KActionMap, "action_map" );
|
|
133 |
_LIT8( KDataForActionHandler, "data" );
|
|
134 |
_LIT( KData, "data" );
|
|
135 |
_LIT8( KLaunchMethod, "launch_method" );
|
|
136 |
_LIT8( KApplicationUid, "application_uid" );
|
|
137 |
_LIT( KActionValueViewActivation, "view_activation");
|
|
138 |
_LIT8( KAdditionalData, "additional_data" );
|
|
139 |
_LIT8( KMessageUid, "message_uid" );
|
|
140 |
_LIT8( KViewId, "view_id" );
|
|
141 |
_LIT8( KViewAppUid, "view_app_uid" );
|
|
142 |
// constants for requesting notification
|
|
143 |
_LIT( KPubData, "publisher");
|
|
144 |
_LIT( KActionName,"notify");
|
|
145 |
_LIT8( KPluginStartup, "pluginstartup");
|
|
146 |
_LIT8( KPluginShutdown, "pluginshutdown");
|
|
147 |
_LIT8( KSuspend , "suspend");
|
|
148 |
_LIT8( KResume, "resume");
|
|
149 |
_LIT( KPluginStartup16, "pluginstartup");
|
|
150 |
_LIT( KPluginShutdown16, "pluginshutdown");
|
|
151 |
_LIT( KSuspend16, "suspend");
|
|
152 |
_LIT( KResume16, "resume");
|
|
153 |
_LIT( KSettings16, "settings");
|
|
154 |
_LIT( KCPAll, "all");
|
|
155 |
_LIT8( KExecute, "execute" );
|
|
156 |
_LIT( KContentAndPublisher_Registry, "cp_data:publisher");
|
|
157 |
_LIT8( KOperation, "operation" );
|
|
158 |
_LIT8( KRequestNotification, "RequestNotification" );
|
|
159 |
_LIT8( KChangeInfo, "change_info" );
|
|
160 |
_LIT8( KActionTrigger, "action_trigger" );
|
|
161 |
|
|
162 |
enum TWidgetMailDetails
|
|
163 |
{
|
|
164 |
ESender,
|
|
165 |
ESubject,
|
|
166 |
ETime
|
|
167 |
};
|
|
168 |
|
|
169 |
#endif /*CMAILCPSIFCONSTS_H_*/
|