ObjFW
Loading...
Searching...
No Matches
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
23OF_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;
64@property (readonly, nonatomic) uint8_t compressionMethod;
69@property (readonly, nonatomic) uint16_t CRC16;
77@property (readonly, nonatomic) uint16_t minVersionNeeded;
82@property (readonly, nonatomic, getter=isDeleted) bool deleted;
87@property (readonly, nonatomic) uint16_t operatingSystemIdentifier;
93@property OF_NULLABLE_PROPERTY (readonly, retain, nonatomic) OFNumber *timeZone;
95- (instancetype)init OF_UNAVAILABLE;
96@end
97
98OF_ASSUME_NONNULL_END
99
100#import "OFMutableZooArchiveEntry.h"
A class for storing, accessing and comparing dates.
Definition OFDate.h:34
Provides a way to store a number in an object.
Definition OFNumber.h:47
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A class for handling strings.
Definition OFString.h:139
A class which represents an entry in a Zoo archive.
Definition OFZooArchiveEntry.h:37
A class which represents an entry in an archive.
Definition OFArchiveEntry.h:33
A protocol for the creation of copies.
Definition OFObject.h:1350
A protocol for the creation of mutable copies.
Definition OFObject.h:1371