CFsPlugin Class Reference

class CFsPlugin : public CFsObject

A base class for File Server Plugins

Inherits from

Public Member Functions
CFsPlugin ()
~CFsPlugin ()
TInt Drive ()
TInt SessionDisconnect (CSessionFs *)
void SetDrive ( TInt )
Protected Member Functions
IMPORT_C TInt ClientRead ( TFsPluginRequest &, TDes8 &, TInt )
IMPORT_C TInt ClientWrite ( TFsPluginRequest &, const TDesC8 &, TInt )
IMPORT_C TInt Deliver ( TFsPluginRequest &)
TInt DoRequestL ( TFsPluginRequest &)
IMPORT_C TInt FileRead ( TFsPluginRequest &, TDes8 &, TInt64 )
IMPORT_C TInt FileWrite ( TFsPluginRequest &, const TDesC8 &, TInt64 )
IMPORT_C void InitialiseL ()
TBool IsMounted ( TInt )
TBool IsPluginThread (CFsRequest &)
TBool IsRegistered ( TInt )
TBool IsRegistered ( TInt , TInterceptAtts )
IMPORT_C CFsPluginConn * NewPluginConnL ()
IMPORT_C TInt RegisterIntercept ( TInt , TInterceptAtts )
IMPORT_C TInt UnregisterIntercept ( TInt , TInterceptAtts )
Private Member Functions
TInt Complete (CFsRequest *, TInt )
TInt Complete (CFsRequest *)
TInt DispatchOperation ( TFsPluginRequest &, TDes8 &, TInt64 , TInt )
TInt WaitForRequest ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CFsObject::CFsObject()
CFsObject::Close()
CFsObject::Container()const
CFsObject::Dec()
CFsObject::DoClose()
CFsObject::Inc()
CFsObject::IsCorrectThread()
CFsObject::Name()const
CFsObject::Open()
CFsObject::SetName(const TDesC *)
CFsObject::UniqueID()const
CFsObject::~CFsObject()
Protected Member Enumerations
enum TInterceptAtts { EPreIntercept  = 0x01, EPostIntercept  = 0x02, EPrePostIntercept  = EPreIntercept | EPostIntercept }
Protected Attributes
TThreadId iThreadId
Private Attributes
TInt iDrive
TInt iLastError
TInt iMountedOn
const TUint iReadOnly
TUint8 iRegisteredIntercepts
TUint iSpare
CPluginThread * iThreadP
TInt iUniquePos

Constructor & Destructor Documentation

CFsPlugin()

IMPORT_C CFsPlugin ( )

~CFsPlugin()

IMPORT_C ~CFsPlugin ( )

Member Functions Documentation

ClientRead(TFsPluginRequest &, TDes8 &, TInt)

IMPORT_C TInt ClientRead ( TFsPluginRequest & aRequest,
TDes8 & aDes,
TInt aOffset = 0
) [protected, static]

Parameters

TFsPluginRequest & aRequest
TDes8 & aDes
TInt aOffset = 0

ClientWrite(TFsPluginRequest &, const TDesC8 &, TInt)

IMPORT_C TInt ClientWrite ( TFsPluginRequest & aRequest,
const TDesC8 & aDes,
TInt aOffset = 0
) [protected, static]

Parameters

TFsPluginRequest & aRequest
const TDesC8 & aDes
TInt aOffset = 0

Complete(CFsRequest *, TInt)

TInt Complete ( CFsRequest * aRequest,
TInt aError
) [private, static]

Parameters

CFsRequest * aRequest
TInt aError

Complete(CFsRequest *)

TInt Complete ( CFsRequest * aRequest ) [private, static]

Parameters

CFsRequest * aRequest

Deliver(TFsPluginRequest &)

IMPORT_C TInt Deliver ( TFsPluginRequest & aRequest ) [protected, virtual]

Parameters

TFsPluginRequest & aRequest

DispatchOperation(TFsPluginRequest &, TDes8 &, TInt64, TInt)

TInt DispatchOperation ( TFsPluginRequest & aRequest,
TDes8 & aDes,
TInt64 aPos,
TInt aFunction
) [private]

Parameters

TFsPluginRequest & aRequest
TDes8 & aDes
TInt64 aPos
TInt aFunction

DoRequestL(TFsPluginRequest &)

TInt DoRequestL ( TFsPluginRequest & aRequest ) [protected, pure virtual]

Parameters

TFsPluginRequest & aRequest

Drive()

TInt Drive ( ) [inline]

FileRead(TFsPluginRequest &, TDes8 &, TInt64)

IMPORT_C TInt FileRead ( TFsPluginRequest & aRequest,
TDes8 & aDes,
TInt64 aPos
) [protected]

Parameters

TFsPluginRequest & aRequest
TDes8 & aDes
TInt64 aPos

FileWrite(TFsPluginRequest &, const TDesC8 &, TInt64)

IMPORT_C TInt FileWrite ( TFsPluginRequest & aRequest,
const TDesC8 & aDes,
TInt64 aPos
) [protected]

Parameters

TFsPluginRequest & aRequest
const TDesC8 & aDes
TInt64 aPos

InitialiseL()

IMPORT_C void InitialiseL ( ) [protected, virtual]

IsMounted(TInt)

TBool IsMounted ( TInt aDrive ) [protected]

Parameters

TInt aDrive

IsPluginThread(CFsRequest &)

TBool IsPluginThread ( CFsRequest & aMessage ) [protected]

Parameters

CFsRequest & aMessage

IsRegistered(TInt)

TBool IsRegistered ( TInt aMessage ) [protected]

Parameters

TInt aMessage

IsRegistered(TInt, TInterceptAtts)

TBool IsRegistered ( TInt aMessage,
TInterceptAtts aInterceptAtts
) [protected]

Parameters

TInt aMessage
TInterceptAtts aInterceptAtts

NewPluginConnL()

IMPORT_C CFsPluginConn * NewPluginConnL ( ) [protected, virtual]

RegisterIntercept(TInt, TInterceptAtts)

IMPORT_C TInt RegisterIntercept ( TInt aMessage,
TInterceptAtts aInterceptAtts
) [protected]

Parameters

TInt aMessage
TInterceptAtts aInterceptAtts

SessionDisconnect(CSessionFs *)

TInt SessionDisconnect ( CSessionFs * aSession ) [inline, virtual]

Parameters

CSessionFs * aSession

SetDrive(TInt)

void SetDrive ( TInt aDrive ) [inline]

Parameters

TInt aDrive

UnregisterIntercept(TInt, TInterceptAtts)

IMPORT_C TInt UnregisterIntercept ( TInt aMessage,
TInterceptAtts aInterceptAtts
) [protected]

Parameters

TInt aMessage
TInterceptAtts aInterceptAtts

WaitForRequest()

TInt WaitForRequest ( ) [private]

Member Enumerations Documentation

Enum TInterceptAtts

Intercept attribute to specify the order of request handling

Enumerators

EPreIntercept = 0x01
EPostIntercept = 0x02
EPrePostIntercept = EPreIntercept | EPostIntercept

Member Data Documentation

TInt iDrive

TInt iDrive [private]

TInt iLastError

TInt iLastError [private]

TInt iMountedOn

TInt iMountedOn [private]

const TUint iReadOnly

const TUint iReadOnly [private]

TUint8 iRegisteredIntercepts

TUint8 iRegisteredIntercepts [private]

TUint iSpare

TUint iSpare [private]

TThreadId iThreadId

TThreadId iThreadId [protected]

CPluginThread * iThreadP

CPluginThread * iThreadP [private]

TInt iUniquePos

TInt iUniquePos [private]