inc/cpglobals.h
author kashif.sayed
Fri, 26 Mar 2010 03:06:02 +0530
branchv5backport
changeset 30 f9f9f96b1873
permissions -rw-r--r--
user: kashif.sayed added contentcontrolsrv/.cproject added contentcontrolsrv/.project added contentcontrolsrv/group/ABLD.BAT added contentpublishingsrv/.cproject added contentpublishingsrv/.project added contentpublishingsrv/contentharvester/.cproject added contentpublishingsrv/contentharvester/.project added contentpublishingsrv/contentharvester/contentharvesterclient/group/ABLD.BAT added contentpublishingsrv/contentharvester/contentharvesterserver/group/ABLD.BAT added contentpublishingsrv/contentharvester/contentharvesterswiplugin/group/ABLD.BAT added contentpublishingsrv/contentharvester/factorysettingsplugin/group/ABLD.BAT added contentpublishingsrv/contentharvester/group/ABLD.BAT added contentpublishingsrv/group/ABLD.BAT added dependencies/S3libs/cpswrapper.lib added dependencies/S3libs/hscontentcontrol.lib added dependencies/S3libs/hspswrapper.lib added group/ABLD.BAT added homescreenpluginsrv/group/ABLD.BAT added homescreensrv_plat/group/ABLD.BAT added idlefw/group/ABLD.BAT added inc/ccontentmap.h added inc/cpdebug.h added inc/cpglobals.h added inc/cpliwmap.h added inc/cpluginvalidator.h added inc/cpserverdef.h added inc/cpublisherregistrymap.h added inc/mcssathandler.h added menucontentsrv/group/ABLD.BAT added xcfw/group/ABLD.BAT changed dependencies/S3libs/bld.inf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     1
/*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     3
* All rights reserved.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     4
* This component and the accompanying materials are made available
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     6
* which accompanies this distribution, and is available
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     8
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     9
* Initial Contributors:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    11
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    12
* Contributors:
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    13
*
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    14
* Description:  Global definitions
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    15
 *
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    16
*/
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    17
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    18
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    19
#ifndef CPCLIENTGLOBALS_H
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    20
#define CPCLIENTGLOBALS_H
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    21
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    22
/** Data types for CP content */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    23
enum TDataTypes
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    24
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    25
    ECPHardcodedText = 1, // 0001
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    26
    ECPResourceText = 2, // 0010
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    27
    ECPFilepathImage = 4, // 0100 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    28
    ECPResourceIcon = 8 // 1000
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    29
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    30
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    31
enum TCPGetListOrder
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    32
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    33
    ECPRecent = 1, // 0001
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    34
    ECPPublisher = 2, // 0010
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    35
    ECPContent = 4, // 0100 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    36
    ECPContentId = 8 // 1000 
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    37
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    38
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    39
enum TFlag
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    40
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    41
    EActivate = 1, // 0001
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    42
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    43
    
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    44
const TInt KNameArgumentsLimit = 5;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    45
const TInt KThreadNameLimit = 64;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    46
const TUint KDisablePersist = 0x1000;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    47
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    48
_LIT( KService, "CP Service" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    49
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    50
_LIT8( KCPInterface, "IDataSource" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    51
_LIT8( KCPContentInterface, "IContentPublishing" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    52
_LIT8( KCPService, "Service.ContentPublishing" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    53
_LIT8( KCommand, "cmd" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    54
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    55
//Supported Commands
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    56
_LIT8( KGetList, "GetList" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    57
_LIT8( KAdd, "Add" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    58
_LIT8( KDelete, "Delete" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    59
_LIT8( KRequestNotification, "RequestNotification" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    60
_LIT8( KExecuteAction, "ExecuteAction" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    61
_LIT8( KCmdCancel, "Cancel" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    62
_LIT8( KActivate, "Activate" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    63
_LIT8( KActivateTrigger, "activate" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    64
_LIT8( KDeactivateTrigger, "deactivate" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    65
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    66
// Input arguments
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    67
_LIT8( KType, "type" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    68
_LIT8( KAction, "action" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    69
_LIT8( KItem, "item" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    70
_LIT8( KFilter, "filter" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    71
_LIT8( KData, "data" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    72
_LIT8( KSortOrder, "sort_order" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    73
_LIT8( KItemId, "item_id" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    74
_LIT8( KByPublisher, "by_publisher" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    75
_LIT8( KByEntryIds, "by_entryids" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    76
_LIT8( KPublisherId, "publisher" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    77
_LIT8( KContentType, "content_type" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    78
_LIT8( KContentId, "content_id" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    79
_LIT8( KExpirationDate, "expiration_date" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    80
_LIT8( KActivatePublisher, "activate" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    81
_LIT8( KIds, "ids" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    82
_LIT8( KId, "id" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    83
_LIT8( KFlag, "flag");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    84
_LIT8( KAccessList, "ACL" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    85
_LIT8( KACLRead, "read");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    86
_LIT8( KACLWrite, "write");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    87
_LIT8( KACLDelete, "delete");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    88
_LIT8( KUIDs, "UID" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    89
_LIT8( KCapability, "Capability" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    90
_LIT( KAll, "all");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    91
_LIT( KSortPublisher, "publisher");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    92
_LIT( KSortContentType, "content_type");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    93
_LIT( KSortContentId, "content_id");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    94
_LIT( KSortRecent, "recent");
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    95
_LIT( KOperationAdd, "add" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    96
_LIT( KOperationUpdate, "update" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    97
_LIT( KOperationDelete, "delete" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    98
_LIT( KOperationExecute, "execute" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    99
_LIT8( KDataType, "data_type" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   100
_LIT8( KOperation, "operation" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   101
_LIT8( KActionTrigger, "action_trigger" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   102
_LIT8( KActionTrigger16, "action_trigger16" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   103
_LIT8( KHardcodedText, "harcoded_text" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   104
_LIT8( KResourceText, "resource_text" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   105
_LIT8( KFilepathImage, "filepath_image" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   106
_LIT8( KIdMask, "id_mask" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   107
_LIT8( KResourceIcon, "resource_icon" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   108
_LIT8( KIdIcon, "id_icon" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   109
_LIT8( KIdText, "id_text" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   110
_LIT( KCpData, "cp_data" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   111
_LIT( KPublisher, "publisher" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   112
_LIT8( KChangeInfo, "change_info" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   113
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   114
_LIT8( KPublisher_Uid, "publisher_Uid" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   115
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   116
// Argument in Action
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   117
_LIT8( KActionHandlerInterface, "IDataAction" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   118
_LIT8( KActionHandlerService, "Service.ActionHandler" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   119
_LIT8( KCmdExecute, "Execute" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   120
_LIT8( KPluginUid, "plugin_id" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   121
_LIT8( KDataForActionHandler, "data" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   122
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   123
_LIT8( KLaunchMethod, "launch_method" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   124
_LIT8( KApplicationUid, "application_uid" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   125
_LIT8( KDocumentName, "document_name" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   126
_LIT8( KViewId, "view_id" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   127
_LIT8( KMessageUid, "message_uid" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   128
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   129
// Output
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   130
_LIT8( KResults, "results" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   131
_LIT8( KListMap, "list_map" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   132
_LIT8( KStatus, "status" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   133
_LIT8( KDataMap, "data_map" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   134
_LIT8( KActionMap, "action_map" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   135
_LIT8( KKey, "key" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   136
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   137
_LIT8( KTransactionID, "TransactionID" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   138
_LIT8( KErrorCode, "ErrorCode" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   139
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   140
#endif /*CPCLIENTGLOBALS_H*/