CNewFileServiceBase Class Reference

class CNewFileServiceBase : public CAknAppServiceBase

Base class for server applications

NewService.lib
Since
Series 60 3.0
Public Member Functions
~CNewFileServiceBase ()
IMPORT_C TInt GetErrorCode ()
IMPORT_C void SetErrorCode ( TInt )
Protected Member Functions
CNewFileServiceBase ()
IMPORT_C CAiwGenericParamList * GenericParams ()
IMPORT_C void HandleCompletedNewServiceL ( TBool )
void HandleNewFileL ( MNewFileServiceObserver *, CDesCArray &, TNewServiceFileType , TBool )
void HandleNewFileL ( MNewFileServiceObserver *, RFile &, TNewServiceFileType )
void ServiceCompleteL ()
IMPORT_C void ServiceL (const RMessage2 &)
Private Member Functions
void DeserializeGenericParamsL (const RMessage2 &)
Inherited Functions
CAknAppServiceBase::CAknAppServiceBase()
CAknAppServiceBase::CreateL()
CAknAppServiceBase::ServiceError(const RMessage2 &,TInt)
CAknAppServiceBase::~CAknAppServiceBase()
CApaAppServiceBase::CApaAppServiceBase()
CApaAppServiceBase::CountResources()
CApaAppServiceBase::Disconnect(const RMessage2 &)
CApaAppServiceBase::SecurityCheckL(const RMessage2 &,TInt &,TSecurityInfo &)
CApaAppServiceBase::SendAppServerExitNotification(TInt)
CApaAppServiceBase::~CApaAppServiceBase()
CBase::CBase()
CBase::Delete(CBase *)
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()
CSession2::CSession2()
CSession2::Extension_(TUint,TAny *&,TAny *)
CSession2::ResourceCountMarkEnd(const RMessage2 &)
CSession2::ResourceCountMarkStart()
CSession2::Server()const
CSession2::SetServer(const CServer2 *)
CSession2::~CSession2()
Inherited Enumerations
CSession2:TPanicNo
Private Attributes
TInt iError
CDesCArrayFlat * iFilenameArray
CAiwGenericParamList * iGenericParams
RMessage2 iPendingMessage

Constructor & Destructor Documentation

CNewFileServiceBase()

IMPORT_C CNewFileServiceBase ( ) [protected]

C++ default constructor.

~CNewFileServiceBase()

IMPORT_C ~CNewFileServiceBase ( ) [virtual]

Destructor.

Member Functions Documentation

DeserializeGenericParamsL(const RMessage2 &)

void DeserializeGenericParamsL ( const RMessage2 & aMessage ) [private]

Parameters

const RMessage2 & aMessage

GenericParams()

IMPORT_C CAiwGenericParamList * GenericParams ( ) [protected]
Getter for member variable
Since
Series 60 3.0

GetErrorCode()

IMPORT_C TInt GetErrorCode ( )

return iErrorCode.

HandleCompletedNewServiceL(TBool)

IMPORT_C void HandleCompletedNewServiceL ( TBool aReturnValue ) [protected]
From MNewFileServiceObserver
Since
Series 60 3.0

Parameters

TBool aReturnValue ETrue if the media file was succesfully created

HandleNewFileL(MNewFileServiceObserver *, CDesCArray &, TNewServiceFileType, TBool)

void HandleNewFileL ( MNewFileServiceObserver * aObserver,
CDesCArray & aFilenameArray,
TNewServiceFileType aType,
TBool aMultipleFiles
) [protected, pure virtual]
Create a new media file
Since
Series 60 3.0

Parameters

MNewFileServiceObserver * aObserver Object that is notified when recording is ready
CDesCArray & aFilenameArray Array for the filename(s) of the recorded files
TNewServiceFileType aType Required media type
TBool aMultipleFiles

HandleNewFileL(MNewFileServiceObserver *, RFile &, TNewServiceFileType)

void HandleNewFileL ( MNewFileServiceObserver * aObserver,
RFile & aFile,
TNewServiceFileType aType
) [protected, pure virtual]
Create a new media file
Since
Series 60 3.0

Parameters

MNewFileServiceObserver * aObserver Object that is notified when recording is ready
RFile & aFile File handle that the media file is to be recorded
TNewServiceFileType aType Required media type

ServiceCompleteL()

void ServiceCompleteL ( ) [protected, pure virtual]
Notifies the server application that service is complete and it may safely close
Since
Series 60 3.0

ServiceL(const RMessage2 &)

IMPORT_C void ServiceL ( const RMessage2 & aMessage ) [protected, virtual]
From CAknAppServiceBase
Since
Series 60 3.0

Parameters

const RMessage2 & aMessage The client message

SetErrorCode(TInt)

IMPORT_C void SetErrorCode ( TInt )

set iErrorCode.

Parameters

TInt

Member Data Documentation

TInt iError

TInt iError [private]

CDesCArrayFlat * iFilenameArray

CDesCArrayFlat * iFilenameArray [private]

CAiwGenericParamList * iGenericParams

CAiwGenericParamList * iGenericParams [private]

RMessage2 iPendingMessage

RMessage2 iPendingMessage [private]