ts_com.cpp File Reference

TPtrC ptrFormatHelp

TPtrC ptrFormatHelp

TPtrC ptrMountHelp

TPtrC ptrMountHelp

pswd_DrvNbr(TDes &, TInt &)

TInt pswd_DrvNbr(TDes &aPath,
TInt &aDN
)[static]

Parameters

TDes & aPath
TInt & aDN

pswd_Password(TDes &, TInt, TMediaPassword &)

TInt pswd_Password(TDes &aPath,
TIntaPWNbr,
TMediaPassword &aPW
)[static]

Parameters

TDes & aPath
TInt aPWNbr
TMediaPassword & aPW

const TLitC< sizeof(L"\n")/2 > KLitNewLine

const TLitC< sizeof(L"\n")/2 >KLitNewLine[static]

ParseHexaPrefixIfAny(TLex &)

TRadix ParseHexaPrefixIfAny(TLex &aLex)[static]

Parameters

TLex & aLex

FormatDrvMediaTypeInfo(const TDriveInfo &, TDes &)

voidFormatDrvMediaTypeInfo(const TDriveInfo &aDrvInfo,
TDes &aPrintBuf
)

Format TMediaType description.

Parameters

const TDriveInfo & aDrvInfodrive info structure
TDes & aPrintBufbuffer where the information will be printed to.

FormatDriveAttInfo(const TDriveInfo &, TDes &)

voidFormatDriveAttInfo(const TDriveInfo &aDrvInfo,
TDes &aPrintBuf
)

Format DriveAtt description.

Parameters

const TDriveInfo & aDrvInfodrive info structure
TDes & aPrintBufbuffer where the information will be printed to.

FormatMediaAttInfo(const TDriveInfo &, TDes &)

voidFormatMediaAttInfo(const TDriveInfo &aDrvInfo,
TDes &aPrintBuf
)

Format MediaAtt description.

Parameters

const TDriveInfo & aDrvInfodrive info structure
TDes & aPrintBufbuffer where the information will be printed to.

FormatVolInfo(const TVolumeInfo &, TDes &)

voidFormatVolInfo(const TVolumeInfo &volInfo,
TDes &aPrintBuf
)

Format TVolumeInfo description.

Parameters

const TVolumeInfo & volInfovolume information
TDes & aPrintBufbuffer where the information will be printed to.

Enum TPrintDrvInfoFlags

Bit flags that specify which information will be printed by PrintDrvInfo()

Enumerators

EFSInfo = 0x01
EFSInfoEx = 0x02
EMediaTypeInfo = 0x04
EMediaAttInfo = 0x08
EDrvAttInfo = 0x10
EVolInfo = 0x20
EAll = 0xFFFF

PrintDrvInfo(RFs &, TInt, CConsoleBase *, TUint)

TInt PrintDrvInfo(RFs &aFs,
TIntaDrvNum,
CConsoleBase *apConsole,
TUintaFlags = EAll
)

Prints information about specified drive.

TPrintDrvInfoFlags

Parameters

RFs & aFsfile system object
TInt aDrvNumdrive number
CConsoleBase * apConsolepointer to the console to print information into
TUint aFlags = EAllspecifies which information to print out,

DoExtractDriveLetter(const TDesC &)

TInt DoExtractDriveLetter(const TDesC &aStr)

Extracts drive specifier from the given string that shall look like 'd:\' or 'd:' And converts it to the drive number.

Parameters

const TDesC & aStra string with drive specifier

DoFindToken(const TDesC &, const TDesC &, TPtrC &)

TBool DoFindToken(const TDesC &aSrc,
const TDesC &aPattern,
TPtrC &aToken
)[static]

Just a helper method. Looks for a given pattern in the given string and returns the rest of the found token.

Parameters

const TDesC & aSrcsource string
const TDesC & aPatternpattern to look for
TPtrC & aTokenif the aPattern is found in the string, will contain characters from the pattern end to the next space.

DoDismountFS(RFs &, TInt)

TInt DoDismountFS(RFs &aFs,
TIntaDrvNum
)

Parameters

RFs & aFs
TInt aDrvNum

DoRemountFS(RFs &, TInt)

TInt DoRemountFS(RFs &aFs,
TIntaDrvNum
)

Parameters

RFs & aFs
TInt aDrvNum

GetChunkInfo(TAny *)

TInt GetChunkInfo(TAny *aPtr)

Parameters

TAny * aPtr

GetThreadInfo(TAny *)

TInt GetThreadInfo(TAny *aPtr)

Parameters

TAny * aPtr

ByteSwap(TDes16 &)

voidByteSwap(TDes16 &aDes)

Parameters

TDes16 & aDes

const TLitC< sizeof(L"%S")/2 > KLitPercentS

const TLitC< sizeof(L"%S")/2 >KLitPercentS[static]

const TLitC< sizeof(L"\r\n")/2 > KCrNl

const TLitC< sizeof(L"\r\n")/2 >KCrNl[static]

SIPrintf(TRefByValue< const TDesC16 >, ...)

voidSIPrintf(TRefByValue< const TDesC16 >aFmt,
...
)

Parameters

TRefByValue< const TDesC16 > aFmt
...

DebugNum(TInt)

TBool DebugNum(TIntaBitNum)

Parameters

TInt aBitNum

SIHeading(TRefByValue< const TDesC16 >, ...)

voidSIHeading(TRefByValue< const TDesC16 >aFmt,
...
)

Parameters

TRefByValue< const TDesC16 > aFmt
...

SIBoolean(const TDesC &, TBool)

voidSIBoolean(const TDesC &aFmt,
TBoolaVal
)

Parameters

const TDesC & aFmt
TBool aVal