convergedconnectionhandler/inc/cchclientserverinternal.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2007 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:  CCH Client / Server common internal header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCHCLIENTSERVERINTERNAL_H
       
    20 #define CCHCLIENTSERVERINTERNAL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // CONSTANTS
       
    26 _LIT( KCCHServerExe, "CCHServer.exe" );
       
    27 _LIT( KCCHServerName, "!CCHServer" );
       
    28 _LIT( KCCHServerStartMutex, "CCHServerStartMutex" );
       
    29 
       
    30 const TUid  KCCHServerUid  = { 0x10275456 };
       
    31 
       
    32 /** 
       
    33  * Version number 
       
    34  */
       
    35 const TUint KCCHServMajorVersionNumber = 0;
       
    36 const TUint KCCHServMinorVersionNumber = 0;
       
    37 const TUint KCCHServBuildVersionNumber = 1;
       
    38 
       
    39 /**
       
    40  * Number of message slots in the server.
       
    41  * Needed message slots can be defined as follows:
       
    42  * total slots = n+2, where n is number of independent
       
    43  * asynchronous services offered by the server.
       
    44  */
       
    45 const TUint KCCHMessageSlots = 9;
       
    46 
       
    47 // DATA TYPES
       
    48 
       
    49 /**
       
    50  * Commands from client to server
       
    51  */
       
    52 enum TCCHCommands
       
    53     {
       
    54     ECCHOpenSubSession = 0,
       
    55     ECCHCloseSubSession,
       
    56     ECCHSubscribeToEvents,
       
    57     ECCHSubscribeToEventsCancel,
       
    58     ECCHGetServices,
       
    59     ECCHGetServicesCancel,
       
    60     ECCHGetServiceState,
       
    61     ECCHEnableService,
       
    62     ECCHEnableServiceCancel,
       
    63     ECCHDisableService,
       
    64     ECCHDisableServiceCancel,
       
    65     ECCHGetServiceInfo,
       
    66     ECCHGetPreferredService,
       
    67     ECCHSetConnectionInfo,
       
    68     ECCHSetConnectionInfoCancel,
       
    69     ECCHGetConnectionInfo,
       
    70     ECCHGetConnectionInfoCancel,
       
    71     ECCHReserveService,
       
    72     ECCHFreeService,
       
    73     ECCHIsReserved,
       
    74     ECCHServiceCount,
       
    75     ECCHServerRegister,
       
    76     ECCHServerRegisterCancel
       
    77     };
       
    78 
       
    79 /**
       
    80  * Server panic codes
       
    81  */
       
    82 enum TCCHServerPanic
       
    83     {
       
    84     ECCHErrCreateServer = 100,
       
    85     ECCHErrStartServer = 101,
       
    86     
       
    87     ECCHErrSubSessionOpen = 102,
       
    88     ECCHErrSubSessionClose = 103,
       
    89     
       
    90     ECCHBadRequest = 104,
       
    91     ECCHBadDescriptor = 105,
       
    92     };
       
    93 
       
    94 #endif // CCHCLIENTSERVERINTERNAL_H
       
    95 
       
    96 // End of File