Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Implementing the server side

Paired server side and client side classes are required for each animation object. The server side class should be derived from one of the abstract base classes, based on CAnim, depending on whether the animation is to draw to a sprite or a window:

The derived classes are constructed in the DLL factory class CAnimDLL::CreateInstanceL() function. See How to create an animation object.

CAnim defines the server side functions which are used to implement a given animation, including the drawing commands which the window server will call and any other command functions the animation may require. These functions must be implemented by the user in the derived class.

The MAnimGeneralFunctions, MAnimWindowFunctions and MAnimSpriteFunctions classes provide a set of helper functions which are implemented by the window server and to which CAnim provides the iFunctions pointer. These helper functions, which include for example functions to set the animation timings, to set the drawing rectangle, to panic the client from the server, and so on, are therefore available to any CAnim derived class.