TFsPluginRequest Class Reference

class TFsPluginRequest

Request wrapper for plugins

Public Member Functions
TFsPluginRequest(CFsRequest *)
IMPORT_C TParse &Dest()
IMPORT_C TDrive *Drive()
IMPORT_C TIntDriveNumber()
IMPORT_C TIntFileName(TDes &)
IMPORT_C TIntFunction()
IMPORT_C TBoolIsPostOperation()
IMPORT_C const RMessage2 &Message()
IMPORT_C TIntRead(TF32ArgType, TInt &)
IMPORT_C TIntRead(TF32ArgType, TUint &)
IMPORT_C TIntRead(TF32ArgType, TInt64 &)
IMPORT_C TIntRead(TF32ArgType, TDes8 &, TInt)
IMPORT_C TIntRead(TF32ArgType, TDes16 &, TInt)
IMPORT_C CFsRequest *Request()
IMPORT_C TUintScratchValue()
IMPORT_C TInt64ScratchValue64()
IMPORT_C TIntSetSharePos(TInt64 &)
IMPORT_C TParse &Src()
IMPORT_C TDrive *SubstedDrive()
IMPORT_C TIntWrite(TF32ArgType, const TDesC8 &, TInt)
IMPORT_C TIntWrite(TF32ArgType, const TDesC16 &, TInt)
Private Member Functions
TInt ClientSubSessionHandle(TInt &)
voidNameFromShare(CFileShare &, TDes &)
TInt ShareFromClientHandle(CFileShare *&)
Public Member Enumerations
enumTF32ArgType {
EPosition, ELength, EData, ESize, EName, ENewName, EEntry, ETime, ESetAtt, EClearAtt, EMode, EAtt, EAttMask, EUid, EEntryArray, ENewPosition, EVolumeInfo
}
Private Attributes
CFsRequest *iFsRequest

Constructor & Destructor Documentation

TFsPluginRequest(CFsRequest *)

IMPORT_CTFsPluginRequest(CFsRequest *aRequest)

Parameters

CFsRequest * aRequest

Member Functions Documentation

ClientSubSessionHandle(TInt &)

TInt ClientSubSessionHandle(TInt &aHandle)[private]

Parameters

TInt & aHandle

Dest()

IMPORT_C TParse &Dest()const

Drive()

IMPORT_C TDrive *Drive()const

DriveNumber()

IMPORT_C TIntDriveNumber()const

Returns the drive number of the current request

FileName(TDes &)

IMPORT_C TIntFileName(TDes &aName)

Parameters

TDes & aName

Function()

IMPORT_C TIntFunction()const

Get the current Function number, as defined in TFsMessage

IsPostOperation()

IMPORT_C TBoolIsPostOperation()const

Message()

IMPORT_C const RMessage2 &Message()const

NameFromShare(CFileShare &, TDes &)

voidNameFromShare(CFileShare &aFileShare,
TDes &aName
)[private]

Parameters

CFileShare & aFileShare
TDes & aName

Read(TF32ArgType, TInt &)

IMPORT_C TIntRead(TF32ArgTypeaType,
TInt &aVal
)

Utility function for returning a TInt type of TF32ArgType value from the current request. i.e. ELength.

To obtain EPosition, authors should use Read(TF32ArgType,TInt64&)

Parameters

TF32ArgType aType
TInt & aVal

Read(TF32ArgType, TUint &)

IMPORT_C TIntRead(TF32ArgTypeaType,
TUint &aVal
)

Utility function for returning a TUint type of TF32ArgType value from the current request.

To obtain EPosition, authors should use Read(TF32ArgType,TInt64&)

Parameters

TF32ArgType aType
TUint & aVal

Read(TF32ArgType, TInt64 &)

IMPORT_C TIntRead(TF32ArgTypeaType,
TInt64 &aVal
)

Utility function for returning a TInt64 type of TF32ArgType value from the current request. i.e. EPosition.

Parameters

TF32ArgType aType
TInt64 & aVal

Read(TF32ArgType, TDes8 &, TInt)

IMPORT_C TIntRead(TF32ArgTypeaType,
TDes8 &aDes,
TIntaOffset = 0
)

Utility function for receving descriptor or packaged paramters of the current request. For non-descriptor types such a TEntry, plugin authors should pass an object of type TPckg<TEntry> in to aDes.

Parameters

TF32ArgType aType
TDes8 & aDes
TInt aOffset = 0

Read(TF32ArgType, TDes16 &, TInt)

IMPORT_C TIntRead(TF32ArgTypeaType,
TDes16 &aDes,
TIntaOffset = 0
)

Utility function for receving descriptor or packaged paramters of the current request. For non-descriptor types such a TEntry, plugin authors should pass an object of type TPckg<TEntry> in to aDes.

Parameters

TF32ArgType aType
TDes16 & aDes
TInt aOffset = 0

Request()

IMPORT_C CFsRequest *Request()const

ScratchValue()

IMPORT_C TUintScratchValue()const

ScratchValue64()

IMPORT_C TInt64ScratchValue64()const

SetSharePos(TInt64 &)

IMPORT_C TIntSetSharePos(TInt64 &aPos)

When plugin authors perform early completion of read or write requests, then SetSharePos should be called in order to update the share position to the client.

Parameters

TInt64 & aPos

ShareFromClientHandle(CFileShare *&)

TInt ShareFromClientHandle(CFileShare *&aShare)[private]

Parameters

CFileShare *& aShare

Src()

IMPORT_C TParse &Src()const

SubstedDrive()

IMPORT_C TDrive *SubstedDrive()const

Write(TF32ArgType, const TDesC8 &, TInt)

IMPORT_C TIntWrite(TF32ArgTypeaType,
const TDesC8 &aDes,
TIntaOffset = 0
)

Utilty function for writing data back to the request. Non-descriptor values should be packaged i.e TPckg<TUidType>

Parameters

TF32ArgType aType
const TDesC8 & aDes
TInt aOffset = 0

Write(TF32ArgType, const TDesC16 &, TInt)

IMPORT_C TIntWrite(TF32ArgTypeaType,
const TDesC16 &aDes,
TIntaOffset = 0
)

Utilty function for writing data back to the request. Non-descriptor values should be packaged i.e TPckg<TUidType>

Parameters

TF32ArgType aType
const TDesC16 & aDes
TInt aOffset = 0

Member Enumerations Documentation

Enum TF32ArgType

Used for getting parameters from a CFsRequest by a F32 plugin.

Enumerators

EPosition
ELength
EData
ESize
EName
ENewName
EEntry
ETime
ESetAtt
EClearAtt
EMode
EAtt
EAttMask
EUid
EEntryArray
ENewPosition
EVolumeInfo

Member Data Documentation

CFsRequest * iFsRequest

CFsRequest *iFsRequest[private]