1 /* This file is part of the KDE libraries
2    Copyright (c) 2005,2011 David Jarvie <djarvie@kde.org>
3 
4    This library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Library General Public
6    License as published by the Free Software Foundation; either
7    version 2 of the License, or (at your option) any later version.
8 
9    This library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    Library General Public License for more details.
13 
14    You should have received a copy of the GNU Library General Public License
15    along with this library; see the file COPYING.LIB.  If not, write to
16    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17    Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KDATETIMETEST_H
21 #define KDATETIMETEST_H
22 
23 #include <QObject>
24 
25 class KDateTimeTest : public QObject
26 {
27     Q_OBJECT
28 private Q_SLOTS:
29     void initTestCase();
30     void cleanupTestCase();
31     void specConstructors();
32     void specSet();
33     void constructors();
34     void toUtc();
35     void toOffsetFromUtc();
36     void toLocalZone();
37     void toClockTime();
38     void toZone();
39     void toTimeSpec();
40     void set();
41     void equal();
42     void lessThan();
43     void compare();
44     void addSubtract();
45     void addMSecs();
46     void addSubtractDate();
47     void dstShifts();
48     void strings_iso8601();
49     void strings_rfc2822();
50     void strings_rfc3339();
51     void strings_qttextdate();
52     void strings_format();
53 #ifdef COMPILING_TESTS
54     void cache();
55 #endif
56     void stream();
57     void misc();
58 private:
59     void removeDir(const QString &subdir);
60     QString mDataDir;
61 };
62 
63 #endif
64