#include <kolibrios-saves.h>
Public Member Functions | |
KolibriOSSaveFileManager (const Common::Path &writeablePath) | |
![]() | |
DefaultSaveFileManager (const Common::Path &defaultSavepath) | |
void | updateSavefilesList (Common::StringArray &lockedFiles) override |
Common::StringArray | listSavefiles (const Common::String &pattern) override |
Common::InSaveFile * | openRawFile (const Common::String &filename) override |
Common::InSaveFile * | openForLoading (const Common::String &filename) override |
Common::OutSaveFile * | openForSaving (const Common::String &filename, bool compress=true) override |
bool | removeSavefile (const Common::String &filename) override |
bool | exists (const Common::String &filename) override |
![]() | |
virtual void | clearError () |
virtual Error | getError () |
virtual String | getErrorDesc () |
virtual String | popErrorDesc () |
virtual bool | renameSavefile (const String &oldName, const String &newName, bool compress=true) |
virtual bool | copySavefile (const String &oldName, const String &newName, bool compress=true) |
Additional Inherited Members | |
![]() | |
static Common::Path | concatWithSavesPath (Common::String name) |
![]() | |
typedef Common::HashMap< Common::String, Common::FSNode, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo > | SaveFileCache |
![]() | |
virtual Common::Path | getSavePath () const |
virtual void | checkPath (const Common::FSNode &dir) |
virtual Common::ErrorCode | removeFile (const Common::FSNode &fileNode) |
void | assureCached (const Common::Path &savePathName) |
![]() | |
virtual void | setError (Error error, const String &errorDesc) |
![]() | |
SaveFileCache | _saveFileCache |
Common::StringArray | _lockedFiles |
![]() | |
Error | _error |
String | _errorDesc |
Customization of the DefaultSaveFileManager for KolibriOS. The only two differences are that the default constructor sets up the savepath based on HOME, and that checkPath tries to create the savedir, if missing, via the mkdir() syscall.