114
|
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: Content model for data plug-in.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef SAPIDATAPLUGINCONST_H
|
|
20 |
#define SAPIDATAPLUGINCONST_H
|
|
21 |
|
|
22 |
#include <aicontentmodel.h>
|
|
23 |
#include "sapidatapluginuids.hrh"
|
|
24 |
|
|
25 |
// AI Data Plug-in ECOM implementation UID.
|
|
26 |
const TInt KImplUidDataPlugin = SAPIDP_UID_ECOM_IMPLEMENTATION_CONTENTPUBLISHER_DATAPLUGIN;
|
|
27 |
const TUid KUidDataPlugin = { KImplUidDataPlugin };
|
|
28 |
|
|
29 |
// ================================= CONTENT ===================================
|
|
30 |
|
|
31 |
/**
|
|
32 |
* Content Model type identifier
|
|
33 |
*/
|
|
34 |
_LIT(KText, "text");
|
|
35 |
_LIT(KImage, "image");
|
|
36 |
_LIT(KNewsTicker, "title");
|
|
37 |
_LIT(KTextEditor, "texteditor");
|
|
38 |
_LIT(KData, "data");
|
|
39 |
|
|
40 |
_LIT(KPlugin, "plugin");
|
|
41 |
|
|
42 |
// CPS Constants
|
|
43 |
_LIT(KService, "service");
|
|
44 |
_LIT(KInterface, "interface");
|
|
45 |
_LIT(KCommand, "command");
|
|
46 |
_LIT8( KType, "type");
|
|
47 |
_LIT( KCpData, "cp_data");
|
|
48 |
_LIT( KPubData, "publisher" );
|
|
49 |
_LIT( KCpData_PubData, "cp_data:publisher");
|
|
50 |
|
|
51 |
_LIT8( KFilter, "filter" );
|
|
52 |
_LIT8( KDataMap, "data_map");
|
|
53 |
_LIT8( KActionTrigger, "action_trigger" );
|
|
54 |
_LIT8( KGetList , "GetList" );
|
|
55 |
_LIT8( KExecuteAction, "ExecuteAction" );
|
|
56 |
_LIT8( KRequestNotification, "RequestNotification" );
|
|
57 |
_LIT8( KChangeInfo, "change_info" );
|
|
58 |
_LIT8( KListMap, "list_map" );
|
|
59 |
_LIT8( KPublisherId, "publisher" );
|
|
60 |
_LIT ( KPublisher16, "publisher" );
|
|
61 |
_LIT8( KContentType, "content_type" );
|
|
62 |
_LIT ( KContentType16, "content_type" );
|
|
63 |
_LIT8( KContentId, "content_id" );
|
|
64 |
_LIT8( KResults, "results");
|
|
65 |
|
|
66 |
_LIT( KDataKey, "data_key");
|
|
67 |
_LIT8( KMenuItems, "menuitems");
|
|
68 |
_LIT( KMenuItem16, "menuitem");
|
|
69 |
_LIT( KAll, "all");
|
|
70 |
_LIT8( KOperation, "operation" );
|
|
71 |
_LIT8( KFLAG, "flag");
|
|
72 |
|
|
73 |
_LIT( KOperationAdd, "add" );
|
|
74 |
_LIT( KOperationUpdate, "update" );
|
|
75 |
_LIT( KOperationDelete, "delete" );
|
|
76 |
_LIT( KOperationExecute, "execute" );
|
|
77 |
_LIT( KAddUpdateDelete, "add:update:delete" );
|
|
78 |
_LIT( KAddUpdate, "add:update" );
|
|
79 |
|
|
80 |
_LIT(KWidget, "hswidget");
|
|
81 |
_LIT8( KDeActive, "deactive");
|
|
82 |
_LIT8( KActive, "active");
|
|
83 |
_LIT8( KSystemStartup, "systemstartup");
|
|
84 |
_LIT8( KPageStartup, "pagestartup");
|
|
85 |
_LIT8( KPluginStartup, "pluginstartup");
|
|
86 |
_LIT8( KSuspend , "suspend");
|
|
87 |
_LIT8( KResume, "resume");
|
|
88 |
_LIT8( KSystemShutdown, "systemshutdown");
|
|
89 |
_LIT8( KPageShutdown, "pageshutdown");
|
|
90 |
_LIT8( KPluginShutdown, "pluginshutdown");
|
|
91 |
_LIT8( KOnLine, "online");
|
|
92 |
_LIT8( KOffLine, "offline");
|
|
93 |
|
|
94 |
|
|
95 |
// reserved extension for retrieving mask handle
|
|
96 |
_LIT8( KMask, "_mask");
|
|
97 |
|
|
98 |
_LIT( KSkin, "skin" );
|
|
99 |
_LIT( KMif, "mif" );
|
|
100 |
_LIT( KMIFExtension, ".mif" );
|
|
101 |
_LIT( KColon, ":");
|
|
102 |
|
|
103 |
const TUint KLeftParenthesis = '(';
|
|
104 |
|
|
105 |
// Option for registering in CPS
|
|
106 |
const TUint KExtendedNotifications = 0x4000;
|
|
107 |
|
|
108 |
// Sapi Data Plugin Constants
|
|
109 |
const TUint KPluginNameSeprator = '/';
|
|
110 |
|
|
111 |
/**
|
|
112 |
* Maximum length for the content name
|
|
113 |
*/
|
|
114 |
const TInt KMaxTypeLength = 8;
|
|
115 |
|
|
116 |
/**
|
|
117 |
* Maximum length for the content name
|
|
118 |
*/
|
|
119 |
const TInt KSAPIContentNameMaxLength = 255;
|
|
120 |
|
|
121 |
/**
|
|
122 |
* Maximum length for the content value
|
|
123 |
*/
|
|
124 |
const TInt KSAPIContentValueMaxLength = 255;
|
|
125 |
|
|
126 |
/**
|
|
127 |
* Maximum length for the plugin name
|
|
128 |
*/
|
|
129 |
const TInt KAiPluginNameMaxLength = 255;
|
|
130 |
|
|
131 |
|
|
132 |
#endif /* SAPIDATAPLUGINCONST_H */
|