1 | /* This file is part of the KDE project |
2 | |
3 | Copyright (C) 2006-2007 Omat Holding B.V. <info@omat.nl> |
4 | Copyright (C) 2007 Frode M. Døving <frode@lnix.net> |
5 | |
6 | This program is free software; you can redistribute it and/or |
7 | modify it under the terms of the GNU General Public |
8 | License as published by the Free Software Foundation; either |
9 | version 2 of the License, or (at your option) any later version. |
10 | |
11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | General Public License for more details. |
15 | |
16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
19 | */ |
20 | |
21 | |
22 | #ifndef GLOBAL_H |
23 | #define GLOBAL_H |
24 | |
25 | #include <QStringList> |
26 | |
27 | namespace Tray |
28 | { |
29 | |
30 | class Global |
31 | { |
32 | public: |
33 | Global() : m_parsed( false ) {}; |
34 | |
35 | /** |
36 | * Returns a string usable to connect to the akonadiserver. |
37 | */ |
38 | const QStringList dboptions(); |
39 | |
40 | /** |
41 | * Returns the database to connect to. |
42 | */ |
43 | const QString dbname(); |
44 | |
45 | /** |
46 | * Returns the database driver to use. |
47 | */ |
48 | const QString dbdriver(); |
49 | |
50 | private: |
51 | void init(); |
52 | |
53 | bool m_parsed; |
54 | QString m_dbdriver; |
55 | QStringList m_dboptions; |
56 | QString m_dbname; |
57 | }; |
58 | |
59 | } |
60 | |
61 | #endif |
62 | |