ObjFW
OFMutableTarArchiveEntry.h
1 /*
2  * Copyright (c) 2008-2026 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 "OFTarArchiveEntry.h"
21 
22 OF_ASSUME_NONNULL_BEGIN
23 
30 {
31  OF_RESERVE_IVARS(OFMutableTarArchiveEntry, 4)
32 }
33 
39 #if OF_GCC_VERSION >= 405
40 # pragma GCC diagnostic push
41 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
42 #endif
43 @property (readwrite, nonatomic) OFTarArchiveEntryType type
44  OF_DEPRECATED(ObjFW, 1, 5, "Use -[OFMutableArchiveEntry fileType] instead");
45 #if OF_GCC_VERSION >= 405
46 # pragma GCC diagnostic pop
47 #endif
48 
54 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
55  OFDictionary OF_GENERIC(OFString *, OFData *) *extendedHeader;
56 
60 @property OF_NULLABLE_PROPERTY (readwrite, retain, nonatomic)
61  OFNumber *amigaProtection;
62 
66 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
67  OFString *amigaComment;
68 
75 + (instancetype)entryWithFileName: (OFString *)fileName;
76 
84 - (instancetype)initWithFileName: (OFString *)fileName;
85 
90 - (void)makeImmutable;
91 @end
92 
93 OF_ASSUME_NONNULL_END
OFArchiveEntryFileType
The file type of an archive entry.
Definition: OFArchiveEntry.h:36
A class which represents an entry of a tar archive.
Definition: OFTarArchiveEntry.h:131
A class which represents a mutable entry in an archive.
A class for handling strings.
Definition: OFString.h:142
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:82
Provides a way to store a number in an object.
Definition: OFNumber.h:46
A class which represents a mutable entry of a tar archive.
Definition: OFMutableTarArchiveEntry.h:29
A class for storing arbitrary data in an array.
Definition: OFData.h:45