36 lines
678 B
C++
36 lines
678 B
C++
#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
|