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