| 1 |
bearsoft |
1.1 |
#ifndef __Directory_H__
|
| 2 |
|
|
#define __Directory_H__
|
| 3 |
|
|
|
| 4 |
|
|
#include "../../String/String.h"
|
| 5 |
|
|
#include "../../Binary/BinaryInput.h"
|
| 6 |
|
|
#include "../../LinkedList/StringLinkedList.h"
|
| 7 |
|
|
#include "../../String/ConfigInput.h"
|
| 8 |
|
|
#include "../../NetWork/PacketInfo.h"
|
| 9 |
|
|
#include "../../LinkedList/ObjectLinkedList.h"
|
| 10 |
|
|
#include "../../Html/HtmlMatrisList.h"
|
| 11 |
|
|
#include "../../Html/Button.h"
|
| 12 |
|
|
#include "../../Html/Link.h"
|
| 13 |
|
|
|
| 14 |
|
|
#include "Header.h"
|
| 15 |
|
|
|
| 16 |
|
|
class Directory
|
| 17 |
|
|
{
|
| 18 |
|
|
|
| 19 |
|
|
public:
|
| 20 |
|
|
|
| 21 |
|
|
Directory(Header *iHeader);
|
| 22 |
|
|
~Directory();
|
| 23 |
|
|
|
| 24 |
|
|
bool init();
|
| 25 |
|
|
void createFileMatris();
|
| 26 |
|
|
void createButtonMatris();
|
| 27 |
|
|
bool check();
|
| 28 |
|
|
bool checkIfThatIsADirectory(String &filePath);
|
| 29 |
|
|
bool readPermission;
|
| 30 |
|
|
|
| 31 |
|
|
private:
|
| 32 |
|
|
|
| 33 |
|
|
Header *header;
|
| 34 |
|
|
HtmlMatrisList<String> *fileMatris;
|
| 35 |
|
|
HtmlMatrisList<String> *buttonMatris;
|
| 36 |
|
|
|
| 37 |
|
|
Link *linkFileName;
|
| 38 |
|
|
Link *linkFileSize;
|
| 39 |
|
|
Link *linkFileType;
|
| 40 |
|
|
Link *linkLastModified;
|
| 41 |
|
|
|
| 42 |
|
|
int columnToSort;
|
| 43 |
|
|
|
| 44 |
|
|
|
| 45 |
|
|
};
|
| 46 |
|
|
|
| 47 |
|
|
#endif |