source: src/sql/sqlengine.h @ 990afd5

qt5
Last change on this file since 990afd5 was 990afd5, checked in by timkoma <timkoma@…>, 12 years ago

temp commit for search tab

  • Property mode set to 100644
File size: 866 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
22        // search Events for ....
23        int searchEvent(int conferenceId, const QList<QString> &columns, const QString &keyword);
24    private:
25        QString login(const QString &aDatabaseType, const QString &aDatabaseName);
26        bool createTables(QSqlDatabase &aDatabase);
27};
28
29#endif /* SQLENGINE_H */
30
Note: See TracBrowser for help on using the repository browser.