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 
27 {
28  OF_RESERVE_IVARS(OFMutableLHAArchiveEntry, 4)
29 }
30 
34 @property (readwrite, copy, nonatomic) OFString *compressionMethod;
35 
39 @property (readwrite, nonatomic) uint8_t headerLevel;
40 
44 @property (readwrite, nonatomic) uint16_t CRC16;
45 
49 @property (readwrite, nonatomic) uint8_t operatingSystemIdentifier;
50 
54 @property (readwrite, copy, nonatomic) OFArray OF_GENERIC(OFData *) *extensions;
55 
62 + (instancetype)entryWithFileName: (OFString *)fileName;
63 
71 - (instancetype)initWithFileName: (OFString *)fileName;
72 
77 - (void)makeImmutable;
78 @end
79 
80 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:103
A class which represents a mutable entry in an LHA archive.
Definition: OFMutableLHAArchiveEntry.h:26
A class which represents a mutable entry in an archive.
A class for handling strings.
Definition: OFString.h:134
A class which represents an entry in an LHA archive.
Definition: OFLHAArchiveEntry.h:33
A class for storing arbitrary data in an array.
Definition: OFData.h:41