Guest User

Untitled

a guest
Aug 12th, 2011
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #ifndef PRISSQL_H
  2. #define PRISSQL_H
  3.  
  4. #include <QDir>
  5. #include <QString>
  6. #include <QMutex>
  7. #include <QDebug>
  8. #include <QMutexLocker>
  9. #include <QApplication>
  10. #include <QTextStream>
  11. #include "sqlite3.h"
  12.  
  13. // PrisSql (singleton) class definition
  14. // class used to store and retrieve settings
  15. class PrisSql
  16. {
  17.  
  18. public:
  19. static PrisSql* Instance();
  20. void SetFilePath(QString);
  21. void RunTest();
  22. QString m_filePath;
  23.  
  24. private:
  25. PrisSql(); // private constructor
  26. PrisSql(const PrisSql&); // prevent copy constructor
  27. PrisSql& operator=(const PrisSql&); // prevent assignment
  28.  
  29. static PrisSql* m_Instance;
  30. static bool m_InitFlag;
  31.  
  32. bool m_SettingsFileEmpty;
  33.  
  34. // declare some vars
  35. sqlite3* sqlite_db;
  36. sqlite3_stmt *sqlite_stmt;
  37. };
  38.  
  39. #define PRISSQL (PrisSql::Instance())
  40.  
  41. #endif // PRISSQL_H
Advertisement
Add Comment
Please, Sign In to add comment