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,
TInt aPWNbr,
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 &)

void FormatDrvMediaTypeInfo ( const TDriveInfo & aDrvInfo,
TDes & aPrintBuf
)

Format TMediaType description.

Parameters

const TDriveInfo & aDrvInfo drive info structure
TDes & aPrintBuf buffer where the information will be printed to.

FormatDriveAttInfo(const TDriveInfo &, TDes &)

void FormatDriveAttInfo ( const TDriveInfo & aDrvInfo,
TDes & aPrintBuf
)

Format DriveAtt description.

Parameters

const TDriveInfo & aDrvInfo drive info structure
TDes & aPrintBuf buffer where the information will be printed to.

FormatMediaAttInfo(const TDriveInfo &, TDes &)

void FormatMediaAttInfo ( const TDriveInfo & aDrvInfo,
TDes & aPrintBuf
)

Format MediaAtt description.

Parameters

const TDriveInfo & aDrvInfo drive info structure
TDes & aPrintBuf buffer where the information will be printed to.

FormatVolInfo(const TVolumeInfo &, TDes &)

void FormatVolInfo ( const TVolumeInfo & volInfo,
TDes & aPrintBuf
)

Format TVolumeInfo description.

Parameters

const TVolumeInfo & volInfo volume information
TDes & aPrintBuf buffer 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,
TInt aDrvNum,
CConsoleBase * apConsole,
TUint aFlags = EAll
)

Prints information about specified drive.

TPrintDrvInfoFlags

Parameters

RFs & aFs file system object
TInt aDrvNum drive number
CConsoleBase * apConsole pointer to the console to print information into
TUint aFlags = EAll specifies 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 & aStr a 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 & aSrc source string
const TDesC & aPattern pattern to look for
TPtrC & aToken if 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,
TInt aDrvNum
)

Parameters

RFs & aFs
TInt aDrvNum

DoRemountFS(RFs &, TInt)

TInt DoRemountFS ( RFs & aFs,
TInt aDrvNum
)

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 &)

void ByteSwap ( 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 >, ...)

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

Parameters

TRefByValue < const TDesC16 > aFmt
...

DebugNum(TInt)

TBool DebugNum ( TInt aBitNum )

Parameters

TInt aBitNum

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

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

Parameters

TRefByValue < const TDesC16 > aFmt
...

SIBoolean(const TDesC &, TBool)

void SIBoolean ( const TDesC & aFmt,
TBool aVal
)

Parameters

const TDesC & aFmt
TBool aVal