Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: w32adll.h
Link against: N/A

Class CAnimDll

CAnimDll

Support

Supported from 5.0

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 CreateInstanceL(TInt aType), 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

CAnimDllAnimation DLL factory interface
CBaseBase class for all classes to be instantiated on the heap

Defined in CAnimDll:
CreateInstanceL()

Inherited from CBase:
operator new()

See also:


Member functions


CreateInstanceL()

virtual CAnim* CreateInstanceL(TInt aType)=0;

Description

Factory function for animation DLL. It must be provided in the derived class.

The TInt aType argument can be used to differentiate between multiple animation classes contained in the same animation DLL. This is demonstrated in the “Using” document linked to below.

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(). It is passed from the client side by the animation framework.

Return value

CAnim*

Pointer to CAnim derived animation class object.

See also: