25
|
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: Global definitions
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef CPCLIENTGLOBALS_H
|
|
20 |
#define CPCLIENTGLOBALS_H
|
|
21 |
|
|
22 |
/** Data types for CP content */
|
|
23 |
enum TDataTypes
|
|
24 |
{
|
|
25 |
ECPHardcodedText = 1, // 0001
|
|
26 |
ECPResourceText = 2, // 0010
|
|
27 |
ECPFilepathImage = 4, // 0100
|
|
28 |
ECPResourceIcon = 8 // 1000
|
|
29 |
};
|
|
30 |
|
|
31 |
enum TCPGetListOrder
|
|
32 |
{
|
|
33 |
ECPRecent = 1, // 0001
|
|
34 |
ECPPublisher = 2, // 0010
|
|
35 |
ECPContent = 4, // 0100
|
|
36 |
ECPContentId = 8 // 1000
|
|
37 |
};
|
|
38 |
|
|
39 |
enum TFlag
|
|
40 |
{
|
|
41 |
EActivate = 1, // 0001
|
|
42 |
};
|
|
43 |
|
|
44 |
const TInt KNameArgumentsLimit = 5;
|
|
45 |
const TInt KThreadNameLimit = 64;
|
|
46 |
const TUint KDisablePersist = 0x1000;
|
|
47 |
|
|
48 |
_LIT( KService, "CP Service" );
|
|
49 |
|
|
50 |
_LIT8( KCPInterface, "IDataSource" );
|
|
51 |
_LIT8( KCPContentInterface, "IContentPublishing" );
|
|
52 |
_LIT8( KCPService, "Service.ContentPublishing" );
|
|
53 |
_LIT8( KCommand, "cmd" );
|
|
54 |
|
|
55 |
//Supported Commands
|
|
56 |
_LIT8( KGetList, "GetList" );
|
|
57 |
_LIT8( KAdd, "Add" );
|
|
58 |
_LIT8( KDelete, "Delete" );
|
|
59 |
_LIT8( KRequestNotification, "RequestNotification" );
|
|
60 |
_LIT8( KExecuteAction, "ExecuteAction" );
|
|
61 |
_LIT8( KCmdCancel, "Cancel" );
|
|
62 |
_LIT8( KActivate, "Activate" );
|
|
63 |
_LIT8( KActivateTrigger, "activate" );
|
|
64 |
_LIT8( KDeactivateTrigger, "deactivate" );
|
|
65 |
|
|
66 |
// Input arguments
|
|
67 |
_LIT8( KType, "type" );
|
|
68 |
_LIT8( KAction, "action" );
|
|
69 |
_LIT8( KItem, "item" );
|
|
70 |
_LIT8( KFilter, "filter" );
|
|
71 |
_LIT8( KData, "data" );
|
|
72 |
_LIT8( KSortOrder, "sort_order" );
|
|
73 |
_LIT8( KItemId, "item_id" );
|
|
74 |
_LIT8( KByPublisher, "by_publisher" );
|
|
75 |
_LIT8( KByEntryIds, "by_entryids" );
|
|
76 |
_LIT8( KPublisherId, "publisher" );
|
|
77 |
_LIT8( KContentType, "content_type" );
|
|
78 |
_LIT8( KContentId, "content_id" );
|
|
79 |
_LIT8( KExpirationDate, "expiration_date" );
|
|
80 |
_LIT8( KActivatePublisher, "activate" );
|
|
81 |
_LIT8( KIds, "ids" );
|
|
82 |
_LIT8( KId, "id" );
|
|
83 |
_LIT8( KFlag, "flag");
|
|
84 |
_LIT8( KAccessList, "ACL" );
|
|
85 |
_LIT8( KACLRead, "read");
|
|
86 |
_LIT8( KACLWrite, "write");
|
|
87 |
_LIT8( KACLDelete, "delete");
|
|
88 |
_LIT8( KUIDs, "UID" );
|
|
89 |
_LIT8( KCapability, "Capability" );
|
|
90 |
_LIT( KAll, "all");
|
|
91 |
_LIT( KSortPublisher, "publisher");
|
|
92 |
_LIT( KSortContentType, "content_type");
|
|
93 |
_LIT( KSortContentId, "content_id");
|
|
94 |
_LIT( KSortRecent, "recent");
|
|
95 |
_LIT( KOperationAdd, "add" );
|
|
96 |
_LIT( KOperationUpdate, "update" );
|
|
97 |
_LIT( KOperationDelete, "delete" );
|
|
98 |
_LIT( KOperationExecute, "execute" );
|
|
99 |
_LIT8( KDataType, "data_type" );
|
|
100 |
_LIT8( KOperation, "operation" );
|
|
101 |
_LIT8( KActionTrigger, "action_trigger" );
|
|
102 |
_LIT8( KActionTrigger16, "action_trigger16" );
|
|
103 |
_LIT8( KHardcodedText, "harcoded_text" );
|
|
104 |
_LIT8( KResourceText, "resource_text" );
|
|
105 |
_LIT8( KFilepathImage, "filepath_image" );
|
|
106 |
_LIT8( KIdMask, "id_mask" );
|
|
107 |
_LIT8( KResourceIcon, "resource_icon" );
|
|
108 |
_LIT8( KIdIcon, "id_icon" );
|
|
109 |
_LIT8( KIdText, "id_text" );
|
|
110 |
_LIT( KCpData, "cp_data" );
|
|
111 |
_LIT( KPublisher, "publisher" );
|
|
112 |
_LIT8( KChangeInfo, "change_info" );
|
|
113 |
|
|
114 |
_LIT8( KPublisher_Uid, "publisher_Uid" );
|
|
115 |
|
|
116 |
// Argument in Action
|
|
117 |
_LIT8( KActionHandlerInterface, "IDataAction" );
|
|
118 |
_LIT8( KActionHandlerService, "Service.ActionHandler" );
|
|
119 |
_LIT8( KCmdExecute, "Execute" );
|
|
120 |
_LIT8( KPluginUid, "plugin_id" );
|
|
121 |
_LIT8( KDataForActionHandler, "data" );
|
|
122 |
|
|
123 |
_LIT8( KLaunchMethod, "launch_method" );
|
|
124 |
_LIT8( KApplicationUid, "application_uid" );
|
|
125 |
_LIT8( KDocumentName, "document_name" );
|
|
126 |
_LIT8( KViewId, "view_id" );
|
|
127 |
_LIT8( KMessageUid, "message_uid" );
|
|
128 |
|
|
129 |
// Output
|
|
130 |
_LIT8( KResults, "results" );
|
|
131 |
_LIT8( KListMap, "list_map" );
|
|
132 |
_LIT8( KStatus, "status" );
|
|
133 |
_LIT8( KDataMap, "data_map" );
|
|
134 |
_LIT8( KActionMap, "action_map" );
|
|
135 |
_LIT8( KKey, "key" );
|
|
136 |
|
|
137 |
_LIT8( KTransactionID, "TransactionID" );
|
|
138 |
_LIT8( KErrorCode, "ErrorCode" );
|
|
139 |
|
|
140 |
#endif /*CPCLIENTGLOBALS_H*/
|