Differences From Artifact [bbf42fa9c7]:
- File
src/OFTarArchiveEntry.h
— part of check-in
[a325d5a1ee]
at
2022-08-27 21:37:06
on branch trunk
— Add OF(Mutable)ArchiveEntry protocol
Also makes OF(Mutable){LHA,Tar,ZIP}ArchiveEntry conform to it, providing
a common protocol to access archives. (user: js, size: 3125) [annotate] [blame] [check-ins using]
To Artifact [bbe0bc8d5f]:
- File
src/OFTarArchiveEntry.h
— part of check-in
[d281c3198b]
at
2022-08-27 22:29:44
on branch trunk
— OFTarArchiveEntry: Make mode/UID/GID an OFNumber
This is for consistency with OFLHAArchiveEntry. (user: js, size: 3137) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #import "OFArchiveEntry.h" OF_ASSUME_NONNULL_BEGIN /** @file */ @class OFDate; /** * @brief The type of the archive entry. */ typedef enum { /** Normal file */ OFTarArchiveEntryTypeFile = '0', | > | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #import "OFArchiveEntry.h" OF_ASSUME_NONNULL_BEGIN /** @file */ @class OFDate; @class OFNumber; /** * @brief The type of the archive entry. */ typedef enum { /** Normal file */ OFTarArchiveEntryTypeFile = '0', |
︙ | ︙ | |||
49 50 51 52 53 54 55 | * * @brief A class which represents an entry of a tar archive. */ @interface OFTarArchiveEntry: OFObject <OFArchiveEntry, OFCopying, OFMutableCopying> { OFString *_fileName; | | < | | | | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | * * @brief A class which represents an entry of a tar archive. */ @interface OFTarArchiveEntry: OFObject <OFArchiveEntry, OFCopying, OFMutableCopying> { OFString *_fileName; OFNumber *_mode, *_UID, *_GID; unsigned long long _compressedSize, _uncompressedSize; OFDate *_modificationDate; OFTarArchiveEntryType _type; OFString *_Nullable _targetFileName; OFString *_Nullable _owner, *_Nullable _group; unsigned long _deviceMajor, _deviceMinor; OF_RESERVE_IVARS(OFTarArchiveEntry, 4) } /** * @brief The mode of the entry. */ @property (readonly, retain, nonatomic) OFNumber *mode; /** * @brief The UID of the owner. */ @property (readonly, retain, nonatomic) OFNumber *UID; /** * @brief The GID of the group. */ @property (readonly, retain, nonatomic) OFNumber *GID; /** * @brief The date of the last modification of the file. */ @property (readonly, retain, nonatomic) OFDate *modificationDate; /** |
︙ | ︙ |