ncdengine/engine/inc/catalogsserverdefines.h
changeset 4 32704c33136d
equal deleted inserted replaced
-1:000000000000 4:32704c33136d
       
     1 /*
       
     2 * Copyright (c) 2006 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CATALOGS_SERVER_DEFINES
       
    20 #define CATALOGS_SERVER_DEFINES
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 // Replaced with USE_BUILD_SCRIPT when using build script
       
    25 #define DUMMY_DEFINE
       
    26 
       
    27 
       
    28 #ifdef USE_BUILD_SCRIPT
       
    29 // Server name
       
    30 _LIT( KCatalogsServerName, "NCD_APP_NAME_POSTFIX" );
       
    31 //Semaphore that is used when creating a new server
       
    32 _LIT( KCatalogsServerSemaphoreName, "NCDSemaphore_APP_NAME_POSTFIX" );
       
    33 // File that is passed to the new server-process for execution
       
    34 _LIT( KCatalogsServerFilename, "ncdserver_APP_NAME_POSTFIX" );
       
    35 #else
       
    36 // Server name
       
    37 _LIT( KCatalogsServerName, "NCD_20019119" );
       
    38 //Semaphore that is used when creating a new server
       
    39 _LIT( KCatalogsServerSemaphoreName, "NCDSemaphore_20019119" );
       
    40 // File that is passed to the new server-process for execution
       
    41 _LIT( KCatalogsServerFilename, "ncdserver_20019119" );
       
    42 #endif // USE_BUILD_SCRIPT
       
    43 
       
    44 
       
    45 
       
    46 // Server version number, which is used when creating a new session
       
    47 const TInt KCatalogsServerMajorVersionNumber( 0 );
       
    48 const TInt KCatalogsServerMinorVersionNumber( 0 );
       
    49 const TInt KCatalogsServerBuildVersionNumber( 1 );
       
    50 
       
    51 // Default message slot amount in a session
       
    52 const TInt KCatalogsDefaultMessageSlots( 255 );
       
    53 
       
    54 // Minimum return message size when using return message allocation
       
    55 const TInt KCatalogsMinimumAllocSize( 65 );
       
    56 // And the length of it
       
    57 const TInt KCatalogsMinimumAllocLength( 65 );
       
    58 // Character that divides elements of a message received that
       
    59 // informs that given return descriptor is too small.
       
    60 // (When using return message allocation)
       
    61 const TText KCatalogsTooSmallDescMsgElementDivider( '|' );
       
    62 // Error code to inform when using return message allocation
       
    63 // that the allocated descriptor was too small
       
    64 const TInt KCatalogsErrorTooSmallDescriptor( 50 );
       
    65 
       
    66 
       
    67 // Enumeration to identify different types of messages. Used
       
    68 // internally in ClientServer
       
    69 enum TCatalogsServerFunction
       
    70     {
       
    71     // Types of internal messages in ClientServer
       
    72     ECatalogsCreateContext,
       
    73     ECatalogsCompleteMessage,
       
    74     ECatalogsCompleteMessageWide,
       
    75     ECatalogsRemoveIncompleteMessage,
       
    76     ECatalogsCreateProvider,
       
    77     ECatalogsClientSideDown,
       
    78     // Types of external messages in ClientServer (For example a message
       
    79     // that is conveyed between a nodeproxy and a corresponding node)
       
    80     ECatalogsExternalMessage,
       
    81     ECatalogsExternalAllocMessage
       
    82     };
       
    83 
       
    84 #endif // CATALOGS_SERVER_DEFINES
       
    85