2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
11 #ifndef MASTERSETTINGS_H
12 #define MASTERSETTINGS_H
20 #include "foreach.hpp"
22 #define foreach BOOST_FOREACH
24 class MasterSettings
: public QObject
29 typedef std::set
<std::pair
<QObject
*, const char*> > SlotSet
;
30 typedef std::map
<int, SlotSet
> SlotMap
;
34 mutable QDomDocument m_doc
;
37 void obj_destroyed(QObject
* o
);
40 virtual QDomElement
node() const;
43 MasterSettings(const QString
& file
);
46 void onChange(QObject
* receiver
, const char* slot
, int priority
= 0);
51 extern MasterSettings settings
; // yes, I know global objects are evil
53 #endif // MASTERSETTINGS_H