ObjFW
OFMutableLHAArchiveEntry.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 "OFLHAArchiveEntry.h"
17 #import "OFMutableArchiveEntry.h"
18 
19 OF_ASSUME_NONNULL_BEGIN
20 
28 {
29  OF_RESERVE_IVARS(OFMutableLHAArchiveEntry, 4)
30 }
31 
35 @property (readwrite, copy, nonatomic) OFString *compressionMethod;
36 
40 @property (readwrite, nonatomic) uint8_t headerLevel;
41 
45 @property (readwrite, nonatomic) uint16_t CRC16;
46 
50 @property (readwrite, nonatomic) uint8_t operatingSystemIdentifier;
51 
55 @property (readwrite, copy, nonatomic) OFArray OF_GENERIC(OFData *) *extensions;
56 
63 + (instancetype)entryWithFileName: (OFString *)fileName;
64 
72 - (instancetype)initWithFileName: (OFString *)fileName;
73 
78 - (void)makeImmutable;
79 @end
80 
81 OF_ASSUME_NONNULL_END
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 which represents an entry in an LHA archive.
Definition: OFLHAArchiveEntry.h:36
A class which represents a mutable entry in an LHA archive.
Definition: OFMutableLHAArchiveEntry.h:29
A class for handling strings.
Definition: OFString.h:135
A class which represents a mutable entry in an archive.
Definition: OFMutableArchiveEntry.h:26