ObjFW
OFMutableLHAArchiveEntry.h
1 /*
2  * Copyright (c) 2008-2021 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 
18 OF_ASSUME_NONNULL_BEGIN
19 
27 {
28  OF_RESERVE_IVARS(OFMutableLHAArchiveEntry, 4)
29 }
30 
34 @property (readwrite, copy, nonatomic) OFString *fileName;
35 
39 @property (readwrite, copy, nonatomic) OFString *compressionMethod;
40 
44 @property (readwrite, nonatomic) uint32_t compressedSize;
45 
49 @property (readwrite, nonatomic) uint32_t uncompressedSize;
50 
54 @property (readwrite, retain, nonatomic) OFDate *date;
55 
59 @property (readwrite, nonatomic) uint8_t headerLevel;
60 
64 @property (readwrite, nonatomic) uint16_t CRC16;
65 
69 @property (readwrite, nonatomic) uint8_t operatingSystemIdentifier;
70 
74 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic)
75  OFString *fileComment;
76 
80 @property OF_NULLABLE_PROPERTY (readwrite, retain, nonatomic) OFNumber *mode;
81 
85 @property OF_NULLABLE_PROPERTY (readwrite, retain, nonatomic) OFNumber *UID;
86 
90 @property OF_NULLABLE_PROPERTY (readwrite, retain, nonatomic) OFNumber *GID;
91 
95 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFString *owner;
96 
100 @property OF_NULLABLE_PROPERTY (readwrite, copy, nonatomic) OFString *group;
101 
105 @property OF_NULLABLE_PROPERTY (readwrite, retain, nonatomic)
106  OFDate *modificationDate;
107 
111 @property (readwrite, copy, nonatomic) OFArray OF_GENERIC(OFData *) *extensions;
112 
117 - (void)makeImmutable;
118 @end
119 
120 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:92
A class for storing arbitrary data in an array.
Definition: OFData.h:40
A class for storing, accessing and comparing dates.
Definition: OFDate.h:36
A class which represents an entry in an LHA archive.
Definition: OFLHAArchiveEntry.h:34
A class which represents a mutable entry in an LHA archive.
Definition: OFMutableLHAArchiveEntry.h:27
Provides a way to store a number in an object.
Definition: OFNumber.h:49
A class for handling strings.
Definition: OFString.h:132