|
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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @publishedPartner |
|
19 @released |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef VENDORDEBUGEVENT_H |
|
24 #define VENDORDEBUGEVENT_H |
|
25 |
|
26 #include <bluetooth/hci/event.h> |
|
27 |
|
28 class TVendorDebugEvent : public THCIEventBase |
|
29 { |
|
30 public: |
|
31 /** |
|
32 Constructor for creating an event object to wrap existing event data |
|
33 @param aEventData the existing event data |
|
34 */ |
|
35 IMPORT_C TVendorDebugEvent(const TDesC8& aEventData); |
|
36 /** |
|
37 Constructor for faking a Vendor Debug event |
|
38 @param aEventCode the event code for the event |
|
39 @param aEventPayload the vendor-defined data content of the event |
|
40 @param aEventData buffer where the faked event data will be constructed (must persist as long as the object) |
|
41 */ |
|
42 IMPORT_C TVendorDebugEvent(THCIEventCode aEventCode, const TDesC8& aEventPayload, |
|
43 TDes8& aEventData); |
|
44 |
|
45 /** |
|
46 Static downcasting method |
|
47 */ |
|
48 IMPORT_C static TVendorDebugEvent& Cast(const THCIEventBase& aEvent); |
|
49 /** |
|
50 Accessor method returning the vendor-defined payload of the event |
|
51 */ |
|
52 IMPORT_C TPtrC8 VendorDebugData() const; |
|
53 /** |
|
54 Accessor method returning the whole of the event data including the event code and parameter total length fields |
|
55 */ |
|
56 IMPORT_C TPtrC8 VendorDebugEvent() const; |
|
57 }; |
|
58 |
|
59 #endif // VENDORDEBUGEVENT_H |