htiui/HtiCommPlugins/HtiBtCommPlugin/HtiBtCommServer/inc/HtiBtClientServerCommon.h
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Global definitions for BtCommServer and client side interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __HTIBTCLIENTSERVERCOMMON_H__
       
    20 #define __HTIBTCLIENTSERVERCOMMON_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // The server name (and server thread name)
       
    28 _LIT( KBtCommServerName,"HtiBtCommServer" );
       
    29 
       
    30 // The version of the server
       
    31 const TUint KBtCommServerMajorVersionNumber = 1;
       
    32 const TUint KBtCommServerMinorVersionNumber = 0;
       
    33 const TUint KBtCommServerBuildVersionNumber = 0;
       
    34 
       
    35 const TInt KClientReceiveBufferMaxSize = 0x1000; // 4096 bytes
       
    36 const TInt KClientSendBufferMaxSize = 0x1000; // 4096 bytes
       
    37 
       
    38 
       
    39 // DATA TYPES
       
    40 
       
    41 // The message ID's of BtCommServer
       
    42 // from Symbian side
       
    43 enum TBtCommServerRqst
       
    44     {
       
    45     EBtCommServerConnect = 0,
       
    46     EBtCommServerRecv,
       
    47     EBtCommServerSend,
       
    48     ECancelBtCommServerRecv,
       
    49     ECancelBtCommServerSend,
       
    50     EGetServicePortNumber
       
    51     };
       
    52 
       
    53 
       
    54 // FUNCTION PROTOTYPES
       
    55 /**
       
    56 * Start HtiBtCommServer thread. This is called by client interface.
       
    57 */
       
    58 IMPORT_C TInt StartThread();
       
    59 
       
    60 #endif // __HTIBTCLIENTSERVERCOMMON_H__
       
    61 
       
    62 // End of File