Home · All Classes · Main Classes · Deprecated |
Inherited by MAppletAliveMessageRequest, MAppletAliveMessageResponse, MAppletCancelMessage, MAppletIconChangedMessage, MAppletMouseMessage, MAppletObjectMenuActionSelectedMessage, MAppletObjectMenuMessage, MAppletObjectMenuRequestMessage, MAppletOrientationMessage, MAppletPixmapModifiedMessage, MAppletPixmapTakenIntoUseMessage, MAppletSetGeometryMessage, MAppletTextChangedMessage, MAppletTitleChangedMessage, MAppletUpdateGeometryMessage, and MAppletVisibilityMessage.
Public Types | |
enum | MAppletMessageType { InvalidMessage = 0, VisibilityMessage, OrientationMessage, MousePressMessage, MouseReleaseMessage, MouseMoveMessage, CancelMessage, SetGeometryMessage, PixmapTakenIntoUseMessage, AppletAliveMessageRequest, AppletAliveMessageResponse, AppletIconMessage, AppletTitleMessage, AppletTextMessage, UpdateGeometryMessage, PixmapModifiedMessage, ObjectMenuRequestMessage, ObjectMenuMessage, ObjectMenuActionSelectedMessage, NumMessages } |
Public Member Functions | |
virtual | ~MAppletMessage () |
MAppletMessageType | type () const |
virtual void | serialize (QDataStream &stream) const |
virtual void | unserialize (QDataStream &stream) |
Protected Member Functions | |
MAppletMessage (MAppletMessageType type) |
An abstract base class for messages that are used for communicating between applets and the host process. Messages can be serialized to a byte stream so they can be communicated to another processes.
A type for the message.
MAppletMessage::MAppletMessage | ( | MAppletMessageType | type | ) | [protected] |
Constructor.
Sets the type of the message.
type | the message type. |
MAppletMessage::~MAppletMessage | ( | ) | [virtual] |
Destructor.
void MAppletMessage::serialize | ( | QDataStream & | stream | ) | const [virtual] |
Serializes the contents of the message to a data stream.
It doesn't matter what format the message uses for the serialization. It is only required that the unserialize()
method knows how to read the data.
stream | the stream to serialize the message to. |
MAppletMessage::MAppletMessageType MAppletMessage::type | ( | ) | const |
Returns the type of the applet message.
void MAppletMessage::unserialize | ( | QDataStream & | stream | ) | [virtual] |
Unserializes the contents of the message from a data stream.
stream | the stream to serialize the message from. |
Copyright © 2010 Nokia Corporation | MeeGo Touch |