39 RFSV32(std::unique_ptr<TCPSocket> socket);
72 uint32_t
opMode(
const uint32_t);
A generic container for an array of bytes.
A class representing information about a Disk drive on the psion.
Wrapper class featuring range-checking and string representation of enumerated values.
A class, representing a directory entry of the Psion.
Psion time related utility class.
This is the implementation of the RFSV protocol for Psion series 5 (EPOC) variant.
char defaultInternalDriveLetter()
Enum< RFSV::errs > pathtest(const char *const)
Checks to see if the directory component of a path or file name exists and is valid.
Enum< RFSV::errs > getResponse(BufferStore &)
Enum< RFSV::errs > fcreatefile(const uint32_t, const char *const, uint32_t &)
Creates a named file.
Enum< RFSV::errs > mktemp(uint32_t &, std::string &)
Creates a unique temporary file.
Enum< RFSV::errs > devinfo(const char, Drive &)
Retrieves details about a drive.
Enum< RFSV::errs > fseek(const uint32_t, const int32_t, const uint32_t, uint32_t &)
Sets the current file position of a file on the Psion.
Enum< RFSV::errs > devlist(uint32_t &)
Retrieves available drives on the Psion.
Enum< RFSV::errs > fgetattr(const char *const, uint32_t &)
Retrieves attributes of a file on the Psion.
uint32_t attr2std(const uint32_t)
Enum< RFSV::errs > mkdir(const char *const)
Creates a directory on the Psion.
Enum< RFSV::errs > fread(const uint32_t, unsigned char *const, const uint32_t, uint32_t &)
Reads from a file on the Psion.
int getProtocolVersion()
Retrieves the protocol version.
Enum< RFSV::errs > fwrite(const uint32_t, const unsigned char *const, const uint32_t, uint32_t &)
Write to a file on the Psion.
Enum< RFSV::errs > setVolumeName(const char, const char *const)
Set the name of a Psion Volume (Drive).
uint32_t opMode(const uint32_t)
Converts an open-mode (A combination of the PSI_O_ constants.) from generic representation to the mac...
bool sendCommand(enum commands, BufferStore &)
Enum< RFSV::errs > rmdir(const char *const)
Removes a directory on the Psion.
@ E_EPOC_COULD_NOT_DISCONNECT
@ E_EPOC_BAD_LIBRARY_ENTRY_POINT
@ E_EPOC_COULD_NOT_CONNECT
@ E_EPOC_SERVER_TERMINATED
@ E_EPOC_TOTAL_LOSS_OF_PRECISION
Enum< RFSV::errs > err2psierr(int32_t)
Enum< RFSV::errs > fopen(const uint32_t, const char *const, uint32_t &)
Opens a file.
Enum< RFSV::errs > closedir(RFSVDirHandle &)
Close a directory, previously opened with opendir.
Enum< RFSV::errs > fclose(const uint32_t)
Close a file on the Psion whih was previously opened/created by using fopen , fcreatefile ,...
Enum< RFSV::errs > fopendir(const uint32_t, const char *, uint32_t &)
Enum< RFSV::errs > fsetsize(uint32_t, uint32_t)
Resizes an open file on the Psion.
Enum< RFSV::errs > remove(const char *const)
Removes a file on the Psion.
Enum< RFSV::errs > opendir(const uint32_t, const char *const, RFSVDirHandle &)
Open a directory for reading with readdir.
Enum< RFSV::errs > fsetmtime(const char *const, PsiTime const)
Sets the modification time of a file on the Psion.
Enum< RFSV::errs > fgeteattr(const char *const, PlpDirent &)
Retrieves attributes, size and modification time of a file on the Psion.
Enum< RFSV::errs > readdir(RFSVDirHandle &, PlpDirent &)
Read directory entries.
Enum< RFSV::errs > freplacefile(const uint32_t, const char *const, uint32_t &)
Creates an named file, overwriting an existing file.
Enum< RFSV::errs > rename(const char *const, const char *const)
Renames a file on the Psion.
Enum< RFSV::errs > copyFromPsion(const char *const, const char *const, void *, cpCallback_t)
Copies a file from the Psion to the local machine.
Enum< RFSV::errs > dircount(const char *const, uint32_t &)
Counts number of entries in a directory.
uint32_t std2attr(const uint32_t)
Enum< RFSV::errs > copyToPsion(const char *const, const char *const, void *, cpCallback_t)
Copies a file from local machine to the Psion.
Enum< RFSV::errs > dir(const char *const, PlpDir &)
Reads a directory on the Psion.
Enum< RFSV::errs > fgetmtime(const char *const, PsiTime &)
Retrieves the modification time of a file on the Psion.
Enum< RFSV::errs > fsetattr(const char *const, const uint32_t, const uint32_t)
@ EPOC_OMODE_SHARE_EXCLUSIVE
@ EPOC_OMODE_SHARE_READERS
Enum< RFSV::errs > copyOnPsion(const char *const, const char *const, void *, cpCallback_t)
Copies a file from the Psion to the Psion.
A helper class for storing intermediate internal information in RFSV16 and RFSV32 .
A factory for automatically instantiating the correct RFSV protocol variant depending on the connecte...
Access remote file services of a Psion.
int(* cpCallback_t)(void *, uint32_t)
Defines the callback procedure for progress indication of copy operations.
std::deque< class PlpDirent > PlpDir