Home · All Namespaces · All Classes |
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 mhome. 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 00021 #ifndef SWITCHERMODEL_H_ 00022 #define SWITCHERMODEL_H_ 00023 00024 #include <MWidgetModel> 00025 #include <X11/Xlib.h> 00026 #include "switcherbutton.h" 00027 00028 class SwitcherModel : public MWidgetModel 00029 { 00030 Q_OBJECT 00031 00032 public: 00033 enum Mode { 00034 Detailview = 1, 00035 Overview 00036 }; 00037 00038 typedef QList< QSharedPointer<SwitcherButton> > ButtonList; 00039 00040 private: 00041 M_MODEL(SwitcherModel) 00042 M_MODEL_PROPERTY(SwitcherModel::ButtonList, buttons, Buttons, true, ButtonList()) 00043 M_MODEL_PROPERTY(SwitcherModel::Mode, switcherMode, SwitcherMode, true, Overview) 00044 M_MODEL_PROPERTY(Window, topmostWindow, TopmostWindow, true, 0) 00045 }; 00046 00047 #endif /* SWITCHERMODEL_H_ */
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |