aboutsummaryrefslogtreecommitdiffstats
path: root/sisinstall/fakepsion.h
diff options
context:
space:
mode:
Diffstat (limited to 'sisinstall/fakepsion.h')
-rw-r--r--sisinstall/fakepsion.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/sisinstall/fakepsion.h b/sisinstall/fakepsion.h
new file mode 100644
index 0000000..d53dafd
--- /dev/null
+++ b/sisinstall/fakepsion.h
@@ -0,0 +1,34 @@
+#ifndef _FAKEPSION_H
+#define _FAKEPSION_H
+
+#include "psion.h"
+
+/**
+ * A dummy version of the Psion proxy, mainly for testing the installer.
+ */
+class FakePsion : public Psion
+{
+public:
+
+ virtual ~FakePsion();
+
+ virtual bool connect();
+
+ virtual Enum<rfsv::errs> copyToPsion(const char * const from,
+ const char * const to,
+ void *, cpCallback_t func);
+
+ virtual Enum<rfsv::errs> devinfo(const char drive, PlpDrive& plpDrive);
+
+ virtual Enum<rfsv::errs> devlist(u_int32_t& devbits);
+
+ virtual bool dirExists(const char* name);
+
+ virtual void disconnect();
+
+ virtual Enum<rfsv::errs> mkdir(const char* dir);
+
+};
+
+#endif
+