ObjFW
Loading...
Searching...
No Matches
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
23OF_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;
63@property (readonly, nonatomic) uint8_t headerLevel;
68@property (readonly, nonatomic) uint16_t CRC16;
73@property (readonly, nonatomic) uint8_t operatingSystemIdentifier;
78@property (readonly, copy, nonatomic) OFArray OF_GENERIC(OFData *) *extensions;
80- (instancetype)init OF_UNAVAILABLE;
81@end
82
83OF_ASSUME_NONNULL_END
84
85#import "OFMutableLHAArchiveEntry.h"
An abstract class for storing objects in an array.
Definition OFArray.h:109
A class for storing arbitrary data in an array.
Definition OFData.h:46
A class for storing, accessing and comparing dates.
Definition OFDate.h:34
A class which represents an entry in an LHA archive.
Definition OFLHAArchiveEntry.h:40
An abstract class for storing, adding and removing objects in an array.
Definition OFMutableArray.h:48
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 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