ObjFW
Loading...
Searching...
No Matches
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
23OF_ASSUME_NONNULL_BEGIN
24
27@class OFDate;
28@class OFNumber;
29
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;
82@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
83 OFString *targetFileName;
88@property (readonly, nonatomic) unsigned long deviceMajor;
93@property (readonly, nonatomic) unsigned long deviceMinor;
95- (instancetype)init OF_UNAVAILABLE;
96@end
97
98OF_ASSUME_NONNULL_END
99
100#import "OFMutableTarArchiveEntry.h"
OFTarArchiveEntryType
The type of the archive entry.
Definition OFTarArchiveEntry.h:33
@ OFTarArchiveEntryTypeDirectory
Definition OFTarArchiveEntry.h:45
@ OFTarArchiveEntryTypeFile
Definition OFTarArchiveEntry.h:35
@ OFTarArchiveEntryTypeLink
Definition OFTarArchiveEntry.h:37
@ OFTarArchiveEntryTypeBlockDevice
Definition OFTarArchiveEntry.h:43
@ OFTarArchiveEntryTypeSymlink
Definition OFTarArchiveEntry.h:39
@ OFTarArchiveEntryTypeContiguousFile
Definition OFTarArchiveEntry.h:49
@ OFTarArchiveEntryTypeFIFO
Definition OFTarArchiveEntry.h:47
@ OFTarArchiveEntryTypeCharacterDevice
Definition OFTarArchiveEntry.h:41
A class for storing, accessing and comparing dates.
Definition OFDate.h:34
Provides a way to store a number in an object.
Definition OFNumber.h:47
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A class for handling strings.
Definition OFString.h:139
A class which represents an entry of a tar archive.
Definition OFTarArchiveEntry.h:60
A class which represents an entry in an archive.
Definition OFArchiveEntry.h:33
A protocol for the creation of copies.
Definition OFObject.h:1350
A protocol for the creation of mutable copies.
Definition OFObject.h:1371