|
1 // Copyright (c) 2003-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 _MBTHOSTCONTROLEREVENTINTERNALNOTIFIER_H_ |
|
17 #define _MBTHOSTCONTROLEREVENTINTERNALNOTIFIER_H_ |
|
18 |
|
19 // provides the conduit for propagating events through the SAPs and the ConnectionsManager |
|
20 // the methods are void, non-leaving to encourage the fact that the HCIFacade will not |
|
21 // have implementation of policy |
|
22 // it is up to the notifiees to instruct the HCIFacade to issue commands (or not) |
|
23 // in case of an error |
|
24 |
|
25 #include <bttypes.h> |
|
26 #include <btdevice.h> |
|
27 #include <bluetooth/hci/hcierrors.h> |
|
28 #include <bluetooth/hci/hcitypes.h> |
|
29 |
|
30 class MPINCodeResponseHandler; |
|
31 class MLinkKeyResponseHandler; |
|
32 class MIOCapabilityResponseHandler; |
|
33 class MNumericComparisonResponseHandler; |
|
34 class MPasskeyResponseHandler; |
|
35 class MOOBDataResponseHandler; |
|
36 class TBTDevAddr; |
|
37 class TBTFeatures; |
|
38 class TBTConnect; |
|
39 |
|
40 class MBtHostControllerEventInternalNotifier |
|
41 { |
|
42 public: |
|
43 virtual void ConnectionComplete(THCIErrorCode /*aErr*/, const TBTConnect& /*aConn*/) {}; |
|
44 virtual void ConnectionRequest(const TBTConnect& /*aConn*/) {}; |
|
45 virtual void Disconnection(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/, THCIErrorCode /*aResult*/) {}; |
|
46 virtual void CompletedPackets(THCIConnHandle /*aConnH*/, TUint16 /*aNumPackets*/) {}; |
|
47 virtual void AuthenticationComplete(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/) {}; |
|
48 virtual void EncryptionChange(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/, TBool /*aEncrypted*/) {}; |
|
49 virtual void ACLDataReceived(THCIConnHandle /*aConnH*/, TUint8 /*aFlag*/, const TDesC8& /*aData*/) {}; |
|
50 virtual void SCODataReceived(THCIConnHandle /*aConnH*/, const TDesC8& /*aData*/) {}; |
|
51 |
|
52 virtual void PinRequest(const TBTDevAddr& /*aBDAddr*/, MPINCodeResponseHandler& /*aRequester*/) {}; |
|
53 virtual void NewLinkKey(const TBTDevAddr& /*aBDAddr*/, const TBTLinkKey& /*aLinkKey*/, THCILinkKeyType /* aLinkKeyType */) {}; |
|
54 virtual void LinkKeyRequest(const TBTDevAddr& /*aBDAddr*/, MLinkKeyResponseHandler& /*aRequester*/) {}; |
|
55 |
|
56 virtual void ReadRemoteVersionInfoComplete(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/, const TBTDevRemoteHwVersion& /*aVer*/) {}; |
|
57 virtual void ReadRemoteSupportedFeaturesComplete(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/, const TBTFeatures& /*aBitMask*/) {}; |
|
58 virtual void ReadRemoteExtendedFeaturesComplete(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/, TUint64 /*aBitMask*/, TUint8 /* aPageNumber */, TUint8 /* aMaximimPageNumber */) {}; |
|
59 virtual void PacketTypeChange(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/, TUint16 /*aNewPacket*/) {}; |
|
60 virtual void MaxSlotsChange(THCIConnHandle /*aConnH*/, TUint8 /*aSlots*/) {}; |
|
61 |
|
62 virtual void ModeChange(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/, TBTLinkMode /*aMode*/, TBasebandTime /*aInterval*/) {}; |
|
63 virtual void RoleChange(THCIErrorCode /*aErr*/, const TBTDevAddr& /*aAddr*/, TBTBasebandRole /*aRole*/) {}; |
|
64 virtual void WriteLinkPolicySettingsCompleteEvent(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/) {}; |
|
65 |
|
66 virtual void ClockOffset(THCIErrorCode /*aErr*/, THCIConnHandle /*aConnH*/, TBasebandTime /*aClockOffset*/) {}; |
|
67 virtual void RemoteName(THCIErrorCode /*aErr*/, const TBTDevAddr& /*aAddr*/, const TBTDeviceName8& /*aName*/) {}; |
|
68 |
|
69 virtual void SimplePairingComplete(const TBTDevAddr& /*aBDAddr*/, THCIErrorCode /*aErr*/) {}; |
|
70 }; |
|
71 |
|
72 #endif //_MBTHOSTCONTROLEREVENTINTERNALNOTIFIER_H_ |