mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
32 lines
646 B
C++
32 lines
646 B
C++
#ifndef _IDIRECTORY
|
|
#define _IDIRECTORY
|
|
|
|
#include "sharedtypes.h"
|
|
#include <typeinfo.h>
|
|
|
|
class nsCString;
|
|
|
|
class IDirEntry {
|
|
public:
|
|
virtual nsCString& getName(void)=0;
|
|
virtual IDirEntry* getParent(void)=0;
|
|
virtual int getAttributes(void)=0;
|
|
virtual int getSize(void)=0;
|
|
virtual void getPath(nsCString& aString)=0;
|
|
};
|
|
|
|
class IDirectory : public IDirEntry {
|
|
public:
|
|
virtual IDirEntry* getEntryAt(int anIndex)=0;
|
|
virtual void rescan(void)=0;
|
|
|
|
static IDirectory* openDirectory(const nsCString& aPath,const char* aFileSpec);
|
|
static void closeDirectory(IDirectory* aDirectory);
|
|
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|