7 #include "../plugins/plugin_api.h" 10 #define STORAGE_METHOD_CALL __stdcall 12 #define STORAGE_METHOD_CALL 18 const uint64_t unknown_size = 0xffffffffffffffff;
28 ReadWrite = ReadOnly | WriteOnly,
53 SpaceInfoNotAvailable,
70 { { 0xf9, 0x22, 0xbb, 0x26, 0xd5, 0x9e, 0x40, 0x46, 0x9b, 0x80, 0x84, 0x66, 0xb1, 0x1, 0x98, 0x6b } };
83 virtual uint32_t STORAGE_METHOD_CALL
write(
97 virtual uint32_t STORAGE_METHOD_CALL
read(
106 virtual int STORAGE_METHOD_CALL
getMode()
const = 0;
112 virtual uint32_t STORAGE_METHOD_CALL
size(
int* ecode)
const = 0;
119 virtual int STORAGE_METHOD_CALL
seek(
135 { { 0xd5, 0xda, 0x5c, 0x59, 0x44, 0xd5, 0x4c, 0x14, 0xab, 0x17, 0xea, 0x73, 0x95, 0x55, 0x51, 0x89 } };
147 virtual FileInfo* STORAGE_METHOD_CALL
next(
int* ecode)
const = 0;
152 { { 0xd5, 0xda, 0x5c, 0x59, 0x44, 0xd5, 0x4c, 0x14, 0xab, 0x17, 0xea, 0x73, 0x95, 0x55, 0x51, 0x89 } };
162 virtual int STORAGE_METHOD_CALL
isAvailable()
const = 0;
180 virtual uint64_t STORAGE_METHOD_CALL
getFreeSpace(
int* ecode)
const = 0;
186 virtual uint64_t STORAGE_METHOD_CALL
getTotalSpace(
int* ecode)
const = 0;
206 virtual void STORAGE_METHOD_CALL
removeDir(
247 virtual int STORAGE_METHOD_CALL
dirExists(
257 virtual uint64_t STORAGE_METHOD_CALL
fileSize(
265 { { 0x2e, 0x2c, 0x7a, 0x3d, 0x25, 0x6d, 0x40, 0x18, 0xb4, 0xe, 0x51, 0x2d, 0x72, 0x51, 0xb, 0xec } };
280 virtual const char** STORAGE_METHOD_CALL
findAvailable()
const = 0;
297 virtual const char* STORAGE_METHOD_CALL
storageType()
const = 0;
File information iterator abstraction.
Definition: third_party_storage.h:138
virtual int STORAGE_METHOD_CALL isAvailable() const =0
Storage factory abstraction.
Definition: third_party_storage.h:273
virtual int STORAGE_METHOD_CALL getMode() const =0
virtual int STORAGE_METHOD_CALL fileExists(const char *url, int *ecode) const =0
Base class for every interface, provided by plugin.
Definition: plugin_api.h:44
Common file information.
Definition: third_party_storage.h:126
Storage plugin namespace.
Definition: ftp_library.cpp:28
virtual FileInfoIterator *STORAGE_METHOD_CALL getFileIterator(const char *dirUrl, int *ecode) const =0
GUID of plugin interface.
Definition: plugin_api.h:26
virtual uint64_t STORAGE_METHOD_CALL fileSize(const char *url, int *ecode) const =0
virtual uint32_t STORAGE_METHOD_CALL read(void *dst, const uint32_t size, int *ecode) const =0
Storage abstraction.
Definition: third_party_storage.h:155
virtual uint64_t STORAGE_METHOD_CALL getFreeSpace(int *ecode) const =0
virtual int STORAGE_METHOD_CALL seek(uint64_t pos, int *ecode)=0
virtual const char *STORAGE_METHOD_CALL storageType() const =0
virtual void STORAGE_METHOD_CALL removeFile(const char *url, int *ecode)=0
virtual uint64_t STORAGE_METHOD_CALL getTotalSpace(int *ecode) const =0
virtual int STORAGE_METHOD_CALL getCapabilities() const =0
virtual IODevice *STORAGE_METHOD_CALL open(const char *url, int flags, int *ecode) const =0
virtual void STORAGE_METHOD_CALL removeDir(const char *url, int *ecode)=0
virtual uint32_t STORAGE_METHOD_CALL size(int *ecode) const =0
virtual void STORAGE_METHOD_CALL renameFile(const char *oldUrl, const char *newUrl, int *ecode)=0
virtual const char * lastErrorMessage(int ecode) const =0
virtual int STORAGE_METHOD_CALL dirExists(const char *url, int *ecode) const =0
virtual FileInfo *STORAGE_METHOD_CALL next(int *ecode) const =0
virtual uint32_t STORAGE_METHOD_CALL write(const void *src, const uint32_t size, int *ecode)=0
virtual const char **STORAGE_METHOD_CALL findAvailable() const =0
IO device abstraction.
Definition: third_party_storage.h:73
virtual Storage *STORAGE_METHOD_CALL createStorage(const char *url, int *ecode)=0