aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/palmos/palmos-fs-factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/fs/palmos/palmos-fs-factory.h')
-rw-r--r--backends/fs/palmos/palmos-fs-factory.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/backends/fs/palmos/palmos-fs-factory.h b/backends/fs/palmos/palmos-fs-factory.h
new file mode 100644
index 0000000000..618a1965d9
--- /dev/null
+++ b/backends/fs/palmos/palmos-fs-factory.h
@@ -0,0 +1,33 @@
+#ifndef PALMOS_FILESYSTEM_FACTORY_H
+#define PALMOS_FILESYSTEM_FACTORY_H
+
+#include "backends/fs/abstract-fs-factory.h"
+
+/**
+ * Creates PalmOSFilesystemNode objects.
+ *
+ * Parts of this class are documented in the base interface class, AbstractFilesystemFactory.
+ */
+class PalmOSFilesystemFactory : public AbstractFilesystemFactory {
+public:
+ typedef Common::String String;
+
+ /**
+ * Creates an instance of PalmOSFilesystemFactory using the Singleton pattern.
+ *
+ * @return A unique instance of PalmOSFilesytemFactory.
+ */
+ static PalmOSFilesystemFactory *instance();
+
+ virtual AbstractFilesystemNode *makeRootFileNode() const;
+ virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const;
+
+protected:
+ PalmOSFilesystemFactory() {};
+
+private:
+ static PalmOSFilesystemFactory *_instance;
+};
+
+#endif /*PALMOS_FILESYSTEM_FACTORY_H*/