|
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 Tue, 20 Feb 2007 10:27:14 (time stamp) |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @publishedPartner |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef QOSSETUPCOMMAND_H |
|
26 #define QOSSETUPCOMMAND_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 QOSSetup HCI Command |
|
33 */ |
|
34 |
|
35 class CQOSSetupCommand : public CHCICommandBase |
|
36 { |
|
37 public: |
|
38 // Construction |
|
39 IMPORT_C static CQOSSetupCommand* NewL(THCIConnectionHandle aConnectionHandle, TUint8 aFlags, TUint8 aServiceType, TUint32 aTokenRate, TUint32 aPeakBandwidth, TUint32 aLatency, TUint32 aDelayVariation); |
|
40 IMPORT_C static CQOSSetupCommand* NewL(); |
|
41 // Destructor |
|
42 ~CQOSSetupCommand(); |
|
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, TUint8 aFlags, TUint8 aServiceType, TUint32 aTokenRate, TUint32 aPeakBandwidth, TUint32 aLatency, TUint32 aDelayVariation); |
|
49 |
|
50 // Accessor methods for the parameters of the command |
|
51 IMPORT_C THCIConnectionHandle ConnectionHandle() const; |
|
52 IMPORT_C TUint8 Flags() const; |
|
53 IMPORT_C TUint8 ServiceType() const; |
|
54 IMPORT_C TUint32 TokenRate() const; |
|
55 IMPORT_C TUint32 PeakBandwidth() const; |
|
56 IMPORT_C TUint32 Latency() const; |
|
57 IMPORT_C TUint32 DelayVariation() const; |
|
58 |
|
59 // Extension function |
|
60 virtual TInt Extension_(TUint aExtensionId, TAny*& aInterface, TAny* aData); |
|
61 |
|
62 private: |
|
63 CQOSSetupCommand(THCIConnectionHandle aConnectionHandle, TUint8 aFlags, TUint8 aServiceType, TUint32 aTokenRate, TUint32 aPeakBandwidth, TUint32 aLatency, TUint32 aDelayVariation); |
|
64 CQOSSetupCommand(); |
|
65 |
|
66 // From CHCICommandBase - knows how to format the parameters of this specific command |
|
67 // into the HCTL frame |
|
68 virtual void Format(CHctlCommandFrame& aCommandFrame) const; |
|
69 |
|
70 private: |
|
71 THCIConnectionHandle iConnectionHandle; |
|
72 TUint8 iFlags; |
|
73 TUint8 iServiceType; |
|
74 TUint32 iTokenRate; |
|
75 TUint32 iPeakBandwidth; |
|
76 TUint32 iLatency; |
|
77 TUint32 iDelayVariation; |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // QOSSETUPCOMMAND_H |