ObjFW
OFMutableTarArchiveEntry.h
1 /*
2  * Copyright (c) 2008-2023 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 "OFTarArchiveEntry.h"
17 #import "OFMutableArchiveEntry.h"
18 
19 OF_ASSUME_NONNULL_BEGIN
20 
28 {
29  OF_RESERVE_IVARS(OFMutableTarArchiveEntry, 4)
30 }
31 
37 @property (readwrite, nonatomic) OFTarArchiveEntryType type;
38 
42 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
43  OFString *targetFileName;
44 
48 @property (readwrite, nonatomic) unsigned long deviceMajor;
49 
53 @property (readwrite, nonatomic) unsigned long deviceMinor;
54 
61 + (instancetype)entryWithFileName: (OFString *)fileName;
62 
70 - (instancetype)initWithFileName: (OFString *)fileName;
71 
76 - (void)makeImmutable;
77 @end
78 
79 OF_ASSUME_NONNULL_END
OFTarArchiveEntryType
The type of the archive entry.
Definition: OFTarArchiveEntry.h:29
A class which represents a mutable entry of a tar archive.
Definition: OFMutableTarArchiveEntry.h:29
A class for handling strings.
Definition: OFString.h:135
A class which represents an entry of a tar archive.
Definition: OFTarArchiveEntry.h:56
A class which represents a mutable entry in an archive.
Definition: OFMutableArchiveEntry.h:26