bluetooth/btstack/secman/SecManNotifiers.h
changeset 0 29b1cd4cb562
child 32 f72906e669b4
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2005-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 #ifndef _SECMANNOTIFIERS_H
       
    17 #define _SECMANNOTIFIERS_H
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class TBTDevAddr;
       
    22 
       
    23 
       
    24 class MAccessRequestResponseHandler
       
    25 	{
       
    26 public:
       
    27 	virtual void AccessRequestComplete(TInt aResult)=0;
       
    28 	};
       
    29 
       
    30 /**
       
    31 Interface for a class that can handle PIN commands (HCI Facade typically)
       
    32 **/
       
    33 class MPINCodeResponseHandler
       
    34 	{
       
    35 public:
       
    36 	virtual TInt PINCodeRequestReply(const TBTDevAddr& aBdaddr,const TDesC8& aPIN) const =0;
       
    37 	virtual TInt PINCodeRequestNegativeReply(const TBTDevAddr& aBdaddr) const =0;
       
    38 	};
       
    39 
       
    40 /**
       
    41 Interface for a class that can handle link key commands(HCI Facade typically)
       
    42 **/
       
    43 class MLinkKeyResponseHandler
       
    44 	{
       
    45 public:
       
    46 	virtual TInt LinkKeyRequestReply(const TBTDevAddr& aBdaddr,const TDesC8& aLinkKey) const =0;
       
    47 	virtual TInt LinkKeyRequestNegativeReply(const TBTDevAddr& aBdaddr) const =0;
       
    48 	};
       
    49 
       
    50 /**
       
    51 Interface for a class that can handle passkey commands(HCI Facade typically)
       
    52 **/
       
    53 class MIOCapabilityResponseHandler
       
    54 	{
       
    55 public:
       
    56 	virtual TInt IOCapabilityRequestReply(const TBTDevAddr& aBDADDR, TUint8 aIOCapability, TUint8 aOOBDataPresent, TUint8 aAuthenticationRequirements) const =0;
       
    57 	virtual TInt IOCapabilityRequestNegativeReply(const TBTDevAddr& aBDADDR, TUint8 aReason) const =0;
       
    58 	};
       
    59 
       
    60 /**
       
    61 Interface for a class that can handle passkey commands(HCI Facade typically)
       
    62 **/
       
    63 class MPasskeyResponseHandler
       
    64 	{
       
    65 public:
       
    66 	virtual TInt UserPasskeyRequestReply(const TBTDevAddr& aBDADDR, TUint32 aNumericValue) const =0;
       
    67 	virtual TInt UserPasskeyRequestNegativeReply(const TBTDevAddr& aBdaddr) const =0;
       
    68 	};
       
    69 
       
    70 /**
       
    71 Interface for a class that can handle OOB data commands(HCI Facade typically)
       
    72 **/
       
    73 class MOOBDataResponseHandler
       
    74 	{
       
    75 public:
       
    76 	virtual TInt RemoteOOBDataRequestReply(const TBTDevAddr& aBDADDR, const TBluetoothSimplePairingHash& aC, const TBluetoothSimplePairingRandomizer& aR) const =0;
       
    77 	virtual TInt RemoteOOBDataRequestNegativeReply(const TBTDevAddr& aBDADDR) const =0;
       
    78 	};
       
    79 
       
    80 /**
       
    81 Interface for a class that can handle numeric comparison confirmation commands(HCI Facade typically)
       
    82 **/
       
    83 class MNumericComparisonResponseHandler
       
    84 	{
       
    85 public:
       
    86 	virtual TInt UserConfirmationRequestReply(const TBTDevAddr& aBDADDR) const =0;
       
    87 	virtual TInt UserConfirmationRequestNegativeReply(const TBTDevAddr& aBDADDR) const =0;
       
    88 	};
       
    89 
       
    90 #endif //_SECMANNOTIFIERS_H