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 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
19OF_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;
59@property (readonly, nonatomic) uint8_t headerLevel;
64@property (readonly, nonatomic) uint16_t CRC16;
69@property (readonly, nonatomic) uint8_t operatingSystemIdentifier;
74@property (readonly, copy, nonatomic) OFArray OF_GENERIC(OFData *) *extensions;
76- (instancetype)init OF_UNAVAILABLE;
77@end
78
79OF_ASSUME_NONNULL_END
80
81#import "OFMutableLHAArchiveEntry.h"
An abstract class for storing objects in an array.
Definition OFArray.h:105
A class for storing arbitrary data in an array.
Definition OFData.h:42
A class for storing, accessing and comparing dates.
Definition OFDate.h:30
A class which represents an entry in an LHA archive.
Definition OFLHAArchiveEntry.h:36
An abstract class for storing, adding and removing objects in an array.
Definition OFMutableArray.h:44
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 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