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