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 LAUNCHERPAGE_H 00021 #define LAUNCHERPAGE_H 00022 00023 #include <QObject> 00024 #include <MWidgetController> 00025 #include "launcherpagemodel.h" 00026 00027 00028 class LauncherPage : public MWidgetController 00029 { 00030 Q_OBJECT 00031 M_CONTROLLER(LauncherPage) 00032 public: 00033 00038 LauncherPage(LauncherPageModel *model = new LauncherPageModel, MWidget *parent = NULL); 00039 00047 void setMaximumButtonCount(int maximumButtonCount); 00048 00063 int insertButton(QSharedPointer<LauncherButton> button, int positionIndex); 00064 00072 bool appendButton(QSharedPointer<LauncherButton> button); 00073 00079 void removeButton(QSharedPointer<LauncherButton> button); 00080 00089 bool removeButton(const QString &desktopEntryPath); 00090 00098 bool updateButton(const QString &desktopEntryPath); 00099 00106 int launcherButtonPosition(const QString &desktopEntryPath); 00107 00113 QSharedPointer<LauncherButton> button(const QString &desktopEntryPath); 00114 }; 00115 00116 #endif
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |