ObjFW
OFMutableZIPArchiveEntry.h
1 /*
2  * Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
3  *
4  * All rights reserved.
5  *
6  * This file is part of ObjFW. It may be distributed under the terms of the
7  * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8  * the packaging of this file.
9  *
10  * Alternatively, it may be distributed under the terms of the GNU General
11  * Public License, either version 2 or 3, which can be found in the file
12  * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13  * file.
14  */
15 
16 #import "OFZIPArchiveEntry.h"
17 #import "OFMutableArchiveEntry.h"
18 
19 OF_ASSUME_NONNULL_BEGIN
20 
28 {
29  OF_RESERVE_IVARS(OFMutableZIPArchiveEntry, 4)
30 }
31 
37 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFData *extraField;
38 
46 @property (readwrite, nonatomic)
48 
56 @property (readwrite, nonatomic)
58 
71 @property (readwrite, nonatomic)
72  OFZIPArchiveEntryCompressionMethod compressionMethod;
73 
77 @property (readwrite, nonatomic) uint32_t CRC32;
78 
85 @property (readwrite, nonatomic) uint32_t versionSpecificAttributes;
86 
92 @property (readwrite, nonatomic) uint16_t generalPurposeBitFlag;
93 
100 + (instancetype)entryWithFileName: (OFString *)fileName;
101 
109 - (instancetype)initWithFileName: (OFString *)fileName;
110 
115 - (void)makeImmutable;
116 @end
117 
118 OF_ASSUME_NONNULL_END
OFZIPArchiveEntryAttributeCompatibility
Attribute compatibility part of ZIP versions.
Definition: OFZIPArchiveEntry.h:42
A class for storing arbitrary data in an array.
Definition: OFData.h:42
A class which represents a mutable entry in the central directory of a ZIP archive.
Definition: OFMutableZIPArchiveEntry.h:29
A class for handling strings.
Definition: OFString.h:135
A class which represents an entry in the central directory of a ZIP archive.
Definition: OFZIPArchiveEntry.h:107
A class which represents a mutable entry in an archive.
Definition: OFMutableArchiveEntry.h:25