46 std::string host =
"127.0.0.1";
47 auto rfsvFactory = std::make_unique<RFSVFactory>(host, sockNum);
48 auto rpcsFactory = std::make_unique<RPCSFactory>(host, sockNum);
49 rfsv_ = rfsvFactory->create(
true);
50 rpcs_ = rpcsFactory->create(
true);
A class representing information about a Disk drive on the psion.
Wrapper class featuring range-checking and string representation of enumerated values.
virtual Enum< RFSV::errs > copyToPsion(const char *const from, const char *const to, void *, cpCallback_t func)
virtual Enum< RFSV::errs > dir(const char *dir, PlpDir &files)
virtual Enum< RFSV::errs > copyFromPsion(const char *const from, int fd, cpCallback_t func)
virtual Enum< RFSV::errs > devlist(uint32_t &devbits)
virtual Enum< RFSV::errs > devinfo(const char drive, Drive &plpDrive)
virtual void disconnect()
virtual bool dirExists(const char *name)
virtual void remove(const char *name)
virtual Enum< RFSV::errs > mkdir(const char *dir)
A helper class for storing intermediate internal information in RFSV16 and RFSV32 .
virtual Enum< errs > remove(const char *const name)=0
Removes a file on the Psion.
virtual Enum< errs > opendir(const uint32_t attr, const char *const name, RFSVDirHandle &handle)=0
Open a directory for reading with readdir.
virtual Enum< errs > copyToPsion(const char *const from, const char *const to, void *, cpCallback_t func)=0
Copies a file from local machine to the Psion.
virtual Enum< errs > mkdir(const char *const name)=0
Creates a directory on the Psion.
virtual Enum< errs > dir(const char *const name, PlpDir &ret)=0
Reads a directory on the Psion.
virtual Enum< errs > devlist(uint32_t &devbits)=0
Retrieves available drives on the Psion.
virtual Enum< errs > devinfo(const char drive, Drive &dinfo)=0
Retrieves details about a drive.
virtual Enum< errs > closedir(RFSVDirHandle &handle)=0
Close a directory, previously opened with opendir.
virtual Enum< errs > copyFromPsion(const char *from, const char *to, void *context, cpCallback_t func)=0
Copies a file from the Psion to the local machine.
int lookup_default_port()
int(* cpCallback_t)(void *, uint32_t)
Defines the callback procedure for progress indication of copy operations.
std::deque< class PlpDirent > PlpDir