mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-06-17 22:29:32 +00:00
43 lines
762 B
C++
43 lines
762 B
C++
#ifndef FILEDESCRIPTIVEENTRY_H
|
|
#define FILEDESCRIPTIVEENTRY_H
|
|
|
|
#include "tspair.h"
|
|
#include <QDebug>
|
|
#include "applestring.h"
|
|
|
|
class GenericFile;
|
|
|
|
|
|
class FileDescriptiveEntry
|
|
{
|
|
public:
|
|
|
|
quint8 fileTypeFlags;
|
|
AppleString filename;
|
|
quint16 lengthInSectors;
|
|
bool deleted;
|
|
|
|
FileDescriptiveEntry();
|
|
|
|
bool operator<(const FileDescriptiveEntry& f1) const;
|
|
|
|
QString fileTypeIdentifier();
|
|
|
|
bool isLocked();
|
|
|
|
void dump();
|
|
|
|
void catalog();
|
|
|
|
void setFirstTSListSector(TSPair ts);
|
|
TSPair firstTSListSector() const;
|
|
|
|
void updateGenericFile(GenericFile *file);
|
|
|
|
private:
|
|
TSPair m_firstTSListSector;
|
|
|
|
};
|
|
Q_DECLARE_METATYPE(FileDescriptiveEntry);
|
|
#endif // FILEDESCRIPTIVEENTRY_H
|