1 /******************************************************************************
2  *
3  * Copyright (C) 1997-2019 by Dimitri van Heesch.
4  *
5  * Permission to use, copy, modify, and distribute this software and its
6  * documentation under the terms of the GNU General Public License is hereby
7  * granted. No representations are made about the suitability of this software
8  * for any purpose. It is provided "as is" without express or implied warranty.
9  * See the GNU General Public License for more details.
10  *
11  */
12 
13 #ifndef CONFIG_H
14 #define CONFIG_H
15 
16 #include <QHash>
17 #include <QString>
18 
19 class Input;
20 class QTextStream;
21 class QTextCodec;
22 
23 bool parseConfig(
24       const QString &fileName,
25       const QHash<QString,Input *> &options
26     );
27 
28 void writeStringValue(QTextStream &t,QTextCodec *codec,const QString &s);
29 
30 // directly copied from ../../src/config.h to be consistent
31 enum
32 {
33  /*! Maximum length of an option in the config file. Used for
34   *  alignment purposes.
35   */
36   MAX_OPTION_LENGTH = 23
37 };
38 
39 #endif
40