Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32\inc\f32file.inl
22 inline const TUid& TEntry::operator[](TInt anIndex) const
24 Gets any one of the file's three UIDs.
26 @param anIndex Identifies the UID required. This can be zero, one or
27 two. Specifiying any other value raises a panic.
29 @return On return, contains the requested UID.
33 {return(iType[anIndex]);}
38 inline TBool TEntry::IsUidPresent(TUid aUid) const
40 Tests whether the specified UID matches any of the UIDs in the UID type.
42 @param aUid The UID to be checked.
44 @return True if the specified UID is present, false otherwise.
46 @see TUidType::IsPresent
49 {return(iType.IsPresent(aUid));}
54 inline TBool TEntry::IsTypeValid() const
56 Test whether the file has a valid UID.
58 @return True if the entry has a valid UID, false otherwise.
60 @see TUidType::IsValid
63 {return(iType.IsValid());}
68 inline TUid TEntry::MostDerivedUid() const
70 Gets the most derived (i.e. the most specific) UID.
72 @return The entry's most derived UID.
74 @see TUidType::MostDerived
77 {return(iType.MostDerived());}
82 // Returns the entire size of the TEntry...
83 inline TInt EntrySize(const TEntry& anEntry)
84 {return(sizeof(TUint)+sizeof(TInt)+sizeof(TTime)+sizeof(TInt)+sizeof(TUidType)+anEntry.iName.Size());}
90 inline const TDesC& TFindFile::File() const
92 Gets the full file specification of a file which was found by a successful
93 call to any of the search variants that do not accept wildcards.
95 The file specification includes drive, path and filename.
99 1. When called after a successful search using wildcards the only valid
100 components of the retrieved file specification are drive letter and
103 @return The full path and filename.
105 {return iFile.FullName();}
110 inline RFs& CDirScan::Fs()
117 inline TDriveUnit::operator TInt() const
119 Converts the drive unit to an integer value.
126 inline TInt ValidateMatchMask( TUint aMask)
128 Validates the mask used to match drive attributes.
131 const TUint matchedFlags= aMask & KDriveAttMatchedFlags; //KDriveAttMatchedFlags = 0xFFF
132 const TUint matchedAtt = aMask & KDriveAttMatchedAtt; //KDriveAttMatchedAtt = 0x0FFF0000
138 case KDriveAttExclude:
139 return matchedFlags==0?KErrArgument:KErrNone;
142 case KDriveAttExclusive :
143 return matchedFlags==0?KErrArgument:KErrNone;
146 case KDriveAttExclude | KDriveAttExclusive:
147 return matchedFlags==0?KErrArgument:KErrNone;
151 return matchedFlags==0?KErrNone:KErrArgument;