TEComCachedDriveInfoIterator Class Reference
class TEComCachedDriveInfoIterator
|
Iterator which return only valid drives.
After instantiation, user must call either
First()
or
Last()
to set the initial position and check
InRange()
before calling the methods to access the drive number and attributes.
Constructor & Destructor Documentation
TEComCachedDriveInfoIterator(const CEComCachedDriveInfo &)
Member Functions Documentation
DriveIsReadOnlyInternal(void)
TBool
|
DriveIsReadOnlyInternal
|
(
|
void
|
|
)
|
const
|
Test if the EEComDrvAttrReadOnlyInternal attribute for the current drive is set.
-
panic
-
USER:133 from
TFixedArray
if iterator is out of bound.
DriveIsRemovable(void)
TBool
|
DriveIsRemovable
|
(
|
void
|
|
)
|
const
|
Test if the EEComDrvAttrRemovable attribute for the current drive is set.
-
panic
-
USER:133 from
TFixedArray
if iterator is out of bound.
DriveIsWritable(void)
TBool
|
DriveIsWritable
|
(
|
void
|
|
)
|
const
|
Test if the EEComDrvAttrWritable attribute for the current drive is set.
-
panic
-
USER:133 from
TFixedArray
if iterator is out of bound.
DriveNumber(void)
-
panic
-
USER:133 from
TFixedArray
if iterator is out of bound.
DriveUnit(void)
-
panic
-
USER:133 from
TFixedArray
if iterator is out of bound.
First(void)
Position iterator at first valid drive so as to iterate the drive list in increasing drive number order.
InRange(void)
TBool
|
InRange
|
(
|
void
|
|
)
|
const
|
To be used in for and while loops to check if iterator has stepped through all posible drives.
Last(void)
Position iterator at last valid drive so as to iterate the drive list in decreasing drive number order.
Next(void)
Increment iterator to next valid drive.
Prev(void)
Decrement iterator to next valid drive.
SetPos(const TInt)
Check if the drive is enabled for scanning and move index there if true.
Parameters
const
TInt
aDrive
|
the drive number of the drive to check.
|
Member Data Documentation
const TFixedArray< TEComDrvFlags, KMaxDrives > & iDriveAttr
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.