1 /* 2 * SPDX-FileCopyrightText: 2012 Sebastian Gottfried <sebastiangottfried@web.de> 3 * 4 * SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #ifndef DATAACCESS_H 8 #define DATAACCESS_H 9 10 #include <QObject> 11 12 class Course; 13 class DataIndex; 14 class DataIndexCourse; 15 class DataIndexKeyboardLayout; 16 class KeyboardLayout; 17 18 class DataAccess : public QObject 19 { 20 Q_OBJECT 21 public: 22 explicit DataAccess(QObject* parent = 0); 23 Q_INVOKABLE bool loadDataIndex(DataIndex* target); 24 Q_INVOKABLE bool loadCourse(DataIndexCourse* dataIndexCourse, Course* target); 25 Q_INVOKABLE bool loadKeyboardLayout(DataIndexKeyboardLayout* dataIndexKeyboardLayout, KeyboardLayout* target); 26 }; 27 28 #endif // DATAACCESS_H 29