aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/symbian/symbian-fs-factory.cpp
blob: 87b1f0f05d2b3df0675a63fbb44d11e75b8444bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "backends/fs/symbian/symbian-fs-factory.h"
#include "backends/fs/symbian/symbian-fs.cpp"

DECLARE_SINGLETON(SymbianFilesystemFactory);

AbstractFilesystemNode *SymbianFilesystemFactory::makeRootFileNode() const {
	return new SymbianFilesystemNode(true);
}

AbstractFilesystemNode *SymbianFilesystemFactory::makeCurrentDirectoryFileNode() const {
	char path[MAXPATHLEN];
	getcwd(path, MAXPATHLEN);
	return new SymbianFilesystemNode(path);
}

AbstractFilesystemNode *SymbianFilesystemFactory::makeFileNodePath(const String &path) const {
	return new SymbianFilesystemNode(path);
}