BLIP/BLIPDispatcher.h
changeset 1 8267d5c429c4
child 2 9fdd8dba529c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/BLIP/BLIPDispatcher.h	Sat May 24 13:26:02 2008 -0700
     1.3 @@ -0,0 +1,28 @@
     1.4 +//
     1.5 +//  BLIPDispatcher.h
     1.6 +//  MYNetwork
     1.7 +//
     1.8 +//  Created by Jens Alfke on 5/15/08.
     1.9 +//  Copyright 2008 Jens Alfke. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#import <Foundation/Foundation.h>
    1.13 +@class MYTarget, BLIPMessage;
    1.14 +
    1.15 +
    1.16 +@interface BLIPDispatcher : NSObject 
    1.17 +{
    1.18 +    NSMutableArray *_predicates, *_targets;
    1.19 +    BLIPDispatcher *_parent;
    1.20 +}
    1.21 +
    1.22 +@property (retain) BLIPDispatcher *parent;
    1.23 +
    1.24 +- (void) addTarget: (MYTarget*)target forPredicate: (NSPredicate*)predicate;
    1.25 +- (void) removeTarget: (MYTarget*)target;
    1.26 +
    1.27 +- (void) addTarget: (MYTarget*)target forValueOfProperty: (NSString*)value forKey: (NSString*)key;
    1.28 +
    1.29 +- (BOOL) dispatchMessage: (BLIPMessage*)message;
    1.30 +
    1.31 +@end