SettingsStorage.hpp Example File
persistentobjects/src/SettingsStorage.hpp
#ifndef SETTINGSSTORAGE_HPP
#define SETTINGSSTORAGE_HPP
#include "Storage.hpp"
class Person;
class SettingsStorage: public Storage
{
public:
SettingsStorage();
virtual ~SettingsStorage();
virtual bool clear();
virtual int load(int& lastID, GroupDataModel *model);
virtual bool save(int lastID, GroupDataModel *model);
private:
static const QString m_author;
static const QString m_appName;
static const QString m_personListSettingsKey;
static const QString m_lastCustomerIDKey;
static const QString m_customerIDKey;
static const QString m_firstNameKey;
static const QString m_lastNameKey;
bool loadPerson(const QSettings& settings, Person*& person) const;
};
#endif