#import <DropIOAsset.h>
Inherited by DropIOAudio, DropIODocument, DropIOImage, DropIOLink, DropIOMovie, and DropIONote.
Public Member Functions | |
| (id) | - init |
| Initializes a new, empty asset object. | |
| (void) | - dealloc |
| Deallocates memory used by the asset. | |
| (void) | - update |
| Updates Drop.io with this asset's properties. | |
| (void) | - delete |
| Permanently deletes this asset from its drop on Drop.io. | |
| (void) | - releaseThumbnail |
| (BOOL) | - isEditable |
| (void) | - sendWithParameters: |
| Sends the asset to a destination specified by the given parameters. | |
| (void) | - sendToEmail:message: |
| Sends the asset via email to the specified email addresses, with the given message text. | |
| (void) | - sendToDropNamed: |
| Sends the asset to the drop with the given name. | |
| (void) | - sendToFax: |
| Sends the asset to the given fax number. | |
| (void) | - setValue:forUndefinedKey: |
| Sets the value for all keys not predefined for this object. | |
Static Public Member Functions | |
| (DropIOAsset *) | + assetWithProperties: |
| Static factory method; returns a new DropIOAsset object with the properties specified in the given dictionary object. | |
Properties | |
| NSMutableDictionary * | properties |
| All asset properties are stored in a dictionary. | |
| NSString * | name |
| NSString * | type |
| NSString * | title |
| NSString * | description |
| NSNumber * | filesize |
| NSDate * | createdAt |
| NSString * | status |
| NSURL * | hiddenUrl |
| UIImage * | icon |
| DropIODrop * | drop |
| DropIODrop object that owns this asset | |
It has a reference to its parent DropIODrop object and knows how to:
| + (DropIOAsset *) assetWithProperties: | (NSMutableDictionary*) | propDict |
Static factory method; returns a new DropIOAsset object with the properties specified in the given dictionary object.
| propDict | NSDictionary containing name-value pairs specifying the asset's parameters. See the Drop.io API documentation for parameter details. |
Referenced by DropIODrop::assetOperation:atUrl:withParameters:, DropIODrop::docWithFilename:data:mimeType:, and DropIODrop::loadAssetPages:.
| - (void) dealloc |
Deallocates memory used by the asset.
| - (void) delete |
Permanently deletes this asset from its drop on Drop.io.
Unless retained elsewhere, this will deallocate the receiver.
Referenced by DropIODrop::removeAsset:.
| - (id) init |
| - (BOOL) isEditable |
Reimplemented in DropIONote, and DropIOLink.
| - (void) releaseThumbnail |
Reimplemented in DropIOImage, and DropIOMovie.
| - (void) sendToDropNamed: | (NSString*) | dropName |
Sends the asset to the drop with the given name.
The asset must already belong to an existing drop.
| dropName | NSString containing the name of the target drop. The target drop must be configured to allow guests to add assets. |
| - (void) sendToEmail: | (NSArray*) | emailAddressArray | ||
| message: | (NSString*) | optionalMessageText | ||
Sends the asset via email to the specified email addresses, with the given message text.
The asset must already belong to a drop.
| emailAddressArray | NSArray of NSStrings containing email addresses to send the asset to. | |
| optionalMessageText | NSString containing the optional body text of the email message. Pass nil to send no message text. |
| - (void) sendToFax: | (NSString*) | faxNumber |
Sends the asset to the given fax number.
Note that currently, the Drop.io API only supports faxing of document and image assets. Also, the asset must already belong to a drop.
| faxNumber | NSString containing a fax telephone number. |
| - (void) sendWithParameters: | (NSDictionary*) | params |
Sends the asset to a destination specified by the given parameters.
| params | NSDictionary containing the API parameters required to send the asset. See the Drop.io API documentation for parameter details. |
Referenced by sendToDropNamed:, sendToEmail:message:, and sendToFax:.
| - (void) setValue: | (id) | value | ||
| forUndefinedKey: | (NSString *) | key | ||
Sets the value for all keys not predefined for this object.
Used by Key-Value Coding (KVC) methods. In particular, this method is called by the XMLToObjectParser class to set values for asset properties not predefined by the DropIOAsset classes.
| value | Object id to set as the value for the given undefined key. | |
| key | NSString containing a key not previously defined for this object. |
| - (void) update |
Updates Drop.io with this asset's properties.
- (NSDate *) createdAt [read, write, retain] |
- (DropIODrop *) drop [read, write, retain] |
DropIODrop object that owns this asset
Referenced by dealloc, delete, DropIOLink::isEditable, DropIONote::isEditable, sendToDropNamed:, sendToEmail:message:, sendToFax:, sendWithParameters:, and update.
- (NSNumber *) filesize [read, write, retain] |
- (NSURL *) hiddenUrl [read, write, retain] |
- (UIImage *) icon [read, assign] |
- (NSString *) name [read, write, retain] |
Referenced by DropIODrop::addAsset:, and DropIODrop::loadAssetPages:.
- (NSMutableDictionary *) properties [read, write, retain] |
All asset properties are stored in a dictionary.
Property keys and their meaning:
Referenced by assetWithProperties:, dealloc, init, and setValue:forUndefinedKey:.
- (NSString *) status [read, write, retain] |
- (NSString *) type [read, write, retain] |
Referenced by assetWithProperties:.
1.5.8