2 NSDistributedNotification.h
4 Copyright (C) 1999 MDlink online service center, Helge Hess
7 Author: Helge Hess <helge.hess@mdlink.de>
9 This file is part of libFoundation.
11 Permission to use, copy, modify, and distribute this software and its
12 documentation for any purpose and without fee is hereby granted, provided
13 that the above copyright notice appear in all copies and that both that
14 copyright notice and this permission notice appear in supporting
17 We disclaim all warranties with regard to this software, including all
18 implied warranties of merchantability and fitness, in no event shall
19 we be liable for any special, indirect or consequential damages or any
20 damages whatsoever resulting from loss of use, data or profits, whether in
21 an action of contract, negligence or other tortious action, arising out of
22 or in connection with the use or performance of this software.
25 #ifndef __NSDistributedNotificationCenter_H__
26 #define __NSDistributedNotificationCenter_H__
28 #include <Foundation/NSNotification.h>
32 LF_EXPORT NSString *NSLocalNotificationCenterType;
35 NSNotificationSuspensionBehaviorDrop,
36 NSNotificationSuspensionBehaviorCoalesce,
37 NSNotificationSuspensionBehaviorHold,
38 NSNotificationSuspensionBehaviorDeliverImmediatly
39 } NSNotificationSuspensionBehavior;
41 @interface NSDistributedNotificationCenter : NSNotificationCenter
43 + (NSDistributedNotificationCenter *)notificationCenterForType:(NSString *)_type;
47 - (void)addObserver:(id)_observer selector:(SEL)_selector
48 name:(NSString *)_notificationName object:(NSString *)_object
49 suspensionBehavior:(NSNotificationSuspensionBehavior)_suspensionBehaviour;
53 - (void)postNotificationName:(NSString *)_name object:(id)_object
54 userInfo:(NSDictionary *)_ui deliverImmediatly:(BOOL)_flag;
58 - (void)setSuspended:(BOOL)_flag;
63 #endif /* __NSDistributedNotificationCenter_H__ */