File indexing completed on 2024-04-14 14:19:45

0001 /* This file is part of the KDE libraries
0002    Copyright (c) 2005-2007,2011 David Jarvie <djarvie@kde.org>
0003 
0004    This library is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU Library General Public
0006    License as published by the Free Software Foundation; either
0007    version 2 of the License, or (at your option) any later version.
0008 
0009    This library is distributed in the hope that it will be useful,
0010    but WITHOUT ANY WARRANTY; without even the implied warranty of
0011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012    Library General Public License for more details.
0013 
0014    You should have received a copy of the GNU Library General Public License
0015    along with this library; see the file COPYING.LIB.  If not, write to
0016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017    Boston, MA 02110-1301, USA.
0018 */
0019 
0020 #ifndef KTIMEZONESTEST_H
0021 #define KTIMEZONESTEST_H
0022 
0023 #include <QObject>
0024 
0025 class KTimeZonesTest : public QObject
0026 {
0027     Q_OBJECT
0028 private Q_SLOTS:
0029     void initTestCase();
0030     void cleanupTestCase();
0031     void ktimezones();
0032     void refcount();
0033     void utc();
0034     void invalidLocal();
0035     void local();
0036     void zone();
0037     void zoneinfoDir();
0038     void zonetabChange();
0039     void currentOffset();
0040     void offsetAtUtc();
0041     void offsetAtZoneTime();
0042     void abbreviation();
0043     void timet();
0044     void toUtc();
0045     void toZoneTime();
0046     void convert();
0047     void tzfile();
0048     void tzfileDstShifts();
0049     void tzfileToZoneTime();
0050     void tzfileOffsetAtUtc();
0051     void tzfileOffsetAtZoneTime();
0052     void tzfileUtcOffsets();
0053     void tzfileAbbreviation();
0054     void tzfileTransitions();
0055 private:
0056     void removeDir(const QString &subdir);
0057     void writeZoneTab(bool testcase);
0058     QString mDataDir;
0059 };
0060 
0061 #endif