-
Notifications
You must be signed in to change notification settings - Fork 0
/
A2SApplication.m
38 lines (29 loc) · 1005 Bytes
/
A2SApplication.m
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
/*
* Copyright 2021-2024 Johannes Brakensiek <letterus at devbeejohn.de>
*
* This software is licensed under the GNU General Public License
* (version 2.0 or later). See the LICENSE file in this distribution.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#import "A2SEvolutionDataService.h"
#import "Model/A2SIpPhoneDirectory.h"
#import <ObjFW/ObjFW.h>
@interface A2SApplication: OFObject <OFApplicationDelegate>
@end
OF_APPLICATION_DELEGATE(A2SApplication)
@implementation A2SApplication
- (void)applicationDidFinishLaunching:(OFNotification *)notification
{
A2SEvolutionDataService *evolutionService =
[[A2SEvolutionDataService alloc] init];
A2SIpPhoneDirectory *phoneDirectory =
[[A2SIpPhoneDirectory alloc] init];
[phoneDirectory importFromEvolutionBook:evolutionService.contacts];
[OFStdOut writeString:phoneDirectory.stringBySerializing];
[OFStdErr writeLine:@"Finished!"];
[evolutionService release];
[phoneDirectory release];
[OFApplication terminate];
}
@end