SIGSEGV Fixed
[vicar] / src / vicar-lib / cpp / databaseutility.h
index 716e4ab..9ebffeb 100644 (file)
@@ -22,7 +22,9 @@ public:
     bool deleteDatabase();
     void closeDatabase();
     bool tableExists(QString tableName);
-    bool createProfilesTable();
+    bool prepareTables();
+    QString getSetting(QString setting);
+    bool setSetting(QString setting, QString value);
     int insertProfile(org::maemo::vicar::Profile profile);
     bool updateProfile(org::maemo::vicar::Profile profile);
     bool selectProfile(int id,org::maemo::vicar::Profile* profile);
@@ -33,7 +35,7 @@ public:
     QSqlError lastError();
 
 private:
-    QSqlDatabase profilesDB;
+    QSqlDatabase vicarDB;
 };
 
 #endif // DATABASEUTILITY_H