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