| Home · All Classes · Main Classes · Deprecated |


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.
Definition at line 32 of file mappletmessage.h.
A type for the message.
Definition at line 39 of file mappletmessage.h.
{
InvalidMessage = 0,
VisibilityMessage,
OrientationMessage,
MousePressMessage,
MouseReleaseMessage,
MouseMoveMessage,
CancelMessage,
SetGeometryMessage,
PixmapTakenIntoUseMessage,
AppletAliveMessageRequest,
AppletAliveMessageResponse,
AppletIconMessage,
AppletTitleMessage,
AppletTextMessage,
UpdateGeometryMessage,
PixmapModifiedMessage,
ObjectMenuRequestMessage,
ObjectMenuMessage,
ObjectMenuActionSelectedMessage,
NumMessages
};
| MAppletMessage::MAppletMessage | ( | MAppletMessageType | type | ) | [protected] |
Constructor.
Sets the type of the message.
| type | the message type. |
Definition at line 22 of file mappletmessage.cpp.
:
messageType(type)
{
}
| MAppletMessage::~MAppletMessage | ( | ) | [virtual] |
| 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. |
Definition at line 36 of file mappletmessage.cpp.
{
Q_UNUSED(stream);
}
| MAppletMessage::MAppletMessageType MAppletMessage::type | ( | ) | const |
Returns the type of the applet message.
Definition at line 31 of file mappletmessage.cpp.
{
return messageType;
}
| void MAppletMessage::unserialize | ( | QDataStream & | stream | ) | [virtual] |
Unserializes the contents of the message from a data stream.
| stream | the stream to serialize the message from. |
Definition at line 41 of file mappletmessage.cpp.
{
Q_UNUSED(stream);
}
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:23 (PDT) Doxygen 1.7.1 |
MeeGo Touch |