equal
deleted
inserted
replaced
|
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 */ |
|
20 |
|
21 #ifndef BTBUSDEVCOMM_H |
|
22 #define BTBUSDEVCOMM_H |
|
23 |
|
24 #include <d32comm.h> |
|
25 |
|
26 class RBtBusDevComm : public RBusDevComm |
|
27 { |
|
28 public: |
|
29 inline TInt Open(TInt aUnit); // override |
|
30 }; |
|
31 |
|
32 /** |
|
33 This is an override of the standard (non-virtual) RBusDevComm::Open(TInt). Its |
|
34 purpose is to open with a thread-relative handle instead |
|
35 of a process-relative one. This will allow the stack to recover from |
|
36 a Panic, as the handle will be cleared up now when the thread dies. |
|
37 */ |
|
38 inline TInt RBtBusDevComm::Open(TInt aUnit) |
|
39 {return(DoCreate(KRBusDevComm,VersionRequired(),aUnit,NULL,NULL,EOwnerThread));} |
|
40 |
|
41 #endif //BTBUSDEVCOMM_H |