tuchulcha  0.10.1
Graphical Workflow Configuration Editor
FileManager.h
Go to the documentation of this file.
1 /* Copyright (C) 2009 Jens-Malte Gottfried
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published
7  by the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17  */
23 #ifndef FILEMANAGER_H_
24 #define FILEMANAGER_H_
25 
26 #include <QString>
27 #include <QDir>
28 #include <QObject>
29 
30 class QWidget;
31 
33 
37 class FileManager : public QObject {
38  Q_OBJECT
39 
40 public:
42  static const FileManager& instance();
43 
45 
46  static QWidget* dialogParent;
47 
49  QString classesFile() const;
50 
52  QDir configDir() const;
53 
54 private:
55  FileManager();
57  Q_DISABLE_COPY(FileManager)
58  virtual ~FileManager();
59 
61  static FileManager* _inst;
62 };
63 
64 #endif /*FILEMANAGER_H_*/
static const FileManager & instance()
get a reference to the file Manager instance
Definition: FileManager.cpp:70
static QWidget * dialogParent
parent widget for operation result dialogs
Definition: FileManager.h:46
QDir configDir() const
get config directory
Definition: FileManager.cpp:77
Common config file information and handling.
Definition: FileManager.h:37
QString classesFile() const
get the path of the classes file
Definition: FileManager.cpp:87
static FileManager * _inst
pointer to FileManager instance
Definition: FileManager.h:61