ObjFW
OFMutableZIPArchiveEntry.h
1 /*
2  * Copyright (c) 2008-2021 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 
18 OF_ASSUME_NONNULL_BEGIN
19 
28 {
29  OF_RESERVE_IVARS(OFMutableZIPArchiveEntry, 4)
30 }
31 
35 @property (readwrite, copy, nonatomic) OFString *fileName;
36 
40 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
41  OFString *fileComment;
42 
48 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFData *extraField;
49 
57 @property (readwrite, nonatomic) uint16_t versionMadeBy;
58 
66 @property (readwrite, nonatomic) uint16_t minVersionNeeded;
67 
73 @property (readwrite, retain, nonatomic) OFDate *modificationDate;
74 
87 @property (readwrite, nonatomic) uint16_t compressionMethod;
88 
92 @property (readwrite, nonatomic) uint64_t compressedSize;
93 
97 @property (readwrite, nonatomic) uint64_t uncompressedSize;
98 
102 @property (readwrite, nonatomic) uint32_t CRC32;
103 
110 @property (readwrite, nonatomic) uint32_t versionSpecificAttributes;
111 
117 @property (readwrite, nonatomic) uint16_t generalPurposeBitFlag;
118 
123 - (void)makeImmutable;
124 @end
125 
126 OF_ASSUME_NONNULL_END
A class for storing arbitrary data in an array.
Definition: OFData.h:40
A class for storing, accessing and comparing dates.
Definition: OFDate.h:36
A class which represents a mutable entry in the central directory of a ZIP archive.
Definition: OFMutableZIPArchiveEntry.h:28
A class for handling strings.
Definition: OFString.h:132
A class which represents an entry in the central directory of a ZIP archive.
Definition: OFZIPArchiveEntry.h:101