Home · All Classes · Main Classes · Deprecated

mappletmessage.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
00004 ** All rights reserved.
00005 ** Contact: Nokia Corporation (directui@nokia.com)
00006 **
00007 ** This file is part of libmeegotouch.
00008 **
00009 ** If you have questions regarding the use of this file, please contact
00010 ** Nokia at directui@nokia.com.
00011 **
00012 ** This library is free software; you can redistribute it and/or
00013 ** modify it under the terms of the GNU Lesser General Public
00014 ** License version 2.1 as published by the Free Software Foundation
00015 ** and appearing in the file LICENSE.LGPL included in the packaging
00016 ** of this file.
00017 **
00018 ****************************************************************************/
00019 
00020 #ifndef MAPPLETMESSAGE_H_
00021 #define MAPPLETMESSAGE_H_
00022 
00023 #include "mexport.h"
00024 
00025 #include <QDataStream>
00026 
00032 class M_EXTENSIONS_EXPORT MAppletMessage
00033 {
00034 public:
00039     enum MAppletMessageType {
00040         InvalidMessage = 0,
00041         VisibilityMessage,
00042         OrientationMessage,
00043 
00044         MousePressMessage,
00045         MouseReleaseMessage,
00046         MouseMoveMessage,
00047         CancelMessage,
00048 
00049         SetGeometryMessage,
00050 
00051         PixmapTakenIntoUseMessage,
00052 
00053         AppletAliveMessageRequest,
00054         AppletAliveMessageResponse,
00055 
00056         AppletIconMessage,
00057         AppletTitleMessage,
00058         AppletTextMessage,
00059 
00060         UpdateGeometryMessage,
00061 
00062         PixmapModifiedMessage,
00063 
00064         ObjectMenuRequestMessage,
00065         ObjectMenuMessage,
00066         ObjectMenuActionSelectedMessage,
00067 
00068         NumMessages
00069     };
00070 
00071 private:
00073     MAppletMessageType messageType;
00074 
00075 protected:
00082     MAppletMessage(MAppletMessageType type);
00083 
00084 public:
00088     virtual ~MAppletMessage();
00089 
00094     MAppletMessageType type() const;
00095 
00103     virtual void serialize(QDataStream &stream) const;
00104 
00110     virtual void unserialize(QDataStream &stream);
00111 };
00112 
00113 
00114 #endif /* MAPPLETMESSAGE_H_ */

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:14:19 (PDT)
Doxygen 1.7.1
MeeGo Touch