forked from tomcool420/SMFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMFMediaPreview.h
94 lines (83 loc) · 2.76 KB
/
SMFMediaPreview.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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//
// SMFMediaPreview.h
// SoftwareMenuFramework
//
// Created by Thomas Cool on 11/9/09.
// Copyright 2009 Thomas Cool. All rights reserved.
//
/**
* SMFMediaPreview is a high level class to be used in conjunction with SMFBaseAsset and it subclasses
* It is used to display metadata in media menus (Subclasses of BRmediaMenuController and SMFMediaMenuController)
*
*
*
*/
#import "Backrow/AppleTV.h"
#import <Foundation/Foundation.h>
#define METADATA_IMAGE_URL @"ImageURL"
#define METADATA_TITLE @"Name"
#define METADATA_SUMMARY @"Summary"
#define METADATA_CUSTOM_KEYS @"KeysArray"
#define METADATA_CUSTOM_OBJECTS @"ObjectsArray"
@class SMFBaseAsset, BRMetadataPreviewControl;
@interface SMFMediaPreview : BRMetadataPreviewControl{
BRImage *image;
}
/**
*Creating a quick media preview that does not require the creation of an SMFBaseAsset.
*
*A BRBase Asset is created internaly. it is equivalent to creating this Asset, and adding
*using mediaPreviewWithAsset:
*
*Adding an asset will overwrite the information generated using this method
*@param title title for the preview
* An NSString representing the title.
* It will be put in bold over the top line of the preview
*@param summary text summary (longish text)
* General summary, description, or other informative text, newlines are ignored.
*@param img a BRImage representing the poster
*@see mediaPreviewWithAsset:
*/
+(SMFMediaPreview *)simplePreviewWithTitle:(NSString *)title withSummary:(NSString *)summary withImage:(BRImage *)img;
/**
*Creates an autoreleased SMFMediaPreview with an asset.
*
*Cannot use a BRBaseAsset subclass. It has to be a SMFBaseAsset
*@param a the asset to be used;
*@return autoreleased instance of SMFMediaPreview with the Asset set
*@see mediaPreview
*@see setAsset:
*/
+(SMFMediaPreview *)mediaPreviewWithAsset:(SMFBaseAsset *)a;
/**
*Creates an autoreleased SMFMediaPreview.
*
*Cannot use a BRBaseAsset subclass. It has to be a SMFBaseAsset
*@return autoreleased instance of SMFMediaPreview with no Asset
*@see mediaPreviewWithAsset:
*@see simplePreviewWithTitle:withSummary:withImage:
*/
+(SMFMediaPreview *)mediaPreview;
- (id)coverArtForPath;
- (void)setImage:(BRImage *)currentImage;
- (void)setImagePath:(NSString *)path;
///**
// *Add an Asset (SMFBaseAsset) to the preview.
// *
// *@param a the instance of SMFBaseAsset to add to the preview
// *@see asset
// */
//-(void)setAsset:(SMFBaseAsset *)a;
///**
// *The Asset containing all the information used to draw the preview
// *
// *@return the saved Asset
// *@see setAsset:
// */
//-(SMFBaseAsset *)asset;
-(void)setTopRightImage:(BRImage *)i;
-(void)setCopyright:(id)i;
-(void)setRating:(NSString *)i;
-(void)setStarRating:(id)i;
-(void)setUserRating:(id)i;
@end