Permalink
Browse files

exposing top right image and rating

  • Loading branch information...
1 parent 6574c06 commit 527c696ab2697628e04746182cf09fbb99273cce @tomcool420 committed May 14, 2011
Showing with 33 additions and 2 deletions.
  1. +12 −1 SMFMediaPreview.h
  2. +21 −1 SMFMediaPreview.mm
View
@@ -12,7 +12,7 @@
*
*
*/
-#import <Backrow/Backrow.h>
+#import <Backrow/BackRow.h>
#import <Foundation/Foundation.h>
#define METADATA_IMAGE_URL @"ImageURL"
#define METADATA_TITLE @"Name"
@@ -80,4 +80,15 @@
-(SMFBaseAsset *)asset;
+-(void)setTopRightImage:(BRImage *)i;
+
+-(void)setCopyright:(id)i;
+
+-(void)setRating:(NSString *)i;
+
+-(void)setStarRating:(id)i;
+
+-(void)setUserRating:(id)i;
+
+
@end
View
@@ -139,7 +139,27 @@ - (void)_updateMetadataLayer
[super _updateMetadataLayer];
[self doPopulation];
}
-
+- (void)setTopRightImage:(BRImage *)i
+{
+ BRMetadataControl *metaLayer = [self metadataControl];
+ [metaLayer setTopRightImage:i];
+}
+-(void)setCopyright:(id)i
+{
+ [[self metadataControl]setCopyright:i];
+}
+-(void)setRating:(id)i
+{
+ [[self metadataControl]setRating:i];
+}
+-(void)setStarRating:(id)i
+{
+ [[self metadataControl]setStarRating:i];
+}
+-(void)setUserRating:(id)i
+{
+ [[self metadataControl]setUserRating:i];
+}
- (void)doPopulation
{
//BRMetadataControl *metaLayer = [self gimmieMetadataLayer];

0 comments on commit 527c696

Please sign in to comment.