Permalink
Browse files

Merge branch 'master' of http://github.com/omz/AppSales-Mobile

Conflicts:
	AppSalesMobile.xcodeproj/project.pbxproj
	Classes/App.h
	Classes/App.m
	Classes/AppCell.m
	Classes/AppSalesMobileAppDelegate.h
	Classes/AppSalesMobileAppDelegate.m
	Classes/CountriesController.m
	Classes/Country.h
	Classes/Country.m
	Classes/Day.h
	Classes/Day.m
	Classes/DayCell.m
	Classes/DaysController.m
	Classes/Entry.m
	Classes/ReportManager.h
	Classes/ReportManager.m
	Classes/Review.h
	Classes/Review.m
	Classes/ReviewsController.m
	Classes/ReviewsListController.h
	Classes/ReviewsListController.m
	Classes/RootViewController.m
	Classes/SettingsViewController.m
	Classes/TrendGraphView.m
	Classes/WeekCell.m
	Classes/WeeksController.m
	English.lproj/SettingsViewController.xib
	German.lproj/Localizable.strings
	Images/Default.png
	Info.plist
	README.textile
	ReviewTemplate.html
  • Loading branch information...
2 parents 7de837b + 3a4da5b commit d49e6059c2cf9f13fb383c04e4fa0011a43a767e Jon Kean committed Jul 11, 2010
Showing with 19,084 additions and 7,113 deletions.
  1. +639 −199 AppSalesMobile.xcodeproj/project.pbxproj
  2. +1,728 −0 AppSalesMobile.xcodeproj/project.pbxproj.orig
  3. BIN Artwork/AppSalesIcon.lineform/323A186F-C7FA-4A23-A55D-EC0573904EC5-9890-0000AFB9A8ACC62E.png
  4. BIN Artwork/AppSalesIcon.lineform/data
  5. BIN Artwork/AppSalesIcon512.png
  6. BIN CalculatorButton2Highlighted.png
  7. BIN CalculatorButton2Normal.png
  8. BIN CalculatorButton3Highlighted.png
  9. BIN CalculatorButton3Normal.png
  10. BIN CalculatorButton4Highlighted.png
  11. BIN CalculatorButton4Normal.png
  12. BIN CalculatorButtonHighlighted.png
  13. BIN CalculatorButtonNormal.png
  14. BIN CalculatorClick.caf
  15. +0 −28 Classes/ASIAuthenticationDialog.h
  16. +0 −236 Classes/ASIAuthenticationDialog.m
  17. +0 −60 Classes/ASIFormDataRequest.h
  18. +0 −300 Classes/ASIFormDataRequest.m
  19. +0 −642 Classes/ASIHTTPRequest.h
  20. +0 −3,179 Classes/ASIHTTPRequest.m
  21. +0 −22 Classes/ASIInputStream.h
  22. +0 −103 Classes/ASIInputStream.m
  23. +0 −16 Classes/ASINSStringAdditions.h
  24. +0 −28 Classes/ASINSStringAdditions.m
  25. +0 −116 Classes/ASINetworkQueue.h
  26. +0 −341 Classes/ASINetworkQueue.m
  27. +5 −0 Classes/AbstractDayOrWeekController.m
  28. +2 −1 Classes/App.h
  29. +42 −39 Classes/App.m
  30. +11 −7 Classes/AppCell.m
  31. +13 −5 Classes/AppIconManager.m
  32. +23 −0 Classes/AppManager.h
  33. +86 −0 Classes/AppManager.m
  34. +5 −2 Classes/AppSalesMobileAppDelegate.h
  35. +18 −37 Classes/AppSalesMobileAppDelegate.m
  36. +409 −0 Classes/AsyncSocket.h
  37. +2,935 −0 Classes/AsyncSocket.m
  38. +52 −0 Classes/CalculatorView.h
  39. +508 −0 Classes/CalculatorView.m
  40. +26 −14 Classes/CountriesController.m
  41. +9 −6 Classes/Country.h
  42. +50 −33 Classes/Country.m
  43. +1 −2 Classes/CountryCell.h
  44. +30 −36 Classes/CountryCell.m
  45. +3 −1 Classes/CurrencyManager.m
  46. +14 −0 Classes/DDData.h
  47. +203 −0 Classes/DDData.m
  48. +12 −0 Classes/DDNumber.h
  49. +74 −0 Classes/DDNumber.m
  50. +52 −0 Classes/DDRange.h
  51. +70 −0 Classes/DDRange.m
  52. +42 −0 Classes/DashboardGraphView.h
  53. +571 −0 Classes/DashboardGraphView.m
  54. +38 −0 Classes/DashboardView.h
  55. +436 −0 Classes/DashboardView.m
  56. +38 −27 Classes/Day.h
  57. +332 −226 Classes/Day.m
  58. +2 −14 Classes/DayCell.h
  59. +8 −89 Classes/DayCell.m
  60. +31 −0 Classes/DayOrWeekCell.h
  61. +134 −0 Classes/DayOrWeekCell.m
  62. +9 −9 Classes/DaysController.m
  63. +5 −0 Classes/EntriesController.m
  64. +5 −3 Classes/Entry.h
  65. +16 −10 Classes/Entry.m
  66. +7 −3 Classes/EntryCell.m
  67. +5 −2 Classes/GraphView.m
  68. +43 −0 Classes/HTTPAuthenticationRequest.h
  69. +208 −0 Classes/HTTPAuthenticationRequest.m
  70. +67 −0 Classes/HTTPConnection.h
  71. +1,506 −0 Classes/HTTPConnection.m
  72. +41 −0 Classes/HTTPResponse.h
  73. +104 −0 Classes/HTTPResponse.m
  74. +64 −0 Classes/HTTPServer.h
  75. +367 −0 Classes/HTTPServer.m
  76. +23 −0 Classes/ImportExportViewController.h
  77. +210 −0 Classes/ImportExportViewController.m
  78. +18 −0 Classes/MovableView.h
  79. +50 −0 Classes/MovableView.m
  80. +23 −0 Classes/MyHTTPConnection.h
  81. +190 −0 Classes/MyHTTPConnection.m
  82. +17 −0 Classes/NSData+Compression.h
  83. +179 −0 Classes/NSData+Compression.m
  84. +18 −0 Classes/NSDateFormatter+SharedInstances.h
  85. +47 −0 Classes/NSDateFormatter+SharedInstances.m
  86. +1 −1 Classes/NSString+UnescapeHtml.h
  87. +47 −55 Classes/NSString+UnescapeHtml.m
  88. +45 −0 Classes/PadRootViewController.h
  89. +323 −0 Classes/PadRootViewController.m
  90. +2 −0 Classes/ProductCell.m
  91. +23 −0 Classes/ProgressHUD.h
  92. +89 −0 Classes/ProgressHUD.m
  93. +11 −19 Classes/ReportManager.h
  94. +572 −547 Classes/ReportManager.m
  95. +2 −2 Classes/ReviewCell.m
  96. +1 −6 Classes/ReviewManager.h
  97. +13 −47 Classes/ReviewManager.m
  98. +22 −0 Classes/ReviewSummaryView.h
  99. +96 −0 Classes/ReviewSummaryView.m
  100. +1 −0 Classes/ReviewsController.h
  101. +25 −15 Classes/ReviewsController.m
  102. +2 −1 Classes/ReviewsListController.h
  103. +34 −8 Classes/ReviewsListController.m
  104. +28 −0 Classes/ReviewsPane.h
  105. +164 −0 Classes/ReviewsPane.m
  106. +44 −40 Classes/RootViewController.m
  107. +1 −5 Classes/SettingsViewController.h
  108. +38 −47 Classes/SettingsViewController.m
  109. +6 −1 Classes/SingleReviewController.m
  110. +29 −1 Classes/StatisticsViewController.m
  111. +0 −16 Classes/TotalController.h
  112. +0 −57 Classes/TotalController.m
  113. +9 −2 Classes/TrendGraphView.m
  114. +34 −0 Classes/UIDevice+iPad.h
  115. +55 −0 Classes/UIDevice+iPad.m
  116. +2 −15 Classes/WeekCell.h
  117. +11 −81 Classes/WeekCell.m
  118. +18 −1 Classes/WeeksController.h
  119. +428 −11 Classes/WeeksController.m
  120. +48 −0 Classes/ZipArchive.h
  121. +337 −0 Classes/ZipArchive.mm
  122. +132 −0 Classes/crypt.h
  123. +177 −0 Classes/ioapi.c
  124. +75 −0 Classes/ioapi.h
  125. +15 −0 Classes/localhostAddresses.h
  126. +50 −0 Classes/localhostAddresses.m
  127. +281 −0 Classes/mztools.c
  128. +31 −0 Classes/mztools.h
  129. +1,598 −0 Classes/unzip.c
  130. +354 −0 Classes/unzip.h
  131. +1,219 −0 Classes/zip.c
  132. +235 −0 Classes/zip.h
  133. +37 −0 English.lproj/ImportHelp.html
  134. +52 −0 English.lproj/ImportTemplate.html
  135. +37 −0 German.lproj/ImportHelp.html
  136. +52 −0 German.lproj/ImportTemplate.html
  137. BIN German.lproj/Localizable.strings
  138. BIN Images/5stars@2x.png
  139. BIN Images/5stars_gray@2x.png
  140. BIN Images/About.png
  141. BIN Images/Background.png
  142. BIN Images/Blue.png
  143. BIN Images/Blueish.png
  144. BIN Images/CalculatorBackground.png
  145. BIN Images/CalendarButtonHighlighted.png
  146. BIN Images/CalendarButtonNormal.png
  147. BIN Images/Daily.png
  148. BIN Images/Day.png
  149. BIN Images/Day_Highlighted.png
  150. BIN Images/Default-Landscape.png
  151. BIN Images/Default-Portrait.png
  152. BIN Images/Default.png
  153. BIN Images/Default@2x.png
  154. BIN Images/Download.png
  155. BIN Images/GraphBackground@2x.png
  156. BIN Images/GraphDetailBottom.png
  157. BIN Images/GraphDetailTop.png
  158. BIN Images/Graphs.png
  159. BIN Images/Graphs@2x.png
  160. BIN Images/Graphs_Highlighted.png
  161. BIN Images/Graphs_Highlighted@2x.png
  162. BIN Images/Gray.png
  163. BIN Images/Green.png
  164. BIN Images/HUDFrame.png
  165. BIN Images/Icon114.png
  166. BIN Images/{Icon.png → Icon57.png}
  167. BIN Images/Icon72.png
  168. BIN Images/ImportExport.png
  169. BIN Images/ImportExport@2x.png
  170. BIN Images/ImportExport_Highlighted.png
  171. BIN Images/ImportExport_Highlighted@2x.png
  172. BIN Images/LightGray.png
  173. BIN Images/PaneBackground.png
  174. BIN Images/PaneButtonHighlighted.png
  175. BIN Images/PaneButtonNormal.png
  176. BIN Images/PickerOverlay.png
  177. BIN Images/Purchase.png
  178. BIN Images/Return.png
  179. BIN Images/ReviewBackground.png
  180. BIN Images/Reviews.png
  181. BIN Images/Settings.png
  182. BIN Images/Settings2.png
  183. BIN Images/Settings2@2x.png
  184. BIN Images/Settings2_Highlighted.png
  185. BIN Images/Settings2_Highlighted@2x.png
  186. BIN Images/Star.png
  187. BIN Images/Star@2x.png
  188. BIN Images/Star_Highlighted.png
  189. BIN Images/Star_Highlighted@2x.png
  190. BIN Images/Statistics.png
  191. BIN Images/TB_About.png
  192. BIN Images/TB_Calculator.png
  193. BIN Images/TB_Filter.png
  194. BIN Images/TB_Graphs.png
  195. BIN Images/TB_ImportExport.png
  196. BIN Images/TB_Reload.png
  197. BIN Images/TB_Settings.png
  198. BIN Images/Week.png
  199. BIN Images/Week_Highlighted.png
  200. BIN Images/Weekly.png
  201. BIN Images/White.png
  202. +14 −3 Info.plist
  203. 0 Prefetched/.gitignore
  204. +17 −0 README.textile
  205. +0 −35 README.txt
  206. +2 −1 ReviewTemplate.html
  207. +260 −255 SettingsViewController.xib
  208. +11 −5 help/index.html
