ObjFW
OFTarArchiveEntry.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2024 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 "OFObject.h"
21 #import "OFArchiveEntry.h"
22 
23 OF_ASSUME_NONNULL_BEGIN
24 
27 @class OFDate;
28 @class OFNumber;
29 
33 typedef enum {
51 
59 {
60  OFString *_fileName;
61  OFNumber *_POSIXPermissions, *_ownerAccountID, *_groupOwnerAccountID;
62  unsigned long long _compressedSize, _uncompressedSize;
63  OFDate *_modificationDate;
65  OFString *_Nullable _targetFileName;
66  OFString *_Nullable _ownerAccountName;
67  OFString *_Nullable _groupOwnerAccountName;
68  unsigned long _deviceMajor, _deviceMinor;
69  OF_RESERVE_IVARS(OFTarArchiveEntry, 4)
70 }
71 
77 @property (readonly, nonatomic) OFTarArchiveEntryType type;
78 
82 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
83  OFString *targetFileName;
84 
88 @property (readonly, nonatomic) unsigned long deviceMajor;
89 
93 @property (readonly, nonatomic) unsigned long deviceMinor;
94 
95 - (instancetype)init OF_UNAVAILABLE;
96 @end
97 
98 OF_ASSUME_NONNULL_END
99 
100 #import "OFMutableTarArchiveEntry.h"
Definition: OFTarArchiveEntry.h:35
OFTarArchiveEntryType
The type of the archive entry.
Definition: OFTarArchiveEntry.h:33
Definition: OFTarArchiveEntry.h:43
A class which represents an entry in an archive.
Definition: OFArchiveEntry.h:26
A class for storing, accessing and comparing dates.
Definition: OFDate.h:33
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
A class which represents an entry of a tar archive.
Definition: OFTarArchiveEntry.h:57
Definition: OFTarArchiveEntry.h:41
A class for handling strings.
Definition: OFString.h:142
Provides a way to store a number in an object.
Definition: OFNumber.h:46
Definition: OFTarArchiveEntry.h:39
Definition: OFTarArchiveEntry.h:37
A protocol for the creation of mutable copies.
Definition: OFObject.h:1371
Definition: OFTarArchiveEntry.h:45
A protocol for the creation of copies.
Definition: OFObject.h:1350
Definition: OFTarArchiveEntry.h:47
Definition: OFTarArchiveEntry.h:49