README
[n9profile] / profiledb.h
1 #ifndef PROFILEDB_H
2 #define PROFILEDB_H
3 /*! \file profiledb.h
4     \brief File .H for class profiledb
5
6     Header file
7 */
8 #include <QtCore/QObject>
9 #include <QtCore/QDir>
10 /*!
11   \class ProfileDB
12   \brief Class stores and retrieves the profiles from XML
13   \author Jakub Šplíchal <jakub.bzouk@gmail.com>
14 */
15 #include "profilesmanager.h"
16 #include "soundfilesmanager.h"
17 #include "rulesmanager.h"
18
19 class ProfileDB : public QObject
20 {
21     Q_OBJECT
22 public:
23     ProfileDB(QObject *parent = 0);
24     ~ProfileDB();
25
26     bool Init();
27
28     ProfilesManager *GetProfileManager() const;
29
30     SoundFilesManager *GetSoundFilesManager() const;
31
32     RulesManager *GetRulesManager() const;
33
34 private:
35     ProfilesManager *profile_manager;
36     SoundFilesManager  *sound_files_manager;
37     RulesManager  *rules_manager;
38
39 public slots:
40     void SaveProfilesToXml();
41 };
42
43 #endif // PROFILEDB_H