CApaRegistrationResourceFileWriter Class Reference

class CApaRegistrationResourceFileWriter : public CApaResourceFileWriterBase

Used to support the registration of non-native applications.

The task of this class is to generate the resource files expected by the Apparc server. Applications that register other applications can use functions of this class to customise the generated resource files.

Inherits from

Public Member Functions
~CApaRegistrationResourceFileWriter()
IMPORT_C voidAddDataTypeL(TInt, const TDesC8 &)
IMPORT_C voidAddFileOwnershipInfoL(const TDesC &)
TUid AppUid()
voidGenerateFileContentsL(RBuf8 &)
IMPORT_C CApaRegistrationResourceFileWriter *NewL(TUid, const TDesC &, TUint)
IMPORT_C voidSetAppIsHiddenL(TBool)
IMPORT_C voidSetDefaultScreenNumberL(TInt)
IMPORT_C voidSetEmbeddabilityL(TApaAppCapability::TEmbeddability)
IMPORT_C voidSetGroupNameL(const TDesC &)
IMPORT_C voidSetLaunchInBackgroundL(TBool)
voidSetLocalisableResourceFileL(const TDesC &)
IMPORT_C voidSetOpaqueDataL(const TDesC8 &)
IMPORT_C voidSetSupportsNewFileL(TBool)
Private Member Functions
CApaRegistrationResourceFileWriter(TUid, TUint)
voidConstructL(const TDesC &)
voidMainResourceInCompiledFormatL(MDataSink &)
const TDesC8 *SecondResourceL(TBool &)
voidWriteDataTypeL(MDataSink &, const SDataType &)
voidWriteFileOwnershipInfoL(MDataSink &, const SFileOwnershipInfo &)
Inherited Functions
CApaResourceFileWriterBase::CApaResourceFileWriterBase()
CApaResourceFileWriterBase::DoGenerateFileContentsL(RBuf8 &,TUid,TUid)const
CApaResourceFileWriterBase::WriteBufferL(MDataSink &,const TDesC8 &)const
CApaResourceFileWriterBase::WriteLittleEndianUint16L(MDataSink &,TUint)const
CApaResourceFileWriterBase::WriteLittleEndianUint32L(MDataSink &,TUint)const
CApaResourceFileWriterBase::WriteText8L(MDataSink &,const TDesC8 &)const
CApaResourceFileWriterBase::WriteTextL(MDataSink &,const TDesC &)const
CApaResourceFileWriterBase::WriteUidTypeL(MDataSink &,TUid,TUid)const
CApaResourceFileWriterBase::WriteUint8L(MDataSink &,TUint)const
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()
Private Attributes
HBufC *iAppFile
TBool iAppIsHidden
TUid iAppUid
TUint iAttributes
RArray< SDataType >iDataTypeList
TInt iDefaultScreenNumber
TApaAppCapability::TEmbeddability iEmbeddability
RArray< SFileOwnershipInfo >iFileOwnershipList
HBufC *iGroupName
TBool iLaunchInBackground
HBufC *iLocalisableResourceFile
HBufC8 *iOpaqueData
TBool iSupportsNewFile

Constructor & Destructor Documentation

CApaRegistrationResourceFileWriter(TUid, TUint)

CApaRegistrationResourceFileWriter(TUidaAppUid,
TUintaAttributes
)[private]

Parameters

TUid aAppUid
TUint aAttributes

~CApaRegistrationResourceFileWriter()

IMPORT_C~CApaRegistrationResourceFileWriter()[virtual]

Member Functions Documentation

AddDataTypeL(TInt, const TDesC8 &)

IMPORT_C voidAddDataTypeL(TIntaPriority,
const TDesC8 &aType
)

Parameters

TInt aPriority
const TDesC8 & aType

AddFileOwnershipInfoL(const TDesC &)

IMPORT_C voidAddFileOwnershipInfoL(const TDesC &aFileName)

Parameters

const TDesC & aFileName

AppUid()

TUid AppUid()const

ConstructL(const TDesC &)

voidConstructL(const TDesC &aAppFile)[private]

Parameters

const TDesC & aAppFile

