Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <W32ADLL.H>

Class CAnimDll

class CAnimDll : public CBase;

Description

Animation DLL factory interface.

An animation DLL class must be a derived class of CAnimDll, and can be thought of as a server side factory class. CAnimDll consists of a single pure virtual factory function, CAnimDll::CreateInstanceL(TInt), which is used to create new instances of animation objects of type CAnim contained in the DLL. Animation DLL objects are created by the CreateCAnimDllL() function, which is called by the window server at the request of the client.

For efficiency reasons, it makes sense to collect multiple animation classes into a single DLL, even if they are otherwise logically quite separate classes.

Derivation

Members

Defined in CAnimDll:

Inherited from CBase:


Member functions


CreateInstanceL(TInt)

virtual CAnim* CreateInstanceL(TInt aType)=0;

Description

Factory function for animation DLLs.

It must be provided in the derived class.

The parameter can be used to differentiate between multiple animation classes contained in the same animation DLL.

Parameters

TInt aType

Identifies an animation class to be constructed. This is the same value as the aType argument of the client side animation constructor RAnim::Construct(const RWindowBase &,TInt,const TDesC8 &). It is passed from the client side by the animation framework.

Return value

CAnim *

Pointer to a CAnim-derived animation class object.