epoc32/include/accmonitorinfo.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/accmonitorinfo.inl	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/accmonitorinfo.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,104 @@
     1.4 -accmonitorinfo.inl
     1.5 +/*
     1.6 +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  Inline functions to access CAccMonitorInfo
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +// -----------------------------------------------------------------------------
    1.24 +// CAccMonitorInfo::Reset
    1.25 +// Other items commented in header.
    1.26 +// -----------------------------------------------------------------------------
    1.27 +//
    1.28 +inline void CAccMonitorInfo::Reset()
    1.29 +    {
    1.30 +    iAccCapabilityArray.Reset();
    1.31 +    iAccessoryDeviceType = 0;
    1.32 +    iAccessoryPhysicalConnection = 0;
    1.33 +    iDeviceAddress = 0;
    1.34 +    iAccessoryID = 0;
    1.35 +    iReserved1 = 0;
    1.36 +    iReserved2 = 0;
    1.37 +    }
    1.38 +
    1.39 +// -----------------------------------------------------------------------------
    1.40 +// CAccMonitorInfo::AccDeviceType
    1.41 +// Other items commented in header.
    1.42 +// -----------------------------------------------------------------------------
    1.43 +//
    1.44 +inline TAccMonCapability CAccMonitorInfo::AccDeviceType() const 
    1.45 +    {
    1.46 +    return iAccessoryDeviceType;
    1.47 +    }
    1.48 +
    1.49 +// -----------------------------------------------------------------------------
    1.50 +// CAccMonitorInfo::AccPhysicalConnection
    1.51 +// Other items commented in header.
    1.52 +// -----------------------------------------------------------------------------
    1.53 +//
    1.54 +inline TAccMonCapability CAccMonitorInfo::AccPhysicalConnection() const 
    1.55 +    {
    1.56 +    return iAccessoryPhysicalConnection;
    1.57 +    }
    1.58 +
    1.59 +// -----------------------------------------------------------------------------
    1.60 +// CAccMonitorInfo::AccDeviceAddress
    1.61 +// Other items commented in header.
    1.62 +// -----------------------------------------------------------------------------
    1.63 +//
    1.64 +inline TUint64 CAccMonitorInfo::AccDeviceAddress() const 
    1.65 +    {
    1.66 +    return iDeviceAddress;
    1.67 +    }
    1.68 +
    1.69 +// -----------------------------------------------------------------------------
    1.70 +// CAccMonitorInfo::AccCapabilityAtIndex
    1.71 +// Other items commented in header.
    1.72 +// -----------------------------------------------------------------------------
    1.73 +//
    1.74 +inline TAccMonCapability CAccMonitorInfo::AccCapabilityAtIndex( TInt aIndex ) const 
    1.75 +    {
    1.76 +    return iAccCapabilityArray[ aIndex ]; 
    1.77 +    }
    1.78 +
    1.79 +// -----------------------------------------------------------------------------
    1.80 +// CAccMonitorInfo::Count
    1.81 +// Other items commented in header.
    1.82 +// -----------------------------------------------------------------------------
    1.83 +//
    1.84 +inline TInt CAccMonitorInfo::Count() const 
    1.85 +    {
    1.86 +    return iAccCapabilityArray.Count();
    1.87 +    }
    1.88 +
    1.89 +// -----------------------------------------------------------------------------
    1.90 +// CAccMonitorInfo::Exists
    1.91 +// Other items commented in header.
    1.92 +// -----------------------------------------------------------------------------
    1.93 +//
    1.94 +inline TBool CAccMonitorInfo::Exists( TAccMonCapability aCapability ) const 
    1.95 +    {
    1.96 +    TBool retValue( ETrue );
    1.97 +    if( iAccCapabilityArray.Find( aCapability ) != KErrNotFound )
    1.98 +        { 
    1.99 +        retValue = ETrue;
   1.100 +        }
   1.101 +    else
   1.102 +        {
   1.103 +        retValue = EFalse;  
   1.104 +        }
   1.105 +    return retValue;
   1.106 +    }
   1.107 +
   1.108 +//End of file