userlibandfileserver/fileserver/swins/elocal.cpp
changeset 10 36bfc973b146
parent 9 96e5fb8b040d
child 8 538db54a451d
equal deleted inserted replaced
9:96e5fb8b040d 10:36bfc973b146
  1711 	return(KErrNone);
  1711 	return(KErrNone);
  1712 	}
  1712 	}
  1713 
  1713 
  1714 void CLocal::DriveInfo(TDriveInfo& anInfo,TInt aDriveNumber) const
  1714 void CLocal::DriveInfo(TDriveInfo& anInfo,TInt aDriveNumber) const
  1715 //
  1715 //
  1716 // Return the drive info. iBatteryState already set.
  1716 // Return the drive info.
  1717 //
  1717 //
  1718 	{
  1718 	{
  1719 
  1719 
  1720 	anInfo.iMediaAtt=0;
  1720 	anInfo.iMediaAtt=0;
  1721 
  1721 
  1723 	if (aDriveNumber==EDriveZ)
  1723 	if (aDriveNumber==EDriveZ)
  1724 		{
  1724 		{
  1725 		anInfo.iType=EMediaRom;
  1725 		anInfo.iType=EMediaRom;
  1726 		anInfo.iMediaAtt=KMediaAttWriteProtected;
  1726 		anInfo.iMediaAtt=KMediaAttWriteProtected;
  1727 		anInfo.iDriveAtt=KDriveAttRom|KDriveAttInternal;
  1727 		anInfo.iDriveAtt=KDriveAttRom|KDriveAttInternal;
       
  1728 		anInfo.iConnectionBusType=EConnectionBusInternal;
  1728 		return;
  1729 		return;
  1729 		}
  1730 		}
  1730 	if (aDriveNumber==EDriveC)
  1731 	if (aDriveNumber==EDriveC)
  1731 		{
  1732 		{
  1732 		anInfo.iType=EMediaHardDisk;
  1733 		anInfo.iType=EMediaHardDisk;
  1733 		anInfo.iMediaAtt=KMediaAttVariableSize;
  1734 		anInfo.iMediaAtt=KMediaAttVariableSize;
  1734 		anInfo.iDriveAtt=KDriveAttLocal|KDriveAttInternal;
  1735 		anInfo.iDriveAtt=KDriveAttLocal|KDriveAttInternal;
       
  1736 		anInfo.iConnectionBusType=EConnectionBusInternal;
  1735 		return;
  1737 		return;
  1736 		}
  1738 		}
  1737 	TFileName envValue;
  1739 	TFileName envValue;
  1738 	if (MapDrive(envValue,aDriveNumber))
  1740 	if (MapDrive(envValue,aDriveNumber))
  1739 		{
  1741 		{
  1740 		anInfo.iType=EMediaHardDisk;
  1742 		anInfo.iType=EMediaHardDisk;
  1741 		anInfo.iDriveAtt=KDriveAttLocal|KDriveAttInternal;
  1743 		anInfo.iDriveAtt=KDriveAttLocal|KDriveAttInternal;
       
  1744 		anInfo.iConnectionBusType=EConnectionBusInternal;
  1742 		return;		
  1745 		return;		
  1743 		}
  1746 		}
  1744 	anInfo.iType=EMediaNotPresent;
  1747 	anInfo.iType=EMediaNotPresent;
  1745 	anInfo.iDriveAtt=0;
  1748 	anInfo.iDriveAtt=0;
  1746 	}
  1749 	}