ObjFW  Diff

Differences From Artifact [423181bd19]:

To Artifact [5cc0ae4076]:


23
24
25
26
27
28
29
30


31
32
33
34
35
36
37
23
24
25
26
27
28
29

30
31
32
33
34
35
36
37
38







-
+
+







#import "OFDate.h"
#import "OFNumber.h"
#import "OFString.h"

@implementation OFMutableLHAArchiveEntry
@dynamic fileName, compressionMethod, compressedSize, uncompressedSize;
@dynamic modificationDate, headerLevel, CRC16, operatingSystemIdentifier;
@dynamic fileComment, mode, UID, GID, owner, group, extensions;
@dynamic fileComment, POSIXPermissions, ownerAccountID, groupOwnerAccountID;
@dynamic ownerAccountName, groupOwnerAccountName, extensions;

+ (instancetype)entryWithFileName: (OFString *)fileName
{
	return [[[self alloc] initWithFileName: fileName] autorelease];
}

- (instancetype)initWithFileName: (OFString *)fileName
109
110
111
112
113
114
115
116

117
118
119


120
121
122
123

124
125
126


127
128
129
130

131
132
133


134
135
136
137

138
139
140


141
142
143
144

145
146
147


148
149
150
151
152
153
154
110
111
112
113
114
115
116

117
118


119
120
121
122
123

124
125


126
127
128
129
130

131
132


133
134
135
136
137

138
139


140
141
142
143
144

145
146


147
148
149
150
151
152
153
154
155







-
+

-
-
+
+



-
+

-
-
+
+



-
+

-
-
+
+



-
+

-
-
+
+



-
+

-
-
+
+







- (void)setFileComment: (OFString *)fileComment
{
	OFString *old = _fileComment;
	_fileComment = [fileComment copy];
	[old release];
}

- (void)setMode: (OFNumber *)mode
- (void)setPOSIXPermissions: (OFNumber *)POSIXPermissions
{
	OFNumber *old = _mode;
	_mode = [mode retain];
	OFNumber *old = _POSIXPermissions;
	_POSIXPermissions = [POSIXPermissions retain];
	[old release];
}

- (void)setUID: (OFNumber *)UID
- (void)setOwnerAccountID: (OFNumber *)ownerAccountID
{
	OFNumber *old = _UID;
	_UID = [UID retain];
	OFNumber *old = _ownerAccountID;
	_ownerAccountID = [ownerAccountID retain];
	[old release];
}

- (void)setGID: (OFNumber *)GID
- (void)setGroupOwnerAccountID: (OFNumber *)groupOwnerAccountID
{
	OFNumber *old = _GID;
	_GID = [GID retain];
	OFNumber *old = _groupOwnerAccountID;
	_groupOwnerAccountID = [groupOwnerAccountID retain];
	[old release];
}

- (void)setOwner: (OFString *)owner
- (void)setOwnerAccounutName: (OFString *)ownerAccountName
{
	OFString *old = _owner;
	_owner = [owner copy];
	OFString *old = _ownerAccountName;
	_ownerAccountName = [ownerAccountName copy];
	[old release];
}

- (void)setGroup: (OFString *)group
- (void)setGroupOwnerAccountName: (OFString *)groupOwnerAccountName
{
	OFString *old = _group;
	_group = [group copy];
	OFString *old = _groupOwnerAccountName;
	_groupOwnerAccountName = [groupOwnerAccountName copy];
	[old release];
}

- (void)setExtensions: (OFArray OF_GENERIC(OFData *) *)extensions
{
	OFArray OF_GENERIC(OFData *) *old = _extensions;
	_extensions = [extensions copy];