source: src/sql/sqlengine.h @ f9db452

qt5
Last change on this file since f9db452 was 72f6fe4, checked in by pavelpa <pavelpa@…>, 13 years ago

implemented xml parser

  • parsing Schedule
  • Property mode set to 100644
File size: 733 bytes
Line 
1#ifndef SQLENGINE_H
2#define SQLENGINE_H
3
4#include <QObject>
5#include <QHash>
6
7class QSqlDatabase;
8
9class SqlEngine : public QObject
10{
11    Q_OBJECT
12    public:
13        SqlEngine(QObject *aParent = NULL);
14        ~SqlEngine();
15        void initialize();
16        void addConferenceToDB(QHash<QString,QString> &aConference);
17        void addEventToDB(QHash<QString,QString> &aEvent);
18        void addPersonToDB(QHash<QString,QString> &aPerson);
19        void addLinkToDB(QHash<QString,QString> &aLink);
20        void addRoomToDB(QHash<QString,QString> &aRoom);
21    private:
22        QString login(const QString &aDatabaseType, const QString &aDatabaseName);
23        bool createTables(QSqlDatabase &aDatabase);
24};
25
26#endif /* SQLENGINE_H */
27
Note: See TracBrowser for help on using the repository browser.