bthci/bthci2/hciserverclient/interface/hciserverclient.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef HCISERVERCLIENT_H
       
    22 #define HCISERVERCLIENT_H
       
    23 
       
    24 #include <es_sock.h>
       
    25 #include <e32base.h>
       
    26 
       
    27 /**
       
    28 Class to be used to transfer requests from a Bluetooth client
       
    29 to the HCI using the client server mechanism to bypass Esock and the
       
    30 Bluetooth stack.
       
    31 */
       
    32 class RHCIServerSession : public RSessionBase
       
    33 	{
       
    34 public:
       
    35 	IMPORT_C RHCIServerSession();
       
    36 
       
    37 	IMPORT_C TInt Open(TInt aInterfaceUid);
       
    38 	IMPORT_C TInt SendSync(TUint aCommand);
       
    39 	IMPORT_C void SendAsync(TUint aCommand, TRequestStatus &aStatus);
       
    40 	IMPORT_C TInt SendSync(TUint aCommand, TDes8* aDescIn, TDes8* aDescOut, TUint aValue);
       
    41 	IMPORT_C void SendAsync(TUint aCommand, TDes8* aDescIn, TDes8* aDescOut, TUint aValue, TRequestStatus &aStatus);
       
    42 	IMPORT_C void Close();
       
    43 
       
    44 private:
       
    45 	void OpenL(TInt aInterfaceUid);
       
    46 
       
    47 private:
       
    48 	RSocketServ	iSocketServer;
       
    49 	};
       
    50 
       
    51 #endif // HCISERVERCLIENT_H											   
       
    52