inc/cpserverdef.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:  Globals for Content Publisher  server
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 C_CPSERVERDEF_H
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    20
#define C_CPSERVERDEF_H
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    21
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    22
// CONSTANTS
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    23
const TUint KCPServerMajorVersionNumber = 0;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    24
const TUint KCPServerMinorVersionNumber = 1;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    25
const TUint KCPServerBuildVersionNumber = 1;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    26
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    27
// ENUMERATIONS
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    28
// Opcodes used in message passing between client and server
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    29
enum TCpServerRqst
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    30
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    31
    ECpServerAddData = 1,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    32
    ECpServerRemoveData = 2,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    33
    ECpServerAddDataNonPersistent = 3,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    34
    ECpServerGetListSize = 10,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    35
    ECpServerGetListData = 11,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    36
    ECpServerRegisterObserver = 20,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    37
    ECpServerUnRegisterObserver = 21,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    38
    ECpServerGetChangeInfoData = 22,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    39
    ECpServerAddObserver = 23,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    40
    ECpServerRemoveObserver = 24,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    41
    ECpServerExecuteAction = 30,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    42
    ECpServerInternal = 100
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    43
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    44
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    45
_LIT( KCPServerThreadName, "cpserver_MainThread" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    46
_LIT( KCPServerName, "cpserver" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    47
_LIT( KCPServerFilename, "cpserver" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    48
_LIT( KActiveDes, "1" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    49
_LIT( KInActiveDes, "0" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    50
_LIT( KColon, ":" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    51
_LIT( KSemiColon, ";" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    52
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    53
_LIT( KCPServerPluginThreadName, "CPS plugin command execution thread %d" );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    54
const TInt KCPServerPluginThreadMinHeapSize = 0x400; // 1kB
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    55
const TInt KCPServerPluginThreadMaxHeapSize = 0x100000; // 1MB
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    56
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    57
const TUid KServerUid3 =
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    58
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    59
    0x20016B7B
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    60
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    61
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    62
/** Panic Category */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    63
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    64
/** Active Data Server panic codes */
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    65
enum TCPServerPanic
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    66
    {
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    67
    ECPServerBadRequest = 1,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    68
    ECPServerBadDescriptor = 2,
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    69
    ECPServerSrvCreateServer = 3
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    70
    };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    71
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    72
const TUint KDescriptorPosition( 0);
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    73
const TUint KReturnPosition( 1);
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    74
const TUint KInfoPosition( 2);
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    75
const TUint KTransactionPosition( 3);
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    76
const TBool KActive( ETrue );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    77
const TBool KInActive( EFalse );
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    78
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    79
// Uid of CP Server
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    80
const TUid KServerUid 			= { 0x20016B7B };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    81
// Uid of cpstorage
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    82
const TUint32 KCPStorageUid 	= { 0x20016B7C };
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    83
//Values of KSQLDBStateKey key
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    84
const TInt KSQLDBStateNormal 	= 0x00000001;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    85
const TInt KSQLDBStateRestored	= 0x00000002;//KSQLDBStateNormal << 1
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    86
// const ITnt NextState = LastState << 1;
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    87
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    88
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    89
f9f9f96b1873 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    90
#endif // C_CPSERVERDEF_H