36 lines
714 B
C++
36 lines
714 B
C++
#ifndef APPDATASTORAGE_H
|
|
#define APPDATASTORAGE_H
|
|
|
|
#include <boost/filesystem.hpp>
|
|
#include <vector>
|
|
|
|
#include <model/project.h>
|
|
|
|
namespace Ember
|
|
{
|
|
|
|
class AppDataStorage
|
|
{
|
|
public:
|
|
static void initialize();
|
|
|
|
/**
|
|
* @brief Reads recent projects
|
|
* @param projects List will be saved to given vector.
|
|
*/
|
|
static void readRecentProjects(std::vector<RecentProject>& projects);
|
|
|
|
/**
|
|
* @brief Stores recent projects
|
|
* @param projects List of projects.
|
|
*/
|
|
static void storeRecentProjects(const std::vector<RecentProject>& projects);
|
|
|
|
private:
|
|
static boost::filesystem::path s_appData;
|
|
static boost::filesystem::path s_recentProjects;
|
|
};
|
|
|
|
}
|
|
#endif // APPDATASTORAGE_H
|