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 #ifndef SWITCHERBUTTONMODEL_H_ 00021 #define SWITCHERBUTTONMODEL_H_ 00022 00023 #include <mbuttonmodel.h> 00024 #include <X11/X.h> 00025 00026 class SwitcherButtonModel : public MButtonModel 00027 { 00028 Q_OBJECT 00029 M_MODEL(SwitcherButtonModel) 00030 00031 public: 00033 enum PressedType { 00034 NonePressed, 00035 ButtonPressed, 00036 ClosePressed 00037 }; 00038 00039 enum ViewModeType { 00040 Small, 00041 Medium, 00042 Large 00043 }; 00044 private: 00046 M_MODEL_PROPERTY(Window, xWindow, XWindow, true, 0) 00048 M_MODEL_PROPERTY(SwitcherButtonModel::PressedType, pressed, Pressed, true, NonePressed) 00050 M_MODEL_PROPERTY(bool, emphasized, Emphasized, true, false) 00052 M_MODEL_PROPERTY(SwitcherButtonModel::ViewModeType, viewMode, ViewMode, true, Large) 00053 }; 00054 00055 00056 #endif /* SWITCHERBUTTONMODEL_H_ */
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |