![]() |
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 DATE_H_ 00020 #define DATE_H_ 00021 00022 #include <MStylableWidget> 00023 #include <QTimer> 00024 #include "datestyle.h" 00025 00026 #ifdef HAVE_QMSYSTEM 00027 #include <qmtime.h> 00028 #endif 00029 00030 class MLabel; 00031 class MLocale; 00032 00036 class Date : public MStylableWidget 00037 { 00038 Q_OBJECT 00039 00040 public: 00044 Date(QGraphicsItem *parent = 0); 00045 00049 virtual ~Date(); 00050 00051 protected: 00053 virtual void applyStyle(); 00055 00056 private slots: 00060 void updateDate(); 00061 00062 #ifdef HAVE_QMSYSTEM 00063 00066 void updateSettings(MeeGo::QmTime::WhatChanged whatChanged); 00067 #endif 00068 00069 private: 00071 MLabel *label; 00072 00074 MLocale *locale; 00075 00077 QTimer timer; 00078 00080 QString dateFormat; 00081 00082 #ifdef HAVE_QMSYSTEM 00083 00084 MeeGo::QmTime qmTime; 00085 #endif 00086 00087 M_STYLABLE_WIDGET(DateStyle) 00088 00089 #ifdef UNIT_TEST 00090 friend class Ut_Date; 00091 #endif 00092 }; 00093 00094 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |