ObjFW
Loading...
Searching...
No Matches
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
22OF_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)
60@property OF_NULLABLE_PROPERTY (readwrite, retain, nonatomic)
66@property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
75+ (instancetype)entryWithFileName: (OFString *)fileName;
76
84- (instancetype)initWithFileName: (OFString *)fileName;
85
90- (void)makeImmutable;
91@end
92
93OF_ASSUME_NONNULL_END
OFArchiveEntryFileType OFTarArchiveEntryType
The type of the archive entry.
Definition OFTarArchiveEntry.h:41
A class for storing arbitrary data in an array.
Definition OFData.h:46
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:84
A class which represents a mutable entry of a tar archive.
Definition OFMutableTarArchiveEntry.h:31
OFString * amigaComment
The Amiga comment of the file.
Definition OFMutableTarArchiveEntry.h:68
OFDictionary * extendedHeader
The PAX extended header of the Tar archive entry.
Definition OFMutableTarArchiveEntry.h:56
OFNumber * amigaProtection
The Amiga Protection of the file (see OFFileAmigaProtectionMask).
Definition OFMutableTarArchiveEntry.h:62
void makeImmutable()
Converts the OFMutableTarArchiveEntry to an immutable OFTarArchiveEntry.
Definition OFMutableTarArchiveEntry.m:206
Provides a way to store a number in an object.
Definition OFNumber.h:47
id copy()
Returns the class.
Definition OFObject.m:1326
A class for handling strings.
Definition OFString.h:143
A class which represents an entry of a tar archive.
Definition OFTarArchiveEntry.h:134
A class which represents a mutable entry in an archive.
Definition OFMutableArchiveEntry.h:29
instancetype retain()
Increases the retain count.