|
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:37 (time stamp) |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @publishedPartner |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef SNIFFMODECOMMAND_H |
|
26 #define SNIFFMODECOMMAND_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 SniffMode HCI Command |
|
33 */ |
|
34 |
|
35 class CSniffModeCommand : public CHCICommandBase |
|
36 { |
|
37 public: |
|
38 // Construction |
|
39 IMPORT_C static CSniffModeCommand* NewL(THCIConnectionHandle aConnectionHandle, TUint16 aSniffMaxInterval, TUint16 aSniffMinInterval, TUint16 aSniffAttempt, TUint16 aSniffTimeout); |
|
40 IMPORT_C static CSniffModeCommand* NewL(); |
|
41 // Destructor |
|
42 ~CSniffModeCommand(); |
|
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, TUint16 aSniffMaxInterval, TUint16 aSniffMinInterval, TUint16 aSniffAttempt, TUint16 aSniffTimeout); |
|
49 |
|
50 // Accessor methods for the parameters of the command |
|
51 IMPORT_C THCIConnectionHandle ConnectionHandle() const; |
|
52 IMPORT_C TUint16 SniffMaxInterval() const; |
|
53 IMPORT_C TUint16 SniffMinInterval() const; |
|
54 IMPORT_C TUint16 SniffAttempt() const; |
|
55 IMPORT_C TUint16 SniffTimeout() const; |
|
56 |
|
57 // Extension function |
|
58 virtual TInt Extension_(TUint aExtensionId, TAny*& aInterface, TAny* aData); |
|
59 |
|
60 private: |
|
61 CSniffModeCommand(THCIConnectionHandle aConnectionHandle, TUint16 aSniffMaxInterval, TUint16 aSniffMinInterval, TUint16 aSniffAttempt, TUint16 aSniffTimeout); |
|
62 CSniffModeCommand(); |
|
63 |
|
64 // From CHCICommandBase - knows how to format the parameters of this specific command |
|
65 // into the HCTL frame |
|
66 virtual void Format(CHctlCommandFrame& aCommandFrame) const; |
|
67 |
|
68 private: |
|
69 THCIConnectionHandle iConnectionHandle; |
|
70 TUint16 iSniffMaxInterval; |
|
71 TUint16 iSniffMinInterval; |
|
72 TUint16 iSniffAttempt; |
|
73 TUint16 iSniffTimeout; |
|
74 |
|
75 }; |
|
76 |
|
77 #endif // SNIFFMODECOMMAND_H |