![]() |
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 <MLocale> 00024 #include <QScopedPointer> 00025 #include "clockmodel.h" 00026 #include "clockstyle.h" 00027 00028 class Clock; 00029 class MLabel; 00030 00034 class ClockView : public MWidgetView 00035 { 00036 Q_OBJECT 00037 M_VIEW(ClockModel, ClockStyle) 00038 00039 public: 00044 ClockView(Clock *controller); 00045 00046 protected: 00048 virtual void applyStyle(); 00049 void setupModel(); 00051 00053 MLabel *label; 00054 00055 protected slots: 00057 virtual void updateData(const QList<const char *>& modifications); 00059 00063 void applyCurrentLocale(); 00064 00068 void updateLabel(); 00069 00070 private: 00071 00073 QString previousLabel; 00074 00076 QScopedPointer<MLocale> locale; 00077 00078 #ifdef UNIT_TEST 00079 friend class Ut_ClockView; 00080 #endif 00081 }; 00082 00083 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |