Jaroslav 203cc8
#pragma once
Jaroslav 203cc8
Jaroslav 203cc8
#ifndef SAVE_LOAD_QSETTINGS_INCLUDED
Jaroslav 203cc8
#define SAVE_LOAD_QSETTINGS_INCLUDED
Jaroslav 203cc8
Jaroslav 203cc8
#include <qsettings></qsettings>
Jaroslav 203cc8
Jaroslav 203cc8
class QSettings;
Jaroslav 203cc8
Jaroslav 203cc8
//! An interface that claims: this object wants to save / load something
Jaroslav 203cc8
//! into / from provided qsettings
Jaroslav 203cc8
class SaveLoadQSettings {
Jaroslav 203cc8
public:
Jaroslav 203cc8
  virtual void save(QSettings &settings) const = 0;
Jaroslav 203cc8
  virtual void load(QSettings &settings)       = 0;
Jaroslav 203cc8
};
Jaroslav 203cc8
Jaroslav 203cc8
#endif