1 |
bearsoft |
1.1 |
#ifndef __FileHandler_H__
|
2 |
|
|
#define __FileHandler_H__
|
3 |
|
|
|
4 |
|
|
#include "../String/String.h"
|
5 |
|
|
#include "../LinkedList/ObjectLinkedList.h"
|
6 |
|
|
#include "../System/System.h"
|
7 |
|
|
#include "../System/SystemDefine.h"
|
8 |
|
|
#include "../Files/FileInfo.h"
|
9 |
|
|
|
10 |
|
|
class FileHandler
|
11 |
|
|
{
|
12 |
|
|
|
13 |
|
|
public:
|
14 |
|
|
|
15 |
|
|
FileHandler::FileHandler();
|
16 |
|
|
FileHandler::~FileHandler();
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
ObjectLinkedList<FileInfo> *listDirectory(String &fileDirectory);
|
20 |
|
|
ObjectLinkedList<FileInfo> *listDirectory(char *fileDirectory);
|
21 |
|
|
int getFileSize(char *fileName);
|
22 |
|
|
int getFileSize(const String &fileName);
|
23 |
|
|
FileInfo *getFileInfo(const String &fileName);
|
24 |
|
|
FileInfo *getFileInfo(char *fileName);
|
25 |
|
|
|
26 |
|
|
private:
|
27 |
|
|
FileInfo *createFileInfo(char *path, char *fileName);
|
28 |
|
|
FileInfo *fileInfo;
|
29 |
|
|
};
|
30 |
|
|
|
31 |
|
|
#endif |