@@ -21,32 +21,11 @@ @class OFArray OF_GENERIC(ObjectType); @class OFData; @class OFDate; @class OFNumber; - -/*! @file */ - -/*! - * @brief The compression method of the archive entry. - */ -typedef enum of_lha_archive_method_t { - /*! No compression */ - OF_LHA_ARCHIVE_ENTRY_METHOD_LH0, - OF_LHA_ARCHIVE_ENTRY_METHOD_LZS, - OF_LHA_ARCHIVE_ENTRY_METHOD_LZ4, - OF_LHA_ARCHIVE_ENTRY_METHOD_LH1, - OF_LHA_ARCHIVE_ENTRY_METHOD_LH2, - OF_LHA_ARCHIVE_ENTRY_METHOD_LH3, - OF_LHA_ARCHIVE_ENTRY_METHOD_LH4, - OF_LHA_ARCHIVE_ENTRY_METHOD_LH5, - OF_LHA_ARCHIVE_ENTRY_METHOD_LH6, - OF_LHA_ARCHIVE_ENTRY_METHOD_LH7, - OF_LHA_ARCHIVE_ENTRY_METHOD_LH8, - /*! Directory */ - OF_LHA_ARCHIVE_ENTRY_METHOD_LHD -} of_lha_archive_method_t; +@class OFString; /*! * @class OFLHAArchiveEntry OFLHAArchiveEntry.h ObjFW/OFLHAArchiveEntry.h * * @brief A class which represents an entry in the central directory of a LHA @@ -55,12 +34,11 @@ @interface OFLHAArchiveEntry: OFObject { #ifdef OF_LHA_ARCHIVE_ENTRY_M @public #endif - of_lha_archive_method_t _method; - OFString *_fileName, *_Nullable _directoryName; + OFString *_fileName, *_Nullable _directoryName, *_method; uint32_t _compressedSize, _uncompressedSize; OFDate *_date; uint8_t _level; uint16_t _CRC16; uint8_t _operatingSystemIdentifier; @@ -69,20 +47,20 @@ OFString *_Nullable _owner, *_Nullable _group; OFDate *_Nullable _modificationDate; OFArray OF_GENERIC(OFData *) *_extensions; } -/*! - * @brief The method of the entry. - */ -@property (readonly, nonatomic) of_lha_archive_method_t method; - /*! * @brief The file name of the entry. */ @property (readonly, copy, nonatomic) OFString *fileName; +/*! + * @brief The method of the entry. + */ +@property (readonly, copy, nonatomic) OFString *method; + /*! * @brief The compressed size of the entry's file. */ @property (readonly, nonatomic) uint32_t compressedSize;