ObjFW
OFLHAArchiveEntry.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 "OFObject.h"
17 #import "OFArchiveEntry.h"
18 
19 OF_ASSUME_NONNULL_BEGIN
20 
21 @class OFArray OF_GENERIC(ObjectType);
22 @class OFData;
23 @class OFDate;
24 @class OFMutableArray OF_GENERIC(ObjectType);
25 @class OFNumber;
26 @class OFString;
27 
35 {
36  OFString *_fileName, *_Nullable _directoryName, *_compressionMethod;
37  unsigned long long _compressedSize, _uncompressedSize;
38  OFDate *_modificationDate;
39  uint8_t _headerLevel;
40  uint16_t _CRC16;
41  uint8_t _operatingSystemIdentifier;
42  OFString *_Nullable _fileComment;
43  OFNumber *_Nullable _POSIXPermissions, *_Nullable _ownerAccountID;
44  OFNumber *_Nullable _groupOwnerAccountID;
45  OFString *_Nullable _ownerAccountName;
46  OFString *_Nullable _groupOwnerAccountName;
47  OFMutableArray OF_GENERIC(OFData *) *_extensions;
48  OF_RESERVE_IVARS(OFLHAArchiveEntry, 4)
49 }
50 
54 @property (readonly, copy, nonatomic) OFString *compressionMethod;
55 
59 @property (readonly, nonatomic) uint8_t headerLevel;
60 
64 @property (readonly, nonatomic) uint16_t CRC16;
65 
69 @property (readonly, nonatomic) uint8_t operatingSystemIdentifier;
70 
74 @property (readonly, copy, nonatomic) OFArray OF_GENERIC(OFData *) *extensions;
75 
76 - (instancetype)init OF_UNAVAILABLE;
77 @end
78 
79 OF_ASSUME_NONNULL_END
80 
81 #import "OFMutableLHAArchiveEntry.h"
An abstract class for storing objects in an array.
Definition: OFArray.h:103
A class which represents an entry in an archive.
Definition: OFArchiveEntry.h:22
A class for storing, accessing and comparing dates.
Definition: OFDate.h:29
The root class for all other classes inside ObjFW.
Definition: OFObject.h:686
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:43
A class for handling strings.
Definition: OFString.h:134
A class which represents an entry in an LHA archive.
Definition: OFLHAArchiveEntry.h:33
Provides a way to store a number in an object.
Definition: OFNumber.h:42
A protocol for the creation of mutable copies.
Definition: OFObject.h:1367
A protocol for the creation of copies.
Definition: OFObject.h:1346
A class for storing arbitrary data in an array.
Definition: OFData.h:41