forked from overcyn/Enqueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PRAlbumArtController.h
33 lines (27 loc) · 1.12 KB
/
PRAlbumArtController.h
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
#import <Cocoa/Cocoa.h>
#import "PRLibrary.h"
@class PRDb;
@class PRLibrary;
@interface PRAlbumArtController : NSObject
/* Initialization */
- (id)initWithDb:(PRDb *)db;
- (id)initWithConnection:(PRConnection *)conn;
- (BOOL)zArtworkForItems:(NSArray *)items out:(NSImage **)outValue;
- (BOOL)zArtworkForArtist:(NSString *)artist out:(NSImage **)outValue;
- (BOOL)zClearArtworkForItem:(PRItemID *)item;
- (BOOL)zArtworkInfoForItems:(NSArray *)items out:(NSDictionary **)outValue;
- (BOOL)zArtworkInfoForArtist:(NSString *)artist out:(NSDictionary **)outValue;
/* Accessors */
- (NSImage *)artworkForItem:(PRItemID *)item;
- (NSImage *)artworkForItems:(NSArray *)items;
- (NSImage *)artworkForArtist:(NSString *)artist;
- (void)clearArtworkForItem:(PRItemID *)item;
/* Async Accessors */
- (NSDictionary *)artworkInfoForItem:(PRItemID *)item;
- (NSDictionary *)artworkInfoForItems:(NSArray *)items;
- (NSDictionary *)artworkInfoForArtist:(NSString *)artist;
- (NSImage *)artworkForArtworkInfo:(NSDictionary *)info;
- (void)setTempArtwork:(int)temp forItem:(PRItemID *)item;
- (int)saveTempArtwork:(NSImage *)image;
- (void)clearTempArtwork;
@end