| Home · All Classes · Main Classes · Deprecated |
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 MAPPLETMOUSEMESSAGE_H 00021 #define MAPPLETMOUSEMESSAGE_H 00022 00023 #include "mappletmessage.h" 00024 00025 #include <QPointF> 00026 00032 class M_EXTENSIONS_EXPORT MAppletMouseMessage : public MAppletMessage 00033 { 00034 private: 00036 QPointF _position; 00037 00039 Qt::MouseButton _button; 00040 00042 Qt::MouseButtons _buttons; 00043 00044 public: 00052 MAppletMouseMessage(MAppletMessageType type, const QPointF &pos = QPointF(), Qt::MouseButton button = Qt::NoButton, Qt::MouseButtons buttons = Qt::NoButton); 00053 00057 virtual ~MAppletMouseMessage(); 00058 00060 virtual void serialize(QDataStream &stream) const; 00062 00064 virtual void unserialize(QDataStream &stream); 00066 00071 QPointF position() const; 00072 00077 void setPosition(const QPointF &pos); 00078 00083 Qt::MouseButton button() const; 00084 00090 void setButton(const Qt::MouseButton &button); 00091 00097 Qt::MouseButtons buttons() const; 00098 00103 void setButtons(const Qt::MouseButtons &buttons); 00104 }; 00105 00106 #endif // MAPPLETMOUSEMESSAGE_H
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:19 (PDT) Doxygen 1.7.1 |
MeeGo Touch |