Beispiel #1
0
TInt CSelectionBox::PreviousDrive(TInt aDrive)
//
// Find the next drive in the driveList
//
	{

	for (TInt i=aDrive-1;i>=0;i--)
		{
		if (iDriveList[i]!=0 && MediaPresent(i))
			return(i);
		}
	return(aDrive);
	}
Beispiel #2
0
TInt CSelectionBox::NextDrive(TInt aDrive)
//
// Find the next drive in the driveList
//
	{

	for(TInt i=aDrive+1;i<=EDriveZ;i++)
		{
		if (iDriveList[i]!=0 && MediaPresent(i))
			return(i);
		}
	return(aDrive);
	}
Beispiel #3
0
void
Volume::Dump(const char* aLabel) const
{
  LOG("%s: Volume: %s (%d) is %s and %s @ %s gen %d locked %d",
      aLabel,
      NameStr(),
      Id(),
      StateStr(),
      MediaPresent() ? "inserted" : "missing",
      MountPoint().get(),
      MountGeneration(),
      (int)IsMountLocked());
  LOG("%s:   Sharing %s Mounting %s Formating %s Unmounting %s",
      aLabel,
      CanBeShared() ? (IsSharingEnabled() ? (IsSharing() ? "en-y" : "en-n")
                                          : "dis")
                    : "x",
      IsMountRequested() ? "req" : "n",
      IsFormatRequested() ? (IsFormatting() ? "req-y" : "req-n")
                          : (IsFormatting() ? "y" : "n"),
      IsUnmountRequested() ? (IsUnmounting() ? "req-y" : "req-n")
                           : (IsUnmounting() ? "y" : "n"));
}