epoc32/include/driveinfo.inl
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 2007 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:  Interface for quering the drive information of the system.
    15 *
    16 */
    17 
    18 
    19 
    20 // -----------------------------------------------------------------------------
    21 // DriveInfo::TDriveArray::TDriveArray
    22 // -----------------------------------------------------------------------------
    23 //
    24 inline DriveInfo::TDriveArray::TDriveArray()
    25     {
    26     }
    27 
    28 // -----------------------------------------------------------------------------
    29 // DriveInfo::TDriveArray::TDriveArray
    30 // -----------------------------------------------------------------------------
    31 //
    32 inline DriveInfo::TDriveArray::TDriveArray( const TDriveList& aDriveList )
    33     {
    34     Set( aDriveList );
    35     }
    36 
    37 // -----------------------------------------------------------------------------
    38 // DriveInfo::TDriveArray::Reset
    39 // -----------------------------------------------------------------------------
    40 //
    41 inline void DriveInfo::TDriveArray::Reset()
    42     {
    43     iArray.Zero();
    44     }
    45 
    46 // -----------------------------------------------------------------------------
    47 // DriveInfo::TDriveArray::Count
    48 // -----------------------------------------------------------------------------
    49 //
    50 inline TInt DriveInfo::TDriveArray::Count() const
    51     {
    52     return iArray.Length();
    53     }
    54 
    55 // -----------------------------------------------------------------------------
    56 // DriveInfo::TDriveArray::operator[]
    57 // -----------------------------------------------------------------------------
    58 //
    59 inline TDriveNumber DriveInfo::TDriveArray::operator[]( TInt aIndex ) const
    60     {
    61     return static_cast< TDriveNumber >( iArray[ aIndex ] );
    62     }
    63 
    64 // End of File