epoc32/include/accmonitorinfo.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 accmonitorinfo.inl
     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 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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Inline functions to access CAccMonitorInfo
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // CAccMonitorInfo::Reset
       
    21 // Other items commented in header.
       
    22 // -----------------------------------------------------------------------------
       
    23 //
       
    24 inline void CAccMonitorInfo::Reset()
       
    25     {
       
    26     iAccCapabilityArray.Reset();
       
    27     iAccessoryDeviceType = 0;
       
    28     iAccessoryPhysicalConnection = 0;
       
    29     iDeviceAddress = 0;
       
    30     iAccessoryID = 0;
       
    31     iReserved1 = 0;
       
    32     iReserved2 = 0;
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // CAccMonitorInfo::AccDeviceType
       
    37 // Other items commented in header.
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 inline TAccMonCapability CAccMonitorInfo::AccDeviceType() const 
       
    41     {
       
    42     return iAccessoryDeviceType;
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CAccMonitorInfo::AccPhysicalConnection
       
    47 // Other items commented in header.
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 inline TAccMonCapability CAccMonitorInfo::AccPhysicalConnection() const 
       
    51     {
       
    52     return iAccessoryPhysicalConnection;
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // CAccMonitorInfo::AccDeviceAddress
       
    57 // Other items commented in header.
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 inline TUint64 CAccMonitorInfo::AccDeviceAddress() const 
       
    61     {
       
    62     return iDeviceAddress;
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CAccMonitorInfo::AccCapabilityAtIndex
       
    67 // Other items commented in header.
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 inline TAccMonCapability CAccMonitorInfo::AccCapabilityAtIndex( TInt aIndex ) const 
       
    71     {
       
    72     return iAccCapabilityArray[ aIndex ]; 
       
    73     }
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CAccMonitorInfo::Count
       
    77 // Other items commented in header.
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 inline TInt CAccMonitorInfo::Count() const 
       
    81     {
       
    82     return iAccCapabilityArray.Count();
       
    83     }
       
    84 
       
    85 // -----------------------------------------------------------------------------
       
    86 // CAccMonitorInfo::Exists
       
    87 // Other items commented in header.
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 inline TBool CAccMonitorInfo::Exists( TAccMonCapability aCapability ) const 
       
    91     {
       
    92     TBool retValue( ETrue );
       
    93     if( iAccCapabilityArray.Find( aCapability ) != KErrNotFound )
       
    94         { 
       
    95         retValue = ETrue;
       
    96         }
       
    97     else
       
    98         {
       
    99         retValue = EFalse;  
       
   100         }
       
   101     return retValue;
       
   102     }
       
   103 
       
   104 //End of file