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);
QSqlError lastError();
private:
- QSqlDatabase profilesDB;
+ QSqlDatabase vicarDB;
};
#endif // DATABASEUTILITY_H