-
Notifications
You must be signed in to change notification settings - Fork 56
/
MZRESTSearch.h
36 lines (31 loc) · 857 Bytes
/
MZRESTSearch.h
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
27
28
29
30
31
32
33
34
35
36
//
// MZRESTSearch.h
// MetaZ
//
// Created by Brian Olsen on 18/11/09.
// Copyright 2009 Maven-Group. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <MetaZKit/MZRESTWrapper.h>
#import <MetaZKit/MZSearchProvider.h>
@interface MZRESTSearch : NSOperation <MZRESTWrapperDelegate>
{
id provider;
MZRESTWrapper* wrapper;
id<MZSearchProviderDelegate> delegate;
NSURL* searchURL;
NSString* verb;
NSDictionary* parameters;
BOOL isFinished;
BOOL isExecuting;
}
+ (Class)restWrapper;
@property(assign) BOOL isFinished;
@property(assign) BOOL isExecuting;
- (id)initWithProvider:(id)provider delegate:(id<MZSearchProviderDelegate>)delegate url:(NSURL *)url usingVerb:(NSString *)verb parameters:(NSDictionary *)params;
- (void)start;
- (BOOL)isConcurrent;
- (BOOL)isExecuting;
- (BOOL)isFinished;
- (void)cancel;
@end