1.1 --- a/epoc32/include/driveinfo.inl Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/driveinfo.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,64 @@
1.4 -driveinfo.inl
1.5 +/*
1.6 +* Copyright (c) 2007 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: Interface for quering the drive information of the system.
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +// -----------------------------------------------------------------------------
1.25 +// DriveInfo::TDriveArray::TDriveArray
1.26 +// -----------------------------------------------------------------------------
1.27 +//
1.28 +inline DriveInfo::TDriveArray::TDriveArray()
1.29 + {
1.30 + }
1.31 +
1.32 +// -----------------------------------------------------------------------------
1.33 +// DriveInfo::TDriveArray::TDriveArray
1.34 +// -----------------------------------------------------------------------------
1.35 +//
1.36 +inline DriveInfo::TDriveArray::TDriveArray( const TDriveList& aDriveList )
1.37 + {
1.38 + Set( aDriveList );
1.39 + }
1.40 +
1.41 +// -----------------------------------------------------------------------------
1.42 +// DriveInfo::TDriveArray::Reset
1.43 +// -----------------------------------------------------------------------------
1.44 +//
1.45 +inline void DriveInfo::TDriveArray::Reset()
1.46 + {
1.47 + iArray.Zero();
1.48 + }
1.49 +
1.50 +// -----------------------------------------------------------------------------
1.51 +// DriveInfo::TDriveArray::Count
1.52 +// -----------------------------------------------------------------------------
1.53 +//
1.54 +inline TInt DriveInfo::TDriveArray::Count() const
1.55 + {
1.56 + return iArray.Length();
1.57 + }
1.58 +
1.59 +// -----------------------------------------------------------------------------
1.60 +// DriveInfo::TDriveArray::operator[]
1.61 +// -----------------------------------------------------------------------------
1.62 +//
1.63 +inline TDriveNumber DriveInfo::TDriveArray::operator[]( TInt aIndex ) const
1.64 + {
1.65 + return static_cast< TDriveNumber >( iArray[ aIndex ] );
1.66 + }
1.67 +
1.68 +// End of File