Revision: 5332
http://skim-app.svn.sourceforge.net/skim-app/?rev=5332&view=rev
Author: hofman
Date: 2009-04-26 11:59:43 +0000 (Sun, 26 Apr 2009)
Log Message:
-----------
typedef for download status
Modified Paths:
--------------
trunk/SKDownload.h
trunk/SKDownload.m
Modified: trunk/SKDownload.h
===================================================================
--- trunk/SKDownload.h 2009-04-26 11:48:19 UTC (rev 5331)
+++ trunk/SKDownload.h 2009-04-26 11:59:43 UTC (rev 5332)
@@ -51,6 +51,7 @@
SKDownloadStatusFailed,
SKDownloadStatusCanceled
};
+typedef NSInteger SKDownloadStatus;
@interface SKDownload : NSObject {
NSURL *URL;
@@ -69,7 +70,7 @@
- (id)delegate;
- (void)setDelegate:(id)newDelegate;
-- (NSInteger)status;
+- (SKDownloadStatus)status;
- (NSURL *)URL;
Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m 2009-04-26 11:48:19 UTC (rev 5331)
+++ trunk/SKDownload.m 2009-04-26 11:59:43 UTC (rev 5332)
@@ -46,7 +46,7 @@
NSString *SKDownloadProgressIndicatorKey = @"progressIndicator";
@interface SKDownload (Private)
-- (void)setStatus:(NSInteger)newStatus;
+- (void)setStatus:(SKDownloadStatus)newStatus;
- (void)setFilePath:(NSString *)newFilePath;
- (void)setExpectedContentLength:(long long)newExpectedContentLength;
- (void)setReceivedContentLength:(long long)newReceivedContentLength;
@@ -129,11 +129,11 @@
delegate = newDelegate;
}
-- (NSInteger)status {
+- (SKDownloadStatus)status {
return status;
}
-- (void)setStatus:(NSInteger)newStatus {
+- (void)setStatus:(SKDownloadStatus)newStatus {
if (status != newStatus) {
if (newStatus == SKDownloadStatusDownloading) {
[progressIndicator startAnimation:self];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit