blob: 1653181320e06d70f47668b372e72f8f5ce1a113 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// SDLSetAppIcon.m
//
#import "SDLSetAppIcon.h"
#import "SDLNames.h"
@implementation SDLSetAppIcon
- (instancetype)init {
if (self = [super initWithName:SDLNameSetAppIcon]) {
}
return self;
}
- (instancetype)initWithFileName:(NSString *)fileName {
self = [self init];
if (!self) {
return nil;
}
self.syncFileName = fileName;
return self;
}
- (void)setSyncFileName:(NSString *)syncFileName {
if (syncFileName != nil) {
[parameters setObject:syncFileName forKey:SDLNameSyncFileName];
} else {
[parameters removeObjectForKey:SDLNameSyncFileName];
}
}
- (NSString *)syncFileName {
return [parameters objectForKey:SDLNameSyncFileName];
}
@end
|