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 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 "OFObject.h"
17 #import "OFArchiveEntry.h"
18 
19 OF_ASSUME_NONNULL_BEGIN
20 
23 @class OFDate;
24 @class OFNumber;
25 
29 typedef enum {
47 
55 {
56  OFString *_fileName;
57  OFNumber *_POSIXPermissions, *_ownerAccountID, *_groupOwnerAccountID;
58  unsigned long long _compressedSize, _uncompressedSize;
59  OFDate *_modificationDate;
61  OFString *_Nullable _targetFileName;
62  OFString *_Nullable _ownerAccountName;
63  OFString *_Nullable _groupOwnerAccountName;
64  unsigned long _deviceMajor, _deviceMinor;
65  OF_RESERVE_IVARS(OFTarArchiveEntry, 4)
66 }
67 
73 @property (readonly, nonatomic) OFTarArchiveEntryType type;
74 
78 @property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
79  OFString *targetFileName;
80 
84 @property (readonly, nonatomic) unsigned long deviceMajor;
85 
89 @property (readonly, nonatomic) unsigned long deviceMinor;
90 
91 - (instancetype)init OF_UNAVAILABLE;
92 @end
93 
94 OF_ASSUME_NONNULL_END
95 
96 #import "OFMutableTarArchiveEntry.h"
OFTarArchiveEntryType
The type of the archive entry.
Definition: OFTarArchiveEntry.h:29
@ OFTarArchiveEntryTypeDirectory
Definition: OFTarArchiveEntry.h:41
@ OFTarArchiveEntryTypeFile
Definition: OFTarArchiveEntry.h:31
@ OFTarArchiveEntryTypeLink
Definition: OFTarArchiveEntry.h:33
@ OFTarArchiveEntryTypeBlockDevice
Definition: OFTarArchiveEntry.h:39
@ OFTarArchiveEntryTypeSymlink
Definition: OFTarArchiveEntry.h:35
@ OFTarArchiveEntryTypeContiguousFile
Definition: OFTarArchiveEntry.h:45
@ OFTarArchiveEntryTypeFIFO
Definition: OFTarArchiveEntry.h:43
@ OFTarArchiveEntryTypeCharacterDevice
Definition: OFTarArchiveEntry.h:37
A class for storing, accessing and comparing dates.
Definition: OFDate.h:30
Provides a way to store a number in an object.
Definition: OFNumber.h:43
The root class for all other classes inside ObjFW.
Definition: OFObject.h:688
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 an entry in an archive.
Definition: OFArchiveEntry.h:29
A protocol for the creation of copies.
Definition: OFObject.h:1346
A protocol for the creation of mutable copies.
Definition: OFObject.h:1367