| 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 LAUNCHERBUTTONMODEL_H_ 00021 #define LAUNCHERBUTTONMODEL_H_ 00022 00023 #include <mbuttonmodel.h> 00024 #include "launcheraction.h" 00025 00026 class LauncherButtonModel : public MButtonModel 00027 { 00028 Q_OBJECT 00029 M_MODEL(LauncherButtonModel) 00030 00031 Q_ENUMS(State) 00032 00033 public: 00035 enum State { 00037 Downloading, 00039 Installing, 00041 Installed, 00043 Launching, 00045 Broken 00046 }; 00047 00049 M_MODEL_PROPERTY(QString, desktopEntryFile, DesktopEntryFile, true, QString()) 00051 M_MODEL_PROPERTY(LauncherAction, action, Action, true, LauncherAction()) 00053 M_MODEL_PROPERTY(LauncherButtonModel::State, buttonState, ButtonState, true, Installed) 00055 M_MODEL_PROPERTY(int, operationProgress, OperationProgress, true, 0) 00056 }; 00057 00058 #endif /* LAUNCHERBUTTONMODEL_H_ */
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:20:42 Doxygen 1.7.1 |
MeeGo Touch |