Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PRISSQL_H
- #define PRISSQL_H
- #include <QDir>
- #include <QString>
- #include <QMutex>
- #include <QDebug>
- #include <QMutexLocker>
- #include <QApplication>
- #include <QTextStream>
- #include "sqlite3.h"
- // PrisSql (singleton) class definition
- // class used to store and retrieve settings
- class PrisSql
- {
- public:
- static PrisSql* Instance();
- void SetFilePath(QString);
- void RunTest();
- QString m_filePath;
- private:
- PrisSql(); // private constructor
- PrisSql(const PrisSql&); // prevent copy constructor
- PrisSql& operator=(const PrisSql&); // prevent assignment
- static PrisSql* m_Instance;
- static bool m_InitFlag;
- bool m_SettingsFileEmpty;
- // declare some vars
- sqlite3* sqlite_db;
- sqlite3_stmt *sqlite_stmt;
- };
- #define PRISSQL (PrisSql::Instance())
- #endif // PRISSQL_H
Advertisement
Add Comment
Please, Sign In to add comment