|
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 inline const TBTDevAddr& CPhysicalLink::BDAddr() const |
|
17 { |
|
18 return iDevice.Address(); |
|
19 } |
|
20 |
|
21 inline const TBTBasebandLinkState& CPhysicalLink::LinkState() const |
|
22 { |
|
23 return iLinkState; |
|
24 } |
|
25 |
|
26 inline TBool CPhysicalLink::IsConnected() const |
|
27 { |
|
28 return (iLinkState.LinkState() == TBTBasebandLinkState::ELinkUp); |
|
29 } |
|
30 |
|
31 inline THCIConnHandle CPhysicalLink::Handle() const |
|
32 { |
|
33 return iHandle; |
|
34 } |
|
35 |
|
36 inline TBTBasebandRole CPhysicalLink::Role() const |
|
37 { |
|
38 return iLinkState.LinkRole(); |
|
39 } |
|
40 |
|
41 inline TBool CPhysicalLink::IsParked() const |
|
42 { |
|
43 return (iLinkState.LinkMode() == EParkMode); |
|
44 } |
|
45 |
|
46 inline TBool CPhysicalLink::Authenticated() const |
|
47 { |
|
48 return iLinkState.Authenticated(); |
|
49 } |
|
50 |
|
51 inline TBool CPhysicalLink::Encrypted() const |
|
52 { |
|
53 return iLinkState.Encrypted(); |
|
54 } |
|
55 |
|
56 inline const TBTNamelessDevice& CPhysicalLink::RemoteDevice() const |
|
57 { |
|
58 return iDevice; |
|
59 } |
|
60 |
|
61 inline TBTLinkMode CPhysicalLink::LinkMode() const |
|
62 { |
|
63 return (iLinkState.LinkMode()); |
|
64 } |
|
65 |
|
66 inline const TLinkPolicy& CPhysicalLink::LinkPolicy() const |
|
67 { |
|
68 return iLinkPolicy; |
|
69 } |
|
70 |
|
71 inline const TBTDeviceClass& CPhysicalLink::DeviceClass() const |
|
72 { |
|
73 return iDevice.DeviceClass(); |
|
74 } |
|
75 |
|
76 inline const TBTFeatures& CPhysicalLink::RemoteFeatures() const |
|
77 { |
|
78 return iRemoteFeatures; |
|
79 } |
|
80 |
|
81 inline TBool CPhysicalLink::IsAuthenticationPending() const |
|
82 { |
|
83 return (iAuthStateMask != 0); |
|
84 } |