/FSKit/Source/iPhone/Common/FSKServiceBase.h

http://fskit.googlecode.com/ · C++ Header · 37 lines · 16 code · 6 blank · 15 comment · 0 complexity · 640a5e9f1ebe73a8bde83e0774fa2654 MD5 · raw file

  1. //
  2. // FamilySearchService.h
  3. // FSKit
  4. //
  5. // Created by Logan Allred on 9/16/07.
  6. // Copyright 2008 Logan Allred. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "FSKConnection.h"
  10. #import "enunciate_common.h"
  11. @interface FSKServiceBase : NSObject {
  12. FSKConnection *connection;
  13. id _delegate;
  14. NSString *moduleName;
  15. NSString *versionString;
  16. NSDictionary *properties;
  17. }
  18. - (id)initWithConnection:(FSKConnection *)familySearchConnection delegate:(id)theDelegate;
  19. -(void) makeFamilySearchRequest:(NSString *)endpoint idList:(NSSet *)idList parameters:(NSDictionary *)parameterDict;
  20. -(NSDictionary *)properties;
  21. // delegate methods
  22. -(void) requestFinished:(id <EnunciateXML>)response;
  23. -(void) requestFailed:(NSError *)error;
  24. @end
  25. /* Is this the right way to go?
  26. @interface NSObject (FSKServiceDelegate)
  27. // delegate methods
  28. - (void)service:(FSKServiceBase *)service didReturnResponse:(FSKResponse *)response;
  29. - (void)service:(FSKServiceBase *)service didFailWithError:(FSKError *)error;
  30. @end
  31. */