summaryrefslogtreecommitdiffstats
blob: 617619c0a45761ff56b841f2a3e496c0dfb75591 (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
/*
 * Copyright (c) 2015 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#import "SwifTools/Notifier/NotificationCenterNotifierDelegate.h"

#include <string>

#include <SwifTools/Cocoa/CocoaUtil.h>
#include <SwifTools/Notifier/NotificationCenterNotifier.h>

@implementation NotificationCenterNotifierDelegate

using namespace Swift;

@synthesize notifier;

- (void)userNotificationCenter:(NSUserNotificationCenter *) center didActivateNotification:(NSUserNotification *)notification {
	(void)center;
	std::string identifier = NS2STDSTRING(notification.identifier);
	notifier->handleUserNotificationActivated(identifier);
}

@end