ember/storage/appdatastorage.h

36 lines
678 B
C
Raw Normal View History

2018-08-06 18:37:16 +00:00
#ifndef APPDATASTORAGE_H
#define APPDATASTORAGE_H
#include <boost/filesystem.hpp>
#include <vector>
#include <model/project.h>
namespace Ember
{
class AppDataStorage
{
public:
AppDataStorage();
/**
* @brief Reads recent projects
* @param projects List will be saved to given vector.
*/
void readRecentProjects(std::vector<RecentProject>& projects);
/**
* @brief Stores recent projects
* @param projects List of projects.
*/
void storeRecentProjects(const std::vector<RecentProject>& projects);
private:
boost::filesystem::path m_appData;
boost::filesystem::path m_recentProjects;
};
}
#endif // APPDATASTORAGE_H