Home · All Classes · Main Classes · Deprecated
Static Public Member Functions

MAppletMessageFactory Class Reference

List of all members.

Static Public Member Functions

static MAppletMessagecreate (MAppletMessage::MAppletMessageType messageType)

Detailed Description

Factory class for creating applet messages.

The factory class offers a service to create applet messages of the correct type. The applet message type is passed as a parameter to the create() function and the function constructs and returns a correct message object. If an invalid message type is requested, the factory returns NULL.

Note:
The creator() function is static so you don't need an instance of the factory. Actually you can't even create instances of it since the constructor is hidden.

Member Function Documentation

MAppletMessage * MAppletMessageFactory::create ( MAppletMessage::MAppletMessageType  messageType  )  [static]

Creates an applet message object of the requested type.

The function constructs and returns a correct message object. If an invalid message type is requested, the factory returns NULL.

Note:
The ownership of the returned object is transformed to the caller so the calling code is responsible of deleting the object.
Parameters:
messageType the type of the requested message.
Returns:
An applet message or NULL on invalid request.

Copyright © 2010 Nokia Corporation
MeeGo Touch