]> ruin.nu Git - hbs.git/blob - bs/bsconf.h
Can now load the stats and race configurations..
[hbs.git] / bs / bsconf.h
1 /***************************************************************************
2                           bsconf.h  -  description
3                              -------------------
4     begin                : Sat Mar 9 2002
5     copyright            : (C) 2002 by Michael Andreen
6     email                : whale@linux.nu
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #ifndef BSCONF_H
19 #define BSCONF_H
20
21 #include <qobject.h>
22 #include <qstring.h>
23
24 /**
25   *@author Michael Andreen
26   */
27
28 class BSConf : public QObject
29 {
30         Q_OBJECT
31
32         public:
33         BSConf();
34         ~BSConf();
35
36         bool load();
37         bool save();
38
39 signals:
40         void configurationChanged();
41
42 protected:
43         bool m_modified;
44         QString m_sRaceFilename;
45         QString m_sStatsFilename;
46
47         bool loadStats();
48         bool saveStats();
49         bool loadRace();
50         bool saveRace();
51 };
52
53 #endif