2006-07-18 12:08:40 +00:00
|
|
|
#ifndef _SAVE_H_
|
|
|
|
#define _SAVE_H_
|
|
|
|
|
2019-10-16 20:51:11 -04:00
|
|
|
#include "filesystem_def.h"
|
2006-07-18 12:08:40 +00:00
|
|
|
#include <string>
|
2006-07-21 18:21:51 +00:00
|
|
|
#include <ctime>
|
2006-07-18 12:08:40 +00:00
|
|
|
#include "Types.h"
|
2011-12-30 22:49:52 +00:00
|
|
|
#include "Stream.h"
|
2006-07-18 12:08:40 +00:00
|
|
|
|
|
|
|
class CSave
|
|
|
|
{
|
|
|
|
public:
|
2011-12-30 22:49:52 +00:00
|
|
|
enum ICONTYPE
|
|
|
|
{
|
|
|
|
ICON_NORMAL,
|
|
|
|
ICON_DELETING,
|
|
|
|
ICON_COPYING,
|
|
|
|
};
|
|
|
|
|
2019-10-16 20:51:11 -04:00
|
|
|
CSave(const fs::path&);
|
2019-10-17 21:09:51 -04:00
|
|
|
virtual ~CSave() = default;
|
2018-04-30 21:01:23 +01:00
|
|
|
|
|
|
|
const wchar_t* GetName() const;
|
|
|
|
const char* GetId() const;
|
|
|
|
unsigned int GetSize() const;
|
|
|
|
|
2019-10-16 20:51:11 -04:00
|
|
|
fs::path GetPath() const;
|
|
|
|
fs::path GetIconPath(const ICONTYPE&) const;
|
|
|
|
fs::path GetNormalIconPath() const;
|
|
|
|
fs::path GetDeletingIconPath() const;
|
|
|
|
fs::path GetCopyingIconPath() const;
|
2018-04-30 21:01:23 +01:00
|
|
|
|
|
|
|
size_t GetSecondLineStartPosition() const;
|
|
|
|
time_t GetLastModificationTime() const;
|
2006-07-18 12:08:40 +00:00
|
|
|
|
|
|
|
private:
|
2018-04-30 21:01:23 +01:00
|
|
|
void ReadName(Framework::CStream&);
|
|
|
|
|
2019-10-16 20:51:11 -04:00
|
|
|
fs::path m_basePath;
|
2018-04-30 21:01:23 +01:00
|
|
|
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;
|
2006-07-18 12:08:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|