Home · All Classes · Main Classes · Deprecated
Public Types | Public Member Functions | Protected Member Functions

MAppletMessage Class Reference

Inherited by MAppletAliveMessageRequest, MAppletAliveMessageResponse, MAppletCancelMessage, MAppletIconChangedMessage, MAppletMouseMessage, MAppletObjectMenuActionSelectedMessage, MAppletObjectMenuMessage, MAppletObjectMenuRequestMessage, MAppletOrientationMessage, MAppletPixmapModifiedMessage, MAppletPixmapTakenIntoUseMessage, MAppletSetGeometryMessage, MAppletTextChangedMessage, MAppletTitleChangedMessage, MAppletUpdateGeometryMessage, and MAppletVisibilityMessage.

List of all members.

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)

Detailed Description

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.


Member Enumeration Documentation

A type for the message.

Enumerator:
InvalidMessage 
VisibilityMessage 
OrientationMessage 
MousePressMessage 
MouseReleaseMessage 
MouseMoveMessage 
CancelMessage 
SetGeometryMessage 
PixmapTakenIntoUseMessage 
AppletAliveMessageRequest 
AppletAliveMessageResponse 
AppletIconMessage 
AppletTitleMessage 
AppletTextMessage 
UpdateGeometryMessage 
PixmapModifiedMessage 
ObjectMenuRequestMessage 
ObjectMenuMessage 
ObjectMenuActionSelectedMessage 
NumMessages 

Constructor & Destructor Documentation

MAppletMessage::MAppletMessage ( MAppletMessageType  type  )  [protected]

Constructor.

Sets the type of the message.

Parameters:
type the message type.
MAppletMessage::~MAppletMessage (  )  [virtual]

Destructor.


Member Function Documentation

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.

Parameters:
stream the stream to serialize the message to.
MAppletMessage::MAppletMessageType MAppletMessage::type (  )  const

Returns the type of the applet message.

Returns:
applet message type.
void MAppletMessage::unserialize ( QDataStream stream  )  [virtual]

Unserializes the contents of the message from a data stream.

Parameters:
stream the stream to serialize the message from.

Copyright © 2010 Nokia Corporation
MeeGo Touch