Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

citytime.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 
00021 #ifndef TIMEWIDGETIMPL_H
00022 #define TIMEWIDGETIMPL_H
00023 
00024 #include <qlist.h>
00025 #include <qwidget.h>
00026 
00027 #include "citytimebase.h"
00028 
00029 const int CITIES = 6;    // the number of cities...
00030 
00031 class ZoneMap;
00032 
00033 class CityTime : public CityTimeBase
00034 {
00035     Q_OBJECT
00036 public:
00037     CityTime(QWidget* parent = 0, const char *name = 0, WFlags fl = 0);
00038     ~CityTime();
00039     static QString appName() { return QString::fromLatin1("citytime"); }
00040 public slots:
00041     void beginNewTz();
00042     void slotNewTz( const QString& strNewCountry, const QString& strNewCity );
00043     void changeClock( bool newClock );
00044 
00045 protected:
00046     void timerEvent( QTimerEvent* );
00047     void mousePressEvent( QMouseEvent* event );
00048 
00049 private:
00050     void showTime( void );  // get and show the time for various places...
00051     void readInTimes( void );   // a method to get information from the config
00052     QString strRealTz;  // save the TZ var
00053     QString nameRealTz; // and what it is called
00054     QString strHome;    // the home variable...
00055     bool bAdded;        // a flag to indicate things have been added...
00056     bool bWhichClock;
00057     int timerId;
00058 
00059 
00060     QWidget* selWidget;
00061     // a spot to hold the time zone for each city
00062     QString strCityTz[CITIES];
00063     QList<QToolButton> listCities;
00064     QList<QLabel> listTimes;
00065     bool changed;
00066 };
00067 
00068 #endif

Generated on Sat Nov 5 16:15:56 2005 for OPIE by  doxygen 1.4.2