CatNiP -test sprint-4-interim
catnip
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/MediaWikiQuery.h
Go to the documentation of this file.
00001 //
00002 //  MediaWikiQuery.h
00003 //  WebConnectionProto
00004 //
00005 //  Created by Antti V J Niemela, tkol on 5/24/11.
00006 //  Copyright 2011 University of Helsinki. All rights reserved.
00007 //
00008 
00009 #import <Foundation/Foundation.h>
00010 #import "MediaWikiQueryDelegate.h"
00011 
00012 @class MediaWikiQueryDelegate;
00013 
00014 @interface MediaWikiQuery : NSObject {
00015     id <MediaWikiQueryDelegate> queryDelegate;
00016     NSString* mediaWikiURLString;
00017     NSURLRequest* mediaWikiRequest;
00018     NSURLConnection* mediaWikiConnection;
00019     NSMutableData* receivedData;
00020     BOOL working;
00021     
00022 }
00024 - (id)initWithDelegate:(id <MediaWikiQueryDelegate>)mediaWikiQueryDelegate;
00026 - (id)initWithDelegate:(id <MediaWikiQueryDelegate>)mediaWikiQueryDelegate mediaWikiURL:(NSString*) mwURLString;
00028 - (BOOL)startQuery;
00030 - (NSString*) buildQueryURL;
00031 
00033 - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;
00035 - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
00037 - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error;
00039 - (void)connectionDidFinishLoading:(NSURLConnection *)connection;
00040 
00042 @property(copy,readwrite) NSString* mediaWikiURLString;
00043 @end
 All Classes Files Functions Variables Properties Defines