2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Inline functions to access CAccMonitorInfo
19 // -----------------------------------------------------------------------------
20 // CAccMonitorInfo::Reset
21 // Other items commented in header.
22 // -----------------------------------------------------------------------------
24 inline void CAccMonitorInfo::Reset()
26 iAccCapabilityArray.Reset();
27 iAccessoryDeviceType = 0;
28 iAccessoryPhysicalConnection = 0;
35 // -----------------------------------------------------------------------------
36 // CAccMonitorInfo::AccDeviceType
37 // Other items commented in header.
38 // -----------------------------------------------------------------------------
40 inline TAccMonCapability CAccMonitorInfo::AccDeviceType() const
42 return iAccessoryDeviceType;
45 // -----------------------------------------------------------------------------
46 // CAccMonitorInfo::AccPhysicalConnection
47 // Other items commented in header.
48 // -----------------------------------------------------------------------------
50 inline TAccMonCapability CAccMonitorInfo::AccPhysicalConnection() const
52 return iAccessoryPhysicalConnection;
55 // -----------------------------------------------------------------------------
56 // CAccMonitorInfo::AccDeviceAddress
57 // Other items commented in header.
58 // -----------------------------------------------------------------------------
60 inline TUint64 CAccMonitorInfo::AccDeviceAddress() const
62 return iDeviceAddress;
65 // -----------------------------------------------------------------------------
66 // CAccMonitorInfo::AccCapabilityAtIndex
67 // Other items commented in header.
68 // -----------------------------------------------------------------------------
70 inline TAccMonCapability CAccMonitorInfo::AccCapabilityAtIndex( TInt aIndex ) const
72 return iAccCapabilityArray[ aIndex ];
75 // -----------------------------------------------------------------------------
76 // CAccMonitorInfo::Count
77 // Other items commented in header.
78 // -----------------------------------------------------------------------------
80 inline TInt CAccMonitorInfo::Count() const
82 return iAccCapabilityArray.Count();
85 // -----------------------------------------------------------------------------
86 // CAccMonitorInfo::Exists
87 // Other items commented in header.
88 // -----------------------------------------------------------------------------
90 inline TBool CAccMonitorInfo::Exists( TAccMonCapability aCapability ) const
92 TBool retValue( ETrue );
93 if( iAccCapabilityArray.Find( aCapability ) != KErrNotFound )