ObjFW
OFLHAArchiveEntry.h
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 
25 @class OFArray OF_GENERIC(ObjectType);
26 @class OFData;
27 @class OFDate;
28 @class OFMutableArray OF_GENERIC(ObjectType);
29 @class OFNumber;
30 @class OFString;
31 
39 {
40  OFString *_fileName, *_Nullable _directoryName, *_compressionMethod;
41  unsigned long long _compressedSize, _uncompressedSize;
42  OFDate *_modificationDate;
43  uint8_t _headerLevel;
44  uint16_t _CRC16;
45  uint8_t _operatingSystemIdentifier;
46  OFString *_Nullable _fileComment;
47  OFNumber *_Nullable _POSIXPermissions, *_Nullable _ownerAccountID;
48  OFNumber *_Nullable _groupOwnerAccountID;
49  OFString *_Nullable _ownerAccountName;
50  OFString *_Nullable _groupOwnerAccountName;
51  OFMutableArray OF_GENERIC(OFData *) *_extensions;
52  OF_RESERVE_IVARS(OFLHAArchiveEntry, 4)
53 }
54 
58 @property (readonly, copy, nonatomic) OFString *compressionMethod;
59 
63 @property (readonly, nonatomic) uint8_t headerLevel;
64 
68 @property (readonly, nonatomic) uint16_t CRC16;
69 
73 @property (readonly, nonatomic) uint8_t operatingSystemIdentifier;
74 
78 @property (readonly, copy, nonatomic) OFArray OF_GENERIC(OFData *) *extensions;
79 
80 - (instancetype)init OF_UNAVAILABLE;
81 @end
82 
83 OF_ASSUME_NONNULL_END
84 
85 #import "OFMutableLHAArchiveEntry.h"
An abstract class for storing objects in an array.
Definition: OFArray.h:107
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
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:47
A class for handling strings.
Definition: OFString.h:142
A class which represents an entry in an LHA archive.
Definition: OFLHAArchiveEntry.h:37
Provides a way to store a number in an object.
Definition: OFNumber.h:46
A protocol for the creation of mutable copies.
Definition: OFObject.h:1371
A protocol for the creation of copies.
Definition: OFObject.h:1350
A class for storing arbitrary data in an array.
Definition: OFData.h:45