]> err.no Git - sope/blob - libFoundation/Foundation/NSDistributedNotificationCenter.h
Drop apache 1 build-dependency
[sope] / libFoundation / Foundation / NSDistributedNotificationCenter.h
1 /* 
2    NSDistributedNotification.h
3
4    Copyright (C) 1999 MDlink online service center, Helge Hess
5    All rights reserved.
6    
7    Author: Helge Hess <helge.hess@mdlink.de>
8
9    This file is part of libFoundation.
10
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
15    documentation.
16
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.
23 */
24
25 #ifndef __NSDistributedNotificationCenter_H__
26 #define __NSDistributedNotificationCenter_H__
27
28 #include <Foundation/NSNotification.h>
29
30 @class NSString;
31
32 LF_EXPORT NSString *NSLocalNotificationCenterType;
33
34 typedef enum {
35   NSNotificationSuspensionBehaviorDrop,
36   NSNotificationSuspensionBehaviorCoalesce,
37   NSNotificationSuspensionBehaviorHold,
38   NSNotificationSuspensionBehaviorDeliverImmediatly
39 } NSNotificationSuspensionBehavior;
40
41 @interface NSDistributedNotificationCenter : NSNotificationCenter
42
43 + (NSDistributedNotificationCenter *)notificationCenterForType:(NSString *)_type;
44
45 /* observers */
46
47 - (void)addObserver:(id)_observer selector:(SEL)_selector
48   name:(NSString *)_notificationName object:(NSString *)_object
49   suspensionBehavior:(NSNotificationSuspensionBehavior)_suspensionBehaviour;
50
51 /* posting */
52
53 - (void)postNotificationName:(NSString *)_name object:(id)_object
54   userInfo:(NSDictionary *)_ui deliverImmediatly:(BOOL)_flag;
55
56 /* suspension */
57
58 - (void)setSuspended:(BOOL)_flag;
59 - (BOOL)suspended;
60
61 @end
62
63 #endif /* __NSDistributedNotificationCenter_H__ */
64
65 /*
66   Local Variables:
67   c-basic-offset: 4
68   tab-width: 8
69   End:
70 */