Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: W32STD.H
Link against: ws32.lib

Class RAnimDll

class RAnimDll : public MWsClientClass;

Description

Client-side interface to the server-side animation DLL.

This is the client side class matching the server side CAnimDLL class. It provides functions to create, load, close and destroy a server-side CAnimDll object.

Derivation

Members

Defined in RAnimDll:
Close(), Destroy(), Load(), RAnimDll(), RAnimDll(), ~RAnimDll()

Inherited from MWsClientClass:
WsHandle()

See also:


Construction and destruction


RAnimDll()

IMPORT_C RAnimDll();

Description

Default constructor.

RAnimDll is a lightweight class which can be allocated as a non-pointer member. This constructor is provided to allow such a member to be instantiated while its owner is constructed.

Note that an RAnimDll constructed without a reference to a window server session is invalid.


~RAnimDll()

virtual IMPORT_C ~RAnimDll();

Description

Empty virtual destructor.

Destroy() should be used to instead of this function to destroy both this object and the server-side CAnimDll object.

See also:


RAnimDll()

IMPORT_C RAnimDll(RWsSession &aWs);

Description

Valid constructor.

To be useable, an animation DLL should always be constructed with a reference to a window server session as argument.

Parameters

RWsSession &aWs

Window server session to use.

[Top]


Member functions


Load()

IMPORT_C TInt Load(const TDesC &aFileName);

Description

Instructs the server to load an animation DLL.

Use this function to pass the name of a polymorphic DLL, the animation DLL, for loading on the server side. Loading is in accordance with the RLibrary mechanism. The DLL must conform to the interface defined by the window server, otherwise an error will result. For requirements, see the description of CAnimDll.

Load() and Close() are symmetrical operations. A DLL can be re-loaded after a close has been called on it.

This function always causes a flush of the window server buffer.

Parameters

const TDesC &aFileName

Filename of the DLL to load.

Return value

TInt

KErrNone if successful, otherwise one of the system-wide error codes.


Destroy()

IMPORT_C void Destroy();

Description

Closes and deletes a previously loaded polymorphic DLL.

This function is equivalent to calling this->Close() followed by delete this, in accordance with the RLibrary mechanism provided for managing polymorphic DLLs.


Close()

virtual IMPORT_C void Close();

Description

Closes an animation DLL.

Use this function to close a polymorphic DLL which was previously loaded on the server. Cleans up and frees all resources belonging to the DLL but does not delete it. Closing is in accordance with the RLibrary mechanism.

Load() and Close() are symmetrical operations. A DLL can be re-loaded after a close has been called on it.

To both close and delete a previously loaded DLL, use Destroy().