mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 20:19:27 +00:00
fixed #155 added Quicklook like preview for attachments
This commit is contained in:
@@ -7,17 +7,17 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
/**
|
||||
* Instance to handle a temporary file storage. Quicklook support uses this as a means to vent attachments to the system
|
||||
* After using the file, the storage is removed.
|
||||
*/
|
||||
#import <Quartz/Quartz.h>
|
||||
|
||||
@class KPKBinary;
|
||||
|
||||
@interface MPTemporaryFileStorage : NSObject
|
||||
/**
|
||||
* File Storage the Storage center vents on request. Use this to feed as datasource to QLPreviewPanels
|
||||
*/
|
||||
@interface MPTemporaryFileStorage : NSObject <QLPreviewPanelDataSource, QLPreviewItem>
|
||||
|
||||
- (instancetype)initWithBinary:(KPKBinary *)binary;
|
||||
|
||||
- (void)quicklook;
|
||||
- (void)cleanup;
|
||||
- (void)cleanupNow;
|
||||
|
||||
@end
|
||||
@end
|
||||
Reference in New Issue
Block a user