/* * This file is part of the DMWebImage package. * (c) Dailymotion - Olivier Poitrey * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #import @class DMWebImageDownloadOperation; @interface DMWebImageView : UIImageView { UIImage *placeHolderImage; DMWebImageDownloadOperation *currentOperation; } - (void)setImageWithURL:(NSURL *)url; - (void)downloadFinishedWithImage:(UIImage *)image; @end @interface DMWebImageDownloadOperation : NSOperation { NSURL *url; DMWebImageView *delegate; } @property (retain) NSURL *url; @property (assign) DMWebImageView *delegate; - (id)initWithURL:(NSURL *)url delegate:(DMWebImageView *)delegate; @end