Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <Base.h>

Class TMdaPackage

Interface status: deprecated

class TMdaPackage : public TMdaRawPackage;

Description

A data structure used to package messages (that include the package type) sent between the media server and its clients.

This class is abstract. It defines the attributes common to packages where the derived class's type needs to be sent as part of the package. The attributes are a UID that identifies the package's concrete class (so that the server can construct objects of the correct type), and a UID that identifies the package type (the category of classes to which the package belongs). The package type is little used in practice. These attributes and the derived class's size are set during construction of the derived class.

Derivation

Members

Defined in TMdaPackage:

Inherited from TMdaRawPackage:


Construction and destruction


TMdaPackage(TUid,TUid,TInt)

Interface status: deprecated Inherited from: TMdaPackage

protected: inline TMdaPackage(TUid aType, TUid aUid, TInt aDerivedSize);

Description

Protected constructor with two UIDs and the size of the derived class.

Parameters

TUid aType

A UID that identifies the package's concrete class.

TUid aUid

A UID that identifies the package type. This may be KNullUid if not required.

TInt aDerivedSize

The size of the derived class.

[Top]


Member functions


Type()const

Interface status: deprecated Inherited from: TMdaPackage

inline TUid Type() const;

Description

Gets the package type. This is set during construction of the derived class.

Return value

TUid

A UID that identifies the package type.


Uid()const

Interface status: deprecated Inherited from: TMdaPackage

inline TUid Uid() const;

Description

Gets the derived class's type. This is set during construction of the derived class.

Return value

TUid

A UID that identifies the type of the derived class.


SetUid(TUid)

Interface status: deprecated Inherited from: TMdaPackage

inline void SetUid(TUid aUid);

Description

Parameters

TUid aUid


operator==(const TMdaPackage &)

Interface status: deprecated Inherited from: TMdaPackage

inline TBool operator==(const TMdaPackage &aPackage);

Description

Equality operator. Tests whether the package specified has the same UID and type as this package.

Parameters

const TMdaPackage &aPackage

The package to compare with this one.

Return value

TBool

True if the two packages are the same, false if not.