|
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:40 (time stamp) |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @publishedPartner |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef INQUIRYCOMMAND_H |
|
26 #define INQUIRYCOMMAND_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 Inquiry HCI Command |
|
33 */ |
|
34 |
|
35 class CInquiryCommand : public CHCICommandBase |
|
36 { |
|
37 public: |
|
38 // Construction |
|
39 IMPORT_C static CInquiryCommand* NewL(TUint32 aLAP, TUint8 aInquiryLength, TUint8 aNumResponses); |
|
40 IMPORT_C static CInquiryCommand* NewL(); |
|
41 // Destructor |
|
42 ~CInquiryCommand(); |
|
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(TUint32 aLAP, TUint8 aInquiryLength, TUint8 aNumResponses); |
|
49 |
|
50 // Accessor methods for the parameters of the command |
|
51 IMPORT_C TUint32 LAP() const; |
|
52 IMPORT_C TUint8 InquiryLength() const; |
|
53 IMPORT_C TUint8 NumResponses() const; |
|
54 |
|
55 // Extension function |
|
56 virtual TInt Extension_(TUint aExtensionId, TAny*& aInterface, TAny* aData); |
|
57 |
|
58 private: |
|
59 CInquiryCommand(TUint32 aLAP, TUint8 aInquiryLength, TUint8 aNumResponses); |
|
60 CInquiryCommand(); |
|
61 |
|
62 // From CHCICommandBase - knows how to format the parameters of this specific command |
|
63 // into the HCTL frame |
|
64 virtual void Format(CHctlCommandFrame& aCommandFrame) const; |
|
65 |
|
66 private: |
|
67 TUint32 iLAP; |
|
68 TUint8 iInquiryLength; |
|
69 TUint8 iNumResponses; |
|
70 |
|
71 }; |
|
72 |
|
73 #endif // INQUIRYCOMMAND_H |