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]

The destructor for the CApaRegistrationResourceFileWriter class.

Member Functions Documentation

AddDataTypeL(TInt, const TDesC8 &)

IMPORT_C voidAddDataTypeL(TIntaPriority,
const TDesC8 &aType
)

Adds a datatype to the list of datatypes that the application can handle.

Parameters

TInt aPriorityThe priority.
const TDesC8 & aTypeThe datatype.

AddFileOwnershipInfoL(const TDesC &)

IMPORT_C voidAddFileOwnershipInfoL(const TDesC &aFileName)

Adds a file to the list of files owned by the CApaRegistrationResourceFileWriter instances. These files are deleted if an error occurs whil registering the new applications.

Parameters

const TDesC & aFileNameThe name of the file.

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]

Creates a new CApaRegistrationResourceFileWriter instance.

Parameters

TUid aAppUidThe UID of the application.
const TDesC & aAppFileThe name and extension of the file to generate.
TUint aAttributesThe attributes of the application. See the TApaAppCapability class for more details.

SecondResourceL(TBool &)

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

Parameters

TBool & aSecondResourceInCompressedUnicodeFormat

SetAppIsHiddenL(TBool)

IMPORT_C voidSetAppIsHiddenL(TBoolaAppIsHidden)

Sets or clears the hidden attribute. The usual purpose of the hidden attribute is to decide if the application should appear in the task list or not but this could vary between products.

Parameters

TBool aAppIsHiddenThe value of the hidden flag.

SetDefaultScreenNumberL(TInt)

IMPORT_C voidSetDefaultScreenNumberL(TIntaDefaultScreenNumber)

Sets the default screen number. This can be used to specify the preferred screen on devices that support more than one screen.

Parameters

TInt aDefaultScreenNumberThe name of the default screen.

SetEmbeddabilityL(TApaAppCapability::TEmbeddability)

IMPORT_C voidSetEmbeddabilityL(TApaAppCapability::TEmbeddabilityaEmbeddability)

Sets the embeddability attribute. See the TApaAppCapability::TEmbeddability class for more details.

Parameters

TApaAppCapability::TEmbeddability aEmbeddabilityThe value of the embeddability flags.

SetGroupNameL(const TDesC &)

IMPORT_C voidSetGroupNameL(const TDesC &aGroupName)

Sets the name of the application group.

Parameters

const TDesC & aGroupNameThe name of the application group.

SetLaunchInBackgroundL(TBool)

IMPORT_C voidSetLaunchInBackgroundL(TBoolaLaunchInBackground)

Specifies if the application must be launched in the background.

Parameters

TBool aLaunchInBackgroundETrue if the application must be launched in the background, EFalse otherwise.

SetLocalisableResourceFileL(const TDesC &)

voidSetLocalisableResourceFileL(const TDesC &aLocalisableResourceFile)

Parameters

const TDesC & aLocalisableResourceFile

SetOpaqueDataL(const TDesC8 &)

IMPORT_C voidSetOpaqueDataL(const TDesC8 &aOpaqueData)

Sets the opaque data. The opaque data is some data that is specific to the type of application.

Parameters

const TDesC8 & aOpaqueData

SetSupportsNewFileL(TBool)

IMPORT_C voidSetSupportsNewFileL(TBoolaSupportsNewFile)

Specifies if the application supports the creation of a new file or not.

Parameters

TBool aSupportsNewFileETrue to specify that the application supports the creation of a new file.

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]