1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
// created 11.2003 by Stefan Kleine Stegemann
//
// licensed under GPL
#ifndef _H_CAMERA_CONTROLLER
#define _H_CAMERA_CONTROLLER
#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <Foundation/NSLock.h>
#include <AppKit/NSImage.h>
#include "DigitalCamera.h"
extern NSString* PREF_DOWNLOAD_BASE_PATH;
extern NSString* PREF_USE_TIMESTAMP_DIR;
@interface CameraController : NSObject
{
DigitalCamera* selectedCamera;
BOOL downloadIsActive;
// Outlets
id deleteFilesAfterDownload;
id progressInfoMsg;
id progressBar;
id thumbnailView;
id transferButton;
id cameraInfo;
id cameraIcon;
id window;
}
- (id) init;
- (void) dealloc;
- (void) awakeFromNib;
- (void) setSelectedCamera: (DigitalCamera*)aCamera;
- (DigitalCamera*) selectedCamera;
- (void) setDownloadIsActive: (BOOL)active;
- (BOOL) downloadIsActive;
// Notifications
- (void) willDownloadFile: (DigitalCameraFile*)file
at: (int)index
of: (int)total
thumbnail: (NSImage*)thumbnail;
- (void) willDeleteFile: (DigitalCameraFile*)file
at: (int)index
of: (int)total;
- (void) downloadFinished;
// Actions
- (void) detectCamera: (id)sender;
- (void) initiateDownloadFiles: (id)sender;
- (void) abortDownloadFiles: (id)sender;
- (void) initiateOrAbortDownload: (id)sender;
- (void) setDestination: (id)sender;
@end
#endif
|