File indexing completed on 2024-04-28 15:19:31
0001 /* 0002 SPDX-FileCopyrightText: 2010 Martin Blumenstingl <darklight.xdarklight@googlemail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KCONFIGLOADERTEST_H 0008 #define KCONFIGLOADERTEST_H 0009 0010 #include <QTest> 0011 0012 class KConfigLoader; 0013 0014 class QFile; 0015 0016 class ConfigLoaderTest : public QObject 0017 { 0018 Q_OBJECT 0019 0020 public Q_SLOTS: 0021 void init(); 0022 void cleanup(); 0023 0024 private Q_SLOTS: 0025 void boolDefaultValue(); 0026 void colorDefaultValue(); 0027 void dateTimeDefaultValue(); 0028 void enumDefaultValue(); 0029 void fontDefaultValue(); 0030 void intDefaultValue(); 0031 void passwordDefaultValue(); 0032 void pathDefaultValue(); 0033 void stringDefaultValue(); 0034 void stringListDefaultValue(); 0035 void uintDefaultValue(); 0036 void urlDefaultValue(); 0037 void doubleDefaultValue(); 0038 void intListEmptyDefaultValue(); 0039 void intListDefaultValue(); 0040 void longLongDefaultValue(); 0041 void pointDefaultValue(); 0042 void rectDefaultValue(); 0043 void sizeDefaultValue(); 0044 void ulongLongDefaultValue(); 0045 0046 private: 0047 KConfigLoader *cl; 0048 QFile *configFile; 0049 }; 0050 0051 #endif