mirror of
https://github.com/libretro/Play-.git
synced 2024-12-02 22:46:23 +00:00
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
#ifndef _SAVE_H_
|
|
#define _SAVE_H_
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
#include <string>
|
|
#include <ctime>
|
|
#include "Types.h"
|
|
#include "Stream.h"
|
|
|
|
class CSave
|
|
{
|
|
public:
|
|
enum ICONTYPE
|
|
{
|
|
ICON_NORMAL,
|
|
ICON_DELETING,
|
|
ICON_COPYING,
|
|
};
|
|
|
|
CSave(const boost::filesystem::path&);
|
|
virtual ~CSave();
|
|
|
|
const wchar_t* GetName() const;
|
|
const char* GetId() const;
|
|
unsigned int GetSize() const;
|
|
|
|
boost::filesystem::path GetPath() const;
|
|
boost::filesystem::path GetIconPath(const ICONTYPE&) const;
|
|
boost::filesystem::path GetNormalIconPath() const;
|
|
boost::filesystem::path GetDeletingIconPath() const;
|
|
boost::filesystem::path GetCopyingIconPath() const;
|
|
|
|
size_t GetSecondLineStartPosition() const;
|
|
time_t GetLastModificationTime() const;
|
|
|
|
private:
|
|
void ReadName(Framework::CStream&);
|
|
|
|
boost::filesystem::path m_basePath;
|
|
std::wstring m_sName;
|
|
std::string m_sId;
|
|
std::string m_sNormalIconFileName;
|
|
std::string m_sDeletingIconFileName;
|
|
std::string m_sCopyingIconFileName;
|
|
uint16 m_nSecondLineStartPosition;
|
|
time_t m_nLastModificationTime;
|
|
};
|
|
|
|
#endif
|