GenerateFileContentsL(RBuf8 &)

voidGenerateFileContentsL(RBuf8 &aBuffer)const

Parameters

RBuf8 & aBuffer

MainResourceInCompiledFormatL(MDataSink &)

voidMainResourceInCompiledFormatL(MDataSink &aDataSink)const [private, virtual]

Parameters

MDataSink & aDataSink

NewL(TUid, const TDesC &, TUint)

IMPORT_C CApaRegistrationResourceFileWriter *NewL(TUidaAppUid,
const TDesC &aAppFile,
TUintaAttributes
)[static]

Parameters

TUid aAppUid
const TDesC & aAppFile
TUint aAttributes

SecondResourceL(TBool &)

const TDesC8 *SecondResourceL(TBool &aSecondResourceInCompressedUnicodeFormat)const [private, virtual]

Parameters

TBool & aSecondResourceInCompressedUnicodeFormat

SetAppIsHiddenL(TBool)

IMPORT_C voidSetAppIsHiddenL(TBoolaAppIsHidden)

Parameters

TBool aAppIsHidden

SetDefaultScreenNumberL(TInt)

IMPORT_C voidSetDefaultScreenNumberL(TIntaDefaultScreenNumber)

Parameters

TInt aDefaultScreenNumber

SetEmbeddabilityL(TApaAppCapability::TEmbeddability)

IMPORT_C voidSetEmbeddabilityL(TApaAppCapability::TEmbeddabilityaEmbeddability)

Parameters

TApaAppCapability::TEmbeddability aEmbeddability

SetGroupNameL(const TDesC &)

IMPORT_C voidSetGroupNameL(const TDesC &aGroupName)

Parameters

const TDesC & aGroupName

SetLaunchInBackgroundL(TBool)

IMPORT_C voidSetLaunchInBackgroundL(TBoolaLaunchInBackground)

Parameters

TBool aLaunchInBackground

SetLocalisableResourceFileL(const TDesC &)

voidSetLocalisableResourceFileL(const TDesC &aLocalisableResourceFile)

Parameters

const TDesC & aLocalisableResourceFile

SetOpaqueDataL(const TDesC8 &)

IMPORT_C voidSetOpaqueDataL(const TDesC8 &aOpaqueData)

Parameters

const TDesC8 & aOpaqueData

SetSupportsNewFileL(TBool)

IMPORT_C voidSetSupportsNewFileL(TBoolaSupportsNewFile)

Parameters

TBool aSupportsNewFile

WriteDataTypeL(MDataSink &, const SDataType &)

voidWriteDataTypeL(MDataSink &aDataSink,
const SDataType &aDataType
)const [private]

Parameters

MDataSink & aDataSink
const SDataType & aDataType

WriteFileOwnershipInfoL(MDataSink &, const SFileOwnershipInfo &)

voidWriteFileOwnershipInfoL(MDataSink &aDataSink,
const SFileOwnershipInfo &aFileOwnershipInfo
)const [private]

Parameters

MDataSink & aDataSink
const SFileOwnershipInfo & aFileOwnershipInfo

Member Data Documentation

HBufC * iAppFile

HBufC *iAppFile[private]

TBool iAppIsHidden

TBool iAppIsHidden[private]

TUid iAppUid

TUid iAppUid[private]

TUint iAttributes

TUint iAttributes[private]

RArray< SDataType > iDataTypeList

RArray< SDataType >iDataTypeList[private]

TInt iDefaultScreenNumber

TInt iDefaultScreenNumber[private]

TApaAppCapability::TEmbeddability iEmbeddability

TApaAppCapability::TEmbeddability iEmbeddability[private]

RArray< SFileOwnershipInfo > iFileOwnershipList

RArray< SFileOwnershipInfo >iFileOwnershipList[private]

HBufC * iGroupName

HBufC *iGroupName[private]

TBool iLaunchInBackground

TBool iLaunchInBackground[private]

HBufC * iLocalisableResourceFile

HBufC *iLocalisableResourceFile[private]

HBufC8 * iOpaqueData

HBufC8 *iOpaqueData[private]

TBool iSupportsNewFile

TBool iSupportsNewFile[private]