Changeset 14442 for lang/objective-c

Show
Ignore:
Timestamp:
06/23/08 03:19:28 (5 months ago)
Author:
lyokato
Message:

lang/objective-c/Atompub: added client-delegate class

Location:
lang/objective-c/Atompub/trunk
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-c/Atompub/trunk/Classes/AtompubClient.h

    r14252 r14442  
    11#import <Foundation/Foundation.h> 
    22#import "AtompubCredential.h" 
    3 #import "AtompubClientDelegate.h" 
    43 
    54#define defaultTimeoutInterval 60.0 
     
    2120 
    2221@class AtompubCacheStorage, AtomEntry; 
     22@protocol AtompubClientDelegate; 
    2323 
    2424@interface AtompubClient : NSObject { 
    2525  NSObject <AtompubCredential> *credential; 
    2626  NSObject <AtompubClientDelegate> *delegate; 
    27   unsigned int timeoutInterval; 
     27  NSTimeInterval timeoutInterval; 
    2828  NSString *agentName; 
    2929  AtompubClientFetchMode fetchMode; 
     
    4545- (void)setDelegate:(NSObject <AtompubClientDelegate> *)target; 
    4646- (void)setCredential:(NSObject <AtompubCredential> *)aCredential; 
    47 - (unsigned int)timeoutInterval; 
    48 - (void)setTimeoutInterval:(unsigned int)interval; 
     47- (NSTimeInterval)timeoutInterval; 
     48- (void)setTimeoutInterval:(NSTimeInterval)interval; 
    4949- (NSData *)responseData; 
    5050- (NSHTTPURLResponse *)lastResponse; 
  • lang/objective-c/Atompub/trunk/Classes/AtompubClient.m

    r14252 r14442  
    6767} 
    6868 
    69 - (unsigned int)timeoutInterval { 
     69- (NSTimeInterval)timeoutInterval { 
    7070  return timeoutInterval; 
    7171} 
     
    8383} 
    8484 
    85 - (void)setTimeoutInterval:(unsigned int)interval { 
     85- (void)setTimeoutInterval:(NSTimeInterval)interval { 
    8686  timeoutInterval = interval; 
    8787} 
  • lang/objective-c/Atompub/trunk/TASK.txt

    r14252 r14442  
    1111- add KeyChain controller to each AtompubCredential class for both Mac OSX and iPhone OS 
    1212- make this package one single framework. 
    13  
     13- add a credential class for OAuth