equal
deleted
inserted
replaced
176 { |
176 { |
177 return iVolParam.NumberOfFats(); |
177 return iVolParam.NumberOfFats(); |
178 } |
178 } |
179 |
179 |
180 |
180 |
181 /** @return refrence to the fat table owned by the mount */ |
181 /** @return reference to the fat table owned by the mount */ |
182 CFatTable& CFatMountCB::FAT() const |
182 CFatTable& CFatMountCB::FAT() const |
183 { |
183 { |
184 return(*iFatTable); |
184 return(*iFatTable); |
185 } |
185 } |
186 |
186 |
187 /** |
187 /** |
188 @return refrence to the file system object that has produced this CFatMountCB |
188 @return reference to the file system object that has produced this CFatMountCB |
189 */ |
189 */ |
190 CFatFileSystem& CFatMountCB::FatFileSystem() const |
190 CFatFileSystem& CFatMountCB::FatFileSystem() const |
191 { |
191 { |
192 return (CFatFileSystem&)(*FileSystem()); //-- CMountCB::FileSystem() provides correct answer |
192 return (CFatFileSystem&)(*FileSystem()); //-- CMountCB::FileSystem() provides correct answer |
193 } |
193 } |
493 {return((CFatMountCB&)Mount());} |
493 {return((CFatMountCB&)Mount());} |
494 |
494 |
495 /** |
495 /** |
496 Returns the fat table used by the file system for this mount |
496 Returns the fat table used by the file system for this mount |
497 |
497 |
498 @return Refrence to the Fat table owned by the mount |
498 @return Reference to the Fat table owned by the mount |
499 */ |
499 */ |
500 CFatTable& CFatFileCB::FAT() |
500 CFatTable& CFatFileCB::FAT() |
501 {return(FatMount().FAT());} |
501 {return(FatMount().FAT());} |
502 |
502 |
503 /** |
503 /** |
521 { |
521 { |
522 return iFileSizeModified; |
522 return iFileSizeModified; |
523 } |
523 } |
524 |
524 |
525 void CFatFileCB::IndicateFileSizeModified(TBool aModified) |
525 void CFatFileCB::IndicateFileSizeModified(TBool aModified) |
526 { |
526 { |
527 iFileSizeModified = aModified; |
527 iFileSizeModified = aModified; |
528 } |
528 } |
529 |
529 |
530 //----------------------------------------------------------------------------- |
530 //----------------------------------------------------------------------------- |
531 /** @return ETrue if file attributes' 'Modified' flag is set*/ |
531 /** @return ETrue if file attributes' 'Modified' flag is set*/ |
532 TBool CFatFileCB::FileAttModified() const |
532 TBool CFatFileCB::FileAttModified() const |
533 { |
533 { |
643 ASSERT((TUint32)aCluster <= iFatEocCode+7); |
643 ASSERT((TUint32)aCluster <= iFatEocCode+7); |
644 return EFalse; |
644 return EFalse; |
645 } |
645 } |
646 |
646 |
647 |
647 |
648 //----------------------------------------------------------------------------- |
|
649 /** |
|
650 @return ETrue if the cluster number aClusterNo is valid, i.e. belongs to the FAT table |
|
651 */ |
|
652 inline TBool CFatTable::ClusterNumberValid(TUint32 aClusterNo) const |
|
653 { |
|
654 return (aClusterNo >= KFatFirstSearchCluster) && (aClusterNo < iMaxEntries); |
|
655 } |
|
656 |
|
657 |
|
658 /** |
648 /** |
659 @return Maximal number of addresable FAT entries. This value is taken from the owning mount |
649 @return Maximal number of addresable FAT entries. This value is taken from the owning mount |
660 */ |
650 */ |
661 inline TUint32 CFatTable::MaxEntries() const |
651 inline TUint32 CFatTable::MaxEntries() const |
662 { |
652 { |
663 ASSERT(iMaxEntries > 0); |
653 ASSERT(iMaxEntries > 0); |
664 return iMaxEntries; |
654 return iMaxEntries; |
665 } |
655 } |
666 |
656 |
667 |
657 |
668 // class TDriveInterface |
658 // class TDriveInterface |
669 TBool TDriveInterface::NotifyUser() const |
659 TBool TDriveInterface::NotifyUser() const |