|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Inline definitions of methods forwarded to RBTEng. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // ----------------------------------------------------------------------------- |
|
21 // ?implementation_description |
|
22 // ----------------------------------------------------------------------------- |
|
23 // |
|
24 inline TInt CBTEngConnHandler::ConnectDevice( const TBTDevAddr& aAddr, |
|
25 const TBTDeviceClass& aDeviceClass ) |
|
26 { |
|
27 return iBTEng.ConnectDevice( aAddr, aDeviceClass ); |
|
28 } |
|
29 |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // ?implementation_description |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 inline TInt CBTEngConnHandler::CancelConnectDevice( const TBTDevAddr& aAddr ) |
|
36 { |
|
37 return iBTEng.CancelConnectDevice( aAddr ); |
|
38 } |
|
39 |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // ?implementation_description |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 inline TInt CBTEngConnHandler::DisconnectDevice( const TBTDevAddr& aAddr, |
|
46 TBTDisconnectType aDiscType ) |
|
47 { |
|
48 return iBTEng.DisconnectDevice( aAddr, aDiscType ); |
|
49 } |
|
50 |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // ?implementation_description |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 inline TInt CBTEngConnHandler::IsDeviceConnected( const TBTDevAddr& aAddr, |
|
57 TBTEngConnectionStatus& aConnected ) |
|
58 { |
|
59 return iBTEng.IsDeviceConnected( aAddr, aConnected ); |
|
60 } |
|
61 |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // ?implementation_description |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 inline TInt CBTEngConnHandler::IsDeviceConnectable( |
|
68 const TBTDeviceClass& aDeviceClass, TBool& aConnectable ) |
|
69 { |
|
70 return iBTEng.IsDeviceConnectable(TBTDevAddr(), aDeviceClass, aConnectable ); |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // ?implementation_description |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 inline TInt CBTEngConnHandler::IsDeviceConnectable( const TBTDevAddr& aAddr, |
|
78 const TBTDeviceClass& aDeviceClass, TBool& aConnectable ) |
|
79 { |
|
80 return iBTEng.IsDeviceConnectable( aAddr, aDeviceClass, aConnectable ); |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // ?implementation_description |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 inline TInt CBTEngConnHandler::PrepareDiscovery() |
|
88 { |
|
89 return iBTEng.PrepareDiscovery(); |
|
90 } |