|
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 commandheader.tmpl |
|
15 // on Wed, 25 Jul 2007 17:00:38 (time stamp) |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @publishedPartner |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef SETUPSYNCHRONOUSCONNECTIONCOMMAND_H |
|
26 #define SETUPSYNCHRONOUSCONNECTIONCOMMAND_H |
|
27 |
|
28 #include <bluetooth/hci/command.h> |
|
29 #include <bluetooth/hci/hcitypes.h> // in case the generated class uses Bluetooth types |
|
30 |
|
31 /** |
|
32 This class represents the SetupSynchronousConnection HCI Command |
|
33 */ |
|
34 |
|
35 class CSetupSynchronousConnectionCommand : public CHCICommandBase |
|
36 { |
|
37 public: |
|
38 // Construction |
|
39 IMPORT_C static CSetupSynchronousConnectionCommand* NewL(THCIConnectionHandle aConnectionHandle, TUint32 aTransmitBandwidth, TUint32 aReceiveBandwidth, TUint16 aMaxLatency, TUint16 aVoiceSetting, TUint8 aRetransmissionEffort, TUint16 aPacketType, const TBTDevAddr& aBDADDR); |
|
40 IMPORT_C static CSetupSynchronousConnectionCommand* NewL(); |
|
41 // Destructor |
|
42 ~CSetupSynchronousConnectionCommand(); |
|
43 |
|
44 virtual void Match(const THCIEventBase& aEvent, TBool& aMatchesCmd, TBool& aConcludesCmd, TBool& aContinueMatching) const; |
|
45 |
|
46 |
|
47 // Assign new values to the parameters of this command |
|
48 IMPORT_C void Reset(THCIConnectionHandle aConnectionHandle, TUint32 aTransmitBandwidth, TUint32 aReceiveBandwidth, TUint16 aMaxLatency, TUint16 aVoiceSetting, TUint8 aRetransmissionEffort, TUint16 aPacketType, const TBTDevAddr& aBDADDR); |
|
49 |
|
50 // Accessor methods for the parameters of the command |
|
51 IMPORT_C THCIConnectionHandle ConnectionHandle() const; |
|
52 IMPORT_C TUint32 TransmitBandwidth() const; |
|
53 IMPORT_C TUint32 ReceiveBandwidth() const; |
|
54 IMPORT_C TUint16 MaxLatency() const; |
|
55 IMPORT_C TUint16 VoiceSetting() const; |
|
56 IMPORT_C TUint8 RetransmissionEffort() const; |
|
57 IMPORT_C TUint16 PacketType() const; |
|
58 IMPORT_C TBTDevAddr BDADDR() const; |
|
59 |
|
60 // Extension function |
|
61 virtual TInt Extension_(TUint aExtensionId, TAny*& aInterface, TAny* aData); |
|
62 |
|
63 private: |
|
64 CSetupSynchronousConnectionCommand(THCIConnectionHandle aConnectionHandle, TUint32 aTransmitBandwidth, TUint32 aReceiveBandwidth, TUint16 aMaxLatency, TUint16 aVoiceSetting, TUint8 aRetransmissionEffort, TUint16 aPacketType, const TBTDevAddr& aBDADDR); |
|
65 CSetupSynchronousConnectionCommand(); |
|
66 |
|
67 // From CHCICommandBase - knows how to format the parameters of this specific command |
|
68 // into the HCTL frame |
|
69 virtual void Format(CHctlCommandFrame& aCommandFrame) const; |
|
70 |
|
71 private: |
|
72 THCIConnectionHandle iConnectionHandle; |
|
73 TUint32 iTransmitBandwidth; |
|
74 TUint32 iReceiveBandwidth; |
|
75 TUint16 iMaxLatency; |
|
76 TUint16 iVoiceSetting; |
|
77 TUint8 iRetransmissionEffort; |
|
78 TUint16 iPacketType; |
|
79 TBTDevAddr iBDADDR; |
|
80 |
|
81 }; |
|
82 |
|
83 #endif // SETUPSYNCHRONOUSCONNECTIONCOMMAND_H |