00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <UIKit/UIKit.h>
00010
00011 @class DropIODrop;
00012
00013
00014
00015 #define kDropIOAssetType_Note @"note"
00016 #define kDropIOAssetType_Link @"link"
00017 #define kDropIOAssetType_Document @"document"
00018 #define kDropIOAssetType_Image @"image"
00019 #define kDropIOAssetType_Audio @"audio"
00020 #define kDropIOAssetType_Movie @"movie"
00021 #define kDropIOAssetType_Other @"other"
00022
00023 @interface DropIOAsset : NSObject {
00024
00088 NSMutableDictionary* properties;
00089
00090 DropIODrop* drop;
00091 }
00092
00093
00094
00095 @property (nonatomic, retain) NSMutableDictionary* properties;
00096 @property (nonatomic, retain) NSString* name;
00097 @property (nonatomic, retain) NSString* type;
00098 @property (nonatomic, retain) NSString* title;
00099 @property (nonatomic, retain) NSString* description;
00100 @property (nonatomic, retain) NSNumber* filesize;
00101 @property (nonatomic, retain) NSDate* createdAt;
00102 @property (nonatomic, retain) NSString* status;
00103 @property (nonatomic, retain) NSURL* hiddenUrl;
00104 @property (nonatomic, readonly) UIImage* icon;
00105 @property (nonatomic, retain) DropIODrop* drop;
00106
00107
00108
00109 + (DropIOAsset*) assetWithProperties:(NSMutableDictionary*)propDict;
00110
00111
00112
00113 - (id) init;
00114 - (void) dealloc;
00115 - (void) update;
00116 - (void) delete;
00117 - (void) releaseThumbnail;
00118 - (BOOL) isEditable;
00119
00120
00121
00122 - (void) sendWithParameters:(NSDictionary*)params;
00123 - (void) sendToEmail:(NSArray*)emailAddressArray message:(NSString*)optionalMessageText;
00124 - (void) sendToDropNamed:(NSString*)dropName;
00125 - (void) sendToFax:(NSString*)faxNumber;
00126
00127
00128
00129 - (void) setValue:(id)value forUndefinedKey:(NSString *)key;
00130
00131 @end
00132
00133
00134
00135
00136 @interface DropIONote : DropIOAsset {
00137 }
00138 @property (nonatomic, retain) NSString* contents;
00139 - (BOOL) isEditable;
00140 @end
00141
00142 @interface DropIOLink : DropIOAsset {
00143 }
00144 @property (nonatomic, retain) NSURL* url;
00145 - (BOOL) isEditable;
00146 @end
00147
00148 @interface DropIOImage : DropIOAsset {
00149 UIImage* thumbImage;
00150 id loadedTarget;
00151 SEL loadedSel;
00152 }
00153 @property (nonatomic, retain) NSURL* thumbnail;
00154 @property (nonatomic, retain) NSURL* file;
00155 @property (nonatomic, retain) NSURL* converted;
00156 @property (nonatomic, retain) NSNumber* height;
00157 @property (nonatomic, retain) NSNumber* width;
00158 @property (nonatomic, retain) UIImage* thumbImage;
00159 - (id) init;
00160 - (BOOL) isThumbnailLoaded;
00161 - (void) whenThumbnailIsLoadedPerformSelector:(SEL)selector target:(id)obj;
00162 - (void) releaseThumbnail;
00163 @end
00164
00165 @interface DropIODocument : DropIOAsset {
00166 }
00167 @property (nonatomic, retain) NSURL* file;
00168 @property (nonatomic, retain) NSURL* converted;
00169 @property (nonatomic, retain) NSNumber* pages;
00170 @end
00171
00172 @interface DropIOAudio : DropIOAsset {
00173 }
00174 @property (nonatomic, retain) NSURL* file;
00175 @property (nonatomic, retain) NSURL* converted;
00176 @property (nonatomic, retain) NSNumber* duration;
00177 @property (nonatomic, retain) NSString* artist;
00178 @property (nonatomic, retain) NSString* trackTitle;
00179 @end
00180
00181 @interface DropIOMovie : DropIOAsset {
00182 UIImage* thumbImage;
00183 id loadedTarget;
00184 SEL loadedSel;
00185 }
00186 @property (nonatomic, retain) NSURL* thumbnail;
00187 @property (nonatomic, retain) NSURL* converted;
00188 @property (nonatomic, retain) NSURL* file;
00189 @property (nonatomic, retain) NSNumber* duration;
00190 @property (nonatomic, retain) UIImage* thumbImage;
00191 - (BOOL) isThumbnailLoaded;
00192 - (void) whenThumbnailIsLoadedPerformSelector:(SEL)selector target:(id)obj;
00193 - (void) releaseThumbnail;
00194 @end
00195
00196
00197
00198
00199
00200
00201