Oops, something went wrong.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Binary file not shown.
@@ -1,28 +0,0 @@
-//
-// ASIAuthenticationDialog.h
-// iPhone
-//
-// Created by Ben Copsey on 21/08/2009.
-// Copyright 2009 All-Seeing Interactive. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-@class ASIHTTPRequest;
-
-typedef enum _ASIAuthenticationType {
- ASIStandardAuthenticationType = 0,
- ASIProxyAuthenticationType = 1
-} ASIAuthenticationType;
-
-@interface ASIAuthenticationDialog : NSObject <UIActionSheetDelegate, UITableViewDelegate, UITableViewDataSource> {
- ASIHTTPRequest *request;
- UIActionSheet *loginDialog;
- ASIAuthenticationType type;
-}
-+ (void)presentAuthenticationDialogForRequest:(ASIHTTPRequest *)request;
-+ (void)presentProxyAuthenticationDialogForRequest:(ASIHTTPRequest *)request;
-
-@property (retain) ASIHTTPRequest *request;
-@property (retain) UIActionSheet *loginDialog;
-@property (assign) ASIAuthenticationType type;
-@end
@@ -1,236 +0,0 @@
-//
-// ASIAuthenticationDialog.m
-// iPhone
-//
-// Created by Ben Copsey on 21/08/2009.
-// Copyright 2009 All-Seeing Interactive. All rights reserved.
-//
-
-#import "ASIAuthenticationDialog.h"
-#import "ASIHTTPRequest.h"
-
-ASIAuthenticationDialog *sharedDialog = nil;
-NSLock *dialogLock = nil;
-
-@interface ASIAuthenticationDialog ()
-- (void)show;
-@end
-
-@implementation ASIAuthenticationDialog
-
-+ (void)initialize
-{
- if (self == [ASIAuthenticationDialog class]) {
- dialogLock = [[NSLock alloc] init];
- }
-}
-
-+ (void)presentProxyAuthenticationDialogForRequest:(ASIHTTPRequest *)request
-{
- [dialogLock lock];
- [sharedDialog release];
- sharedDialog = [[self alloc] init];
- [sharedDialog setRequest:request];
- [sharedDialog setType:ASIProxyAuthenticationType];
- [sharedDialog show];
- [dialogLock unlock];
-}
-
-+ (void)presentAuthenticationDialogForRequest:(ASIHTTPRequest *)request
-{
- [dialogLock lock];
- [sharedDialog release];
- sharedDialog = [[self alloc] init];
- [sharedDialog setRequest:request];
- [sharedDialog show];
- [dialogLock unlock];
-
-}
-
-- (void)show
-{
- // Create an action sheet to show the login dialog
- [self setLoginDialog:[[[UIActionSheet alloc] init] autorelease]];
- [[self loginDialog] setActionSheetStyle:UIActionSheetStyleBlackOpaque];
- [[self loginDialog] setDelegate:self];
-
- // We show the login form in a table view, similar to Safari's authentication dialog
- UITableView *table = [[[UITableView alloc] initWithFrame:CGRectMake(0,80,320,480) style:UITableViewStyleGrouped] autorelease];
- [table setDelegate:self];
- [table setDataSource:self];
- [[self loginDialog] addSubview:table];
- [[self loginDialog] showInView:[[[UIApplication sharedApplication] windows] objectAtIndex:0]];
- [[self loginDialog] setFrame:CGRectMake(0,0,320,480)];
-
- // Setup the title (Couldn't figure out how to put this in the same toolbar as the buttons)
- UIToolbar *titleBar = [[[UIToolbar alloc] initWithFrame:CGRectMake(0,0,320,30)] autorelease];
- UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(10,0,300,30)] autorelease];
- if ([self type] == ASIProxyAuthenticationType) {
- [label setText:@"Login to this secure proxy server."];
- } else {
- [label setText:@"Login to this secure server."];
- }
- [label setTextColor:[UIColor blackColor]];
- [label setFont:[UIFont systemFontOfSize:13.0]];
- [label setShadowColor:[UIColor colorWithRed:1 green:1 blue:1 alpha:0.5]];
- [label setShadowOffset:CGSizeMake(0, 1.0)];
- [label setOpaque:NO];
- [label setBackgroundColor:nil];
- [label setTextAlignment:UITextAlignmentCenter];
-
- [titleBar addSubview:label];
- [[self loginDialog] addSubview:titleBar];
-
- // Setup the toolbar
- UIToolbar *toolbar = [[[UIToolbar alloc] initWithFrame:CGRectMake(0,30,320,50)] autorelease];
-
- NSMutableArray *items = [[[NSMutableArray alloc] init] autorelease];
- UIBarButtonItem *backButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancelAuthenticationFromDialog:)] autorelease];
- [items addObject:backButton];
-
- label = [[[UILabel alloc] initWithFrame:CGRectMake(0,0,170,50)] autorelease];
- if ([self type] == ASIProxyAuthenticationType) {
- [label setText:[[self request] proxyHost]];
- } else {
- [label setText:[[[self request] url] host]];
- }
- [label setTextColor:[UIColor whiteColor]];
- [label setFont:[UIFont boldSystemFontOfSize:22.0]];
- [label setShadowColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.5]];
- [label setShadowOffset:CGSizeMake(0, -1.0)];
- [label setOpaque:NO];
- [label setBackgroundColor:nil];
- [label setTextAlignment:UITextAlignmentCenter];
-
- [toolbar addSubview:label];
-
- UIBarButtonItem *labelButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:nil action:nil] autorelease];
- [labelButton setCustomView:label];
- [items addObject:labelButton];
- [items addObject:[[[UIBarButtonItem alloc] initWithTitle:@"Login" style:UIBarButtonItemStyleDone target:self action:@selector(loginWithCredentialsFromDialog:)] autorelease]];
- [toolbar setItems:items];
-
- [[self loginDialog] addSubview:toolbar];
-
- // Force reload the table content, and focus the first field to show the keyboard
- [table reloadData];
- [[[[table cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]] subviews] objectAtIndex:2] becomeFirstResponder];
-
-}
-
-- (void)cancelAuthenticationFromDialog:(id)sender
-{
- [[self request] cancelAuthentication];
- [[self loginDialog] dismissWithClickedButtonIndex:0 animated:YES];
-}
-
-- (void)loginWithCredentialsFromDialog:(id)sender
-{
- NSString *username = [[[[[[[self loginDialog] subviews] objectAtIndex:0] cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]] subviews] objectAtIndex:2] text];
- NSString *password = [[[[[[[self loginDialog] subviews] objectAtIndex:0] cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:1]] subviews] objectAtIndex:2] text];
-
- if ([self type] == ASIProxyAuthenticationType) {
- [[self request] setProxyUsername:username];
- [[self request] setProxyPassword:password];
- } else {
- [[self request] setUsername:username];
- [[self request] setPassword:password];
- }
-
- // Handle NTLM domains
- NSString *scheme = ([self type] == ASIStandardAuthenticationType) ? [[self request] authenticationScheme] : [[self request] proxyAuthenticationScheme];
- if ([scheme isEqualToString:(NSString *)kCFHTTPAuthenticationSchemeNTLM]) {
- NSString *domain = [[[[[[[self loginDialog] subviews] objectAtIndex:0] cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:2]] subviews] objectAtIndex:2] text];
- if ([self type] == ASIProxyAuthenticationType) {
- [[self request] setProxyDomain:domain];
- } else {
- [[self request] setDomain:domain];
- }
- }
-
- [[self loginDialog] dismissWithClickedButtonIndex:1 animated:YES];
- [[self request] retryUsingSuppliedCredentials];
-}
-
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
-{
- NSString *scheme = ([self type] == ASIStandardAuthenticationType) ? [[self request] authenticationScheme] : [[self request] proxyAuthenticationScheme];
- if ([scheme isEqualToString:(NSString *)kCFHTTPAuthenticationSchemeNTLM]) {
- return 3;
- }
- return 2;
-}
-
-- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
-{
- if (section == [self numberOfSectionsInTableView:tableView]-1) {
- return 30;
- }
- return 0;
-}
-
-- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
-{
- if (section == 0) {
- return 30;
- }
- return 0;
-}
-
-- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
-{
- if (section == 0) {
- return [[self request] authenticationRealm];
- }
- return nil;
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
-{
-#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_0
- UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:nil] autorelease];
-#else
- UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil] autorelease];
-#endif
-
- [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
- UITextField *textField = [[[UITextField alloc] initWithFrame:CGRectMake(20,12,260,25)] autorelease];
- [textField setAutocapitalizationType:UITextAutocapitalizationTypeNone];
- if ([indexPath section] == 0) {
- [textField setPlaceholder:@"User"];
- } else if ([indexPath section] == 1) {
- [textField setPlaceholder:@"Password"];
- [textField setSecureTextEntry:YES];
- } else if ([indexPath section] == 2) {
- [textField setPlaceholder:@"Domain"];
- }
- [cell addSubview:textField];
-
- return cell;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
-{
- return 1;
-}
-
-
-- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
-{
- if (section == [self numberOfSectionsInTableView:tableView]-1) {
- // If we're using Basic authentication and the connection is not using SSL, we'll show the plain text message
- if ([[[self request] authenticationScheme] isEqualToString:(NSString *)kCFHTTPAuthenticationSchemeBasic] && ![[[[self request] url] scheme] isEqualToString:@"https"]) {
- return @"Password will be sent in the clear.";
- // We are using Digest, NTLM, or any scheme over SSL
- } else {
- return @"Password will be sent securely.";
- }
- }
- return nil;
-}
-
-@synthesize request;
-@synthesize loginDialog;
-@synthesize type;
-@end
@@ -1,60 +0,0 @@
-//
-// ASIFormDataRequest.h
-// asi-http-request
-//
-// Created by Ben Copsey on 07/11/2008.
-// Copyright 2008-2009 All-Seeing Interactive. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "ASIHTTPRequest.h"
-
-typedef enum _ASIPostFormat {
- ASIMultipartFormDataPostFormat = 0,
- ASIURLEncodedPostFormat = 1
-
-} ASIPostFormat;
-
-@interface ASIFormDataRequest : ASIHTTPRequest {
-
- // Parameters that will be POSTed to the url
- NSMutableDictionary *postData;
-
- // Files that will be POSTed to the url
- NSMutableDictionary *fileData;
-
- ASIPostFormat postFormat;
-
- NSStringEncoding stringEncoding;
-
-#if ASIHTTPREQUEST_DEBUG
- // Will store a string version of the request body that will be printed to the console when ASIHTTPREQUEST_DEBUG is set in GCC_PREPROCESSOR_DEFINITIONS
- NSString *debugBodyString;
-#endif
-
-}
-
-#pragma mark utilities
-- (NSString*)encodeURL:(NSString *)string;
-
-#pragma mark setup request
-
-// Add a POST variable to the request
-- (void)setPostValue:(id <NSObject>)value forKey:(NSString *)key;
-
-// Add the contents of a local file to the request
-- (void)setFile:(NSString *)filePath forKey:(NSString *)key;
-
-// Same as above, but you can specify the content-type and file name
-- (void)setFile:(id)data withFileName:(NSString *)fileName andContentType:(NSString *)contentType forKey:(NSString *)key;
-
-// Add the contents of an NSData object to the request
-- (void)setData:(NSData *)data forKey:(NSString *)key;
-
-// Same as above, but you can specify the content-type and file name
-- (void)setData:(id)data withFileName:(NSString *)fileName andContentType:(NSString *)contentType forKey:(NSString *)key;
-
-
-@property (assign) ASIPostFormat postFormat;
-@property (assign) NSStringEncoding stringEncoding;
-@end
Oops, something went wrong.

0 comments on commit d49e605

Please sign in to comment.