kplato

kptconfig.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Dag Andersen <danders@get2net.dk>
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;
7 version 2 of the License.
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 KPTCONFIG_H
21#define KPTCONFIG_H
22
23#include "kpttask.h"
24
25namespace KPlato
26{
27
28// class Behavior {
29// public:
30// enum CalculationMode { Manual, OnChange };
31// Behavior() {
32// calculationMode = Manual;
33// allowOverbooking = true;
34// }
35// int calculationMode;
36// bool allowOverbooking;
37// };
38
39class Config {
40public:
41
42 Config();
43 ~Config();
44
45 void setReadWrite(bool readWrite) { m_readWrite = readWrite; }
46 void load();
47 void save();
48
49 Task &taskDefaults() { return m_taskDefaults; }
50// Behavior &behavior() { return m_behavior; }
51
52private:
53 bool m_readWrite;
54// Behavior m_behavior;
55 Task m_taskDefaults;
56
57};
58
59} //KPlato namespace
60
61#endif // CONFIG_H