![]() |
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 systemui. 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 #ifndef CLOCKVIEW_H 00020 #define CLOCKVIEW_H 00021 00022 #include <MWidgetView> 00023 #include "clockmodel.h" 00024 #include "clockstyle.h" 00025 00026 class Clock; 00027 class MLabel; 00028 class MLocale; 00029 00033 class ClockView : public MWidgetView 00034 { 00035 Q_OBJECT 00036 M_VIEW(ClockModel, ClockStyle) 00037 00038 public: 00043 ClockView(Clock *controller); 00044 00045 protected: 00047 virtual void applyStyle(); 00048 void setupModel(); 00050 00052 MLabel *label; 00053 00054 protected slots: 00056 virtual void updateData(const QList<const char *>& modifications); 00058 00062 void updateLabel(); 00063 private: 00064 00066 QString previousLabel; 00067 00069 MLocale* locale; 00070 00071 #ifdef UNIT_TEST 00072 friend class Ut_ClockView; 00073 #endif 00074 }; 00075 00076 #endif
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:19:34 Doxygen 1.7.1 |
MeeGo Touch |
