2012-07-27 16:58:27 +00:00
|
|
|
#ifndef _FOLDER_H_
|
|
|
|
#define _FOLDER_H_
|
|
|
|
|
|
|
|
#include "FileData.h"
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class SystemData;
|
|
|
|
|
|
|
|
class FolderData : public FileData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FolderData(SystemData* system, std::string path, std::string name);
|
|
|
|
~FolderData();
|
|
|
|
|
|
|
|
bool isFolder();
|
|
|
|
std::string getName();
|
|
|
|
std::string getPath();
|
|
|
|
|
|
|
|
unsigned int getFileCount();
|
|
|
|
FileData* getFile(unsigned int i);
|
|
|
|
|
|
|
|
void pushFileData(FileData* file);
|
2012-08-02 04:03:15 +00:00
|
|
|
|
|
|
|
void sort();
|
2012-07-27 16:58:27 +00:00
|
|
|
private:
|
|
|
|
SystemData* mSystem;
|
|
|
|
std::string mPath;
|
|
|
|
std::string mName;
|
|
|
|
std::vector<FileData*> mFileVector;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|