ObjFW
OFZooArchiveEntry.h
1 /*
2  * Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
3  *
4  * All rights reserved.
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License version 3.0 only,
8  * as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13  * version 3.0 for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * version 3.0 along with this program. If not, see
17  * <https://www.gnu.org/licenses/>.
18  */
19 
20 #import "OFObject.h"
21 #import "OFArchiveEntry.h"
22 
23 OF_ASSUME_NONNULL_BEGIN
24 
25 @class OFDate;
26 @class OFNumber;
27 @class OFString;
28 
36 {
37  uint8_t _headerType, _compressionMethod;
38 #ifdef OF_ZOO_ARCHIVE_M
39 @public
40 #endif
41  unsigned long long _nextHeaderOffset, _dataOffset;
42 @protected
43  uint16_t _lastModifiedFileDate, _lastModifiedFileTime;
44  uint16_t _CRC16;
45  unsigned long long _uncompressedSize, _compressedSize;
46  uint16_t _minVersionNeeded;
47  bool _deleted;
48  OFString *_Nullable _fileComment;
49  OFString *_fileName, *_Nullable _directoryName;
50  uint16_t _operatingSystemIdentifier;
51  OFNumber *_Nullable _POSIXPermissions;
52  int8_t _timeZone;
53  OF_RESERVE_IVARS(OFZooArchiveEntry, 4)
54 }
55 
59 @property (readonly, nonatomic) uint8_t headerType;
60 
64 @property (readonly, nonatomic) uint8_t compressionMethod;
65 
69 @property (readonly, nonatomic) uint16_t CRC16;
70 
77 @property (readonly, nonatomic) uint16_t minVersionNeeded;
78 
82 @property (readonly, nonatomic, getter=isDeleted) bool deleted;
83 
87 @property (readonly, nonatomic) uint16_t operatingSystemIdentifier;
88 
93 @property OF_NULLABLE_PROPERTY (readonly, retain, nonatomic) OFNumber *timeZone;
94 
95 - (instancetype)init OF_UNAVAILABLE;
96 @end
97 
98 OF_ASSUME_NONNULL_END
99 
100 #import "OFMutableZooArchiveEntry.h"
A class which represents an entry in an archive.
Definition: OFArchiveEntry.h:26
A class for storing, accessing and comparing dates.
Definition: OFDate.h:33
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
A class which represents an entry in a Zoo archive.
Definition: OFZooArchiveEntry.h:34
A class for handling strings.
Definition: OFString.h:142
Provides a way to store a number in an object.
Definition: OFNumber.h:46
A protocol for the creation of mutable copies.
Definition: OFObject.h:1371
A protocol for the creation of copies.
Definition: OFObject.h:1350