Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (38 sloc) 1.289 kb
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KiwiConfiguration.h"
#import "KWCountType.h"
#import "KWMessageSpying.h"
@class KWMessagePattern;
@interface KWMessageTracker : NSObject<KWMessageSpying> {
@private
id subject;
KWMessagePattern *messagePattern;
KWCountType countType;
NSUInteger count;
NSUInteger receivedCount;
}
#pragma mark -
#pragma mark Initializing
- (id)initWithSubject:(id)anObject messagePattern:(KWMessagePattern *)aMessagePattern countType:(KWCountType)aCountType count:(NSUInteger)aCount;
+ (id)messageTrackerWithSubject:(id)anObject messagePattern:(KWMessagePattern *)aMessagePattern countType:(KWCountType)aCountType count:(NSUInteger)aCount;
#pragma mark -
#pragma mark Properties
@property (nonatomic, readonly) id subject;
@property (nonatomic, readonly) KWMessagePattern *messagePattern;
@property (nonatomic, readonly) KWCountType countType;
@property (nonatomic, readonly) NSUInteger count;
#pragma mark -
#pragma mark Stopping Tracking
- (void)stopTracking;
#pragma mark -
#pragma mark Getting Message Tracker Status
- (BOOL)succeeded;
#pragma mark -
#pragma mark Getting Phrases
- (NSString *)expectedCountPhrase;
- (NSString *)receivedCountPhrase;
@end
Jump to Line
Something went wrong with that request. Please try again.