|
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 // This file was generated automatically from the template eventheader.tmpl |
|
15 // on Wed, 25 Jul 2007 17:00:41 (time stamp) |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @publishedPartner |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef SYNCHRONOUSCONNECTIONCOMPLETEEVENT_H |
|
26 #define SYNCHRONOUSCONNECTIONCOMPLETEEVENT_H |
|
27 |
|
28 #include <bluetooth/hci/event.h> |
|
29 |
|
30 /** |
|
31 This class represents the SynchronousConnectionComplete HCI Event |
|
32 */ |
|
33 class TSynchronousConnectionCompleteEvent : public THCIEventBase |
|
34 { |
|
35 public: |
|
36 // Construct an event object to wrap existing event data received from the Controller |
|
37 IMPORT_C TSynchronousConnectionCompleteEvent(const TDesC8& aEventData); |
|
38 // Construct a faked event, storing the supplied event parameters into the supplied empty event data buffer. |
|
39 IMPORT_C TSynchronousConnectionCompleteEvent(THCIErrorCode aStatus, THCIConnectionHandle aConnectionHandle, const TBTDevAddr& aBDADDR, TUint8 aLinkType, TUint8 aTransmissionInterval, TUint8 aRetransmissionWindow, TUint16 aRxPacket_Length, TUint16 aTxPacket_Length, TUint8 aAirMode, TDes8& aEventData); |
|
40 // Destructor |
|
41 IMPORT_C ~TSynchronousConnectionCompleteEvent(); |
|
42 |
|
43 // The static Cast method is used to obtain a pointer to the derived class object |
|
44 IMPORT_C static TSynchronousConnectionCompleteEvent& Cast(const THCIEventBase& aEvent); |
|
45 |
|
46 // Accessor methods for the parameters of the event |
|
47 IMPORT_C THCIConnectionHandle ConnectionHandle() const; |
|
48 IMPORT_C TBTDevAddr BDADDR() const; |
|
49 IMPORT_C TUint8 LinkType() const; |
|
50 IMPORT_C TUint8 TransmissionInterval() const; |
|
51 IMPORT_C TUint8 RetransmissionWindow() const; |
|
52 IMPORT_C TUint16 RxPacket_Length() const; |
|
53 IMPORT_C TUint16 TxPacket_Length() const; |
|
54 IMPORT_C TUint8 AirMode() const; |
|
55 |
|
56 }; |
|
57 |
|
58 #endif // SYNCHRONOUSCONNECTIONCOMPLETEEVENT_H |