blob: f3eb552159444c8e698f1f088a73333973b5bc19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "backends/fs/symbian/symbian-fs-factory.h"
#include "backends/fs/symbian/symbian-fs.cpp"
SymbianFilesystemFactory *SymbianFilesystemFactory::_instance = 0;
SymbianFilesystemFactory *SymbianFilesystemFactory::instance(){
if(_instance == 0){
_instance = new SymbianFilesystemFactory();
}
return _instance;
}
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);
}
|