DriveInfo::TDriveArray Class Reference

API published in: S60 3rd Ed FP 2

Link against: platformenv.lib

Capability Information

Required Capabilities

None


#include <
driveinfo.h>

Detailed Description

Class
TDriveArray provides easy-to-use access to drive identifiers.

Public Member Functions

 TDriveArray ()
 TDriveArray (const TDriveList &aDriveList)
IMPORT_C void Set (const TDriveList &aDriveList)
 This method sets the drive array data from given drive list.
void Reset ()
 This method resets the array.
TInt Count () const
 This method gets the number of drives in the array.
TDriveNumber operator[] (TInt aIndex) const
 This method gets the drive identifier at given index within the array.
IMPORT_C TChar LetterAt (TInt aIndex) const
 This method gets the drive letter at given index within the array.

Constructor & Destructor Documentation

DriveInfo::TDriveArray::TDriveArray  )  [inline]
 
DriveInfo::TDriveArray::TDriveArray const TDriveList &  aDriveList  )  [inline]
 

Member Function Documentation

TInt DriveInfo::TDriveArray::Count  )  const [inline]
 

This method gets the number of drives in the array.

Since:
3.2
Returns:
A number of drives in the array.
IMPORT_C TChar DriveInfo::TDriveArray::LetterAt TInt  aIndex  )  const
 

This method gets the drive letter at given index within the array.

Since:
3.2
Parameters:
aIndex The position of drive within the array.
Returns:
A drive letter.
Panic:
USER 21 if aIndex is negative or is greater than the number of drives in the array
TDriveNumber DriveInfo::TDriveArray::operator[] TInt  aIndex  )  const [inline]
 

This method gets the drive identifier at given index within the array.

Since:
3.2
Parameters:
aIndex The position of drive within the array.
Returns:
A drive identifier specified by TDriveNumber.
Panic:
USER 21 if aIndex is negative or is greater than the number of drives in the array
See also:
TDriveNumber
void DriveInfo::TDriveArray::Reset  )  [inline]
 

This method resets the array.

Since:
3.2
IMPORT_C void DriveInfo::TDriveArray::Set const TDriveList &  aDriveList  ) 
 

This method sets the drive array data from given drive list.

Since:
3.2
Parameters:
aDriveList A drive list where to set the data from.
See also:
TDriveList

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top