Permalink
Browse files

Header changes

  • Loading branch information...
tomcool420 committed Jul 19, 2011
1 parent 4918df7 commit a37e8ce966a9b69af8b959de9740ad4e7bcdfc7c
View
@@ -6,7 +6,7 @@
// Copyright 2010 Thomas Cool. All rights reserved.
//
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
@interface SMFBaseAsset : BRXMLMediaAsset {
View
@@ -5,7 +5,7 @@
// Created by Thomas Cool on 11/4/10.
// Copyright 2010 tomcool.org. All rights reserved.
//
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
typedef enum _popupPosition{
kSMFPopupCenterLeft =0,
@@ -31,7 +31,6 @@ typedef enum _popupPosition{
///---
///@name Popups
///---
-
/**
*@return an SMFPopupInfo object to show using showPopup
*@param array an NSArray with 1-3 NSStrings inside (can be nil)
View
@@ -0,0 +1,23 @@
+//
+// SMFCompatibility.h
+// SMFramework
+//
+// Created by Thomas Cool on 7/13/11.
+// Copyright 2011 tomcool.org. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface SMFCompatibility : NSObject
+{
+ BOOL _usingFourPointTwoPlus;
+ BOOL _usingFourPointThreePlus;
+ BOOL _usingFourPointFourPlus;
+}
++(SMFCompatibility *)compat;
+-(BOOL)usingFourPointTwoPlus;
+-(BOOL)usingFourPointThreePlus;
+-(BOOL)usingFourPointFourPlus;
+@end
+
+#define SMF_COMPAT [SMFCompatibility compat]
View
@@ -6,7 +6,7 @@
// Copyright 2011 tomcool.org. All rights reserved.
//
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
@interface SMFControlFactory : BRPhotoControlFactory
View
@@ -11,17 +11,18 @@
@protocol SMFDictionaryEditorDelegate
-(void)setObject:(NSObject *)obj forKey:(NSString *)key;
+-(BOOL)deleteObjectForKey:(NSString *)key;
@end
@interface SMFDictionaryEditor : SMFMediaMenuController {
NSMutableDictionary *_d;
NSArray *_keys;
- id<SMFDictionaryEditorDelegate> delegate;
+ NSObject<SMFDictionaryEditorDelegate> *delegate;
NSObject *_k;
}
-@property (assign)id<SMFDictionaryEditorDelegate> delegate;
+@property (assign)NSObject<SMFDictionaryEditorDelegate> *delegate;
@property (retain)NSObject *key;
-(id)initWithDictionary:(NSDictionary *)d;
-(id)initWithMutableDictionary:(NSMutableDictionary *)d inplace:(BOOL)inpl;
@@ -7,19 +7,20 @@
//
#import <Foundation/Foundation.h>
-#import <Backrow/BackRow.h>
+#import "Backrow/AppleTV.h"
#import "SMFMediaMenuController.h"
+#import "SMFDictionaryEditor.h"
@interface SMFDictionaryObjectEditor : SMFMediaMenuController {
- NSObject *delegate;
+ NSObject<SMFDictionaryEditorDelegate> *delegate;
NSString *key;
NSObject *obj;
int lastItemSelected;
NSString *initialKey;
}
@property (retain)NSObject *obj;
@property (retain)NSString *key;
-@property (assign)NSObject *delegate;
+@property (assign)NSObject<SMFDictionaryEditorDelegate> *delegate;
-(id)initWithKey:(NSString *)k withObject:(NSObject *)obj withDelegate:(NSObject *)del;
@end
View
@@ -5,84 +5,12 @@
// Created by Thomas on 4/19/09.
// Copyright 2009 tomcool.org. All rights reserved.
//
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
#import "SMFMediaMenuController.h"
#import "SMFPreferences.h"
#import "SMFPhotoMethods.h"
-@class SMFFolderBrowser;
-/**
- *Delegate for SMFFolderBrowser
- *
- *Only has one required method: hasActionForFile:
- *All other methods are checked before being called as to avoid exceptions
- */
-@protocol SMFFolderBrowserDelegate
+#import "SMFFolderBrowserDelegate.h"
-/**
- * Checks to see if the delegate can handle this file
- */
--(BOOL)hasActionForFile:(NSString *)path;
-
-@optional
-/**
- *Standard default action execution
- *if hasActionForFile: returns `YES`, you should at least implement this method
- *@param browser browser calling the delegate
- * can be used to push controllers: `[[browser stack]pushController:newController]`
- *@param path path to the file called
- */
--(void)browser:(SMFFolderBrowser *)browser executeActionForFile:(NSString *)path;
-
-/**
- *Action called when pressing the right arrow on the remote
- *@param browser browser calling the delegate
- * can be used to push controllers: `[[browser stack]pushController:newController]`
- *@param path path to the file called
- *@see browser:executeActionForFile:
- */
--(void)browser:(SMFFolderBrowser *)browser executeRightActionForFile:(NSString *)path;
-
-/**
- *Action called when pressing the left arrow on the remote
- *@param browser browser calling the delegate
- * can be used to push controllers: `[[browser stack]pushController:newController]`
- *@param path path to the file called
- *@see browser:executeActionForFile:
- */
--(void)browser:(SMFFolderBrowser *)browser executeLeftActionForFile:(NSString *)path;
-
-/**
- *Action called when pressing the select button on the remote (center button)
- *@bug Warning: Not implemented yet, use browser:executeActionForFile: instead
- *@param browser browser calling the delegate
- * can be used to push controllers: `[[browser stack]pushController:newController]`
- *@param path path to the file called
- *@see browser:executeActionForFile:
- */
--(void)browser:(SMFFolderBrowser *)browser executeSelectActionForFile:(NSString *)path;
-
-/**
- *Action called when pressing playpause on the NEW remotes
- *if hasActionForFile: returns `YES`, you should at least implement this method
- *@param browser browser calling the delegate
- * can be used to push controllers: `[[browser stack]pushController:newController]`
- *@param path path to the file called
- *@see browser:executeActionForFile:
- */
--(void)browser:(SMFFolderBrowser *)browser executePlayPauseActionForFile:(NSString *)path;
-
-///---
-///@name deprecated
-///---
-
--(void)executeActionForFile:(NSString *)path;
--(void)executeRightActionForFile:(NSString *)path;
--(void)executeLeftActionForFile:(NSString *)path;
--(void)executeSelectActionForFile:(NSString *)path;
--(void)executePlayPauseActionForFile:(NSString *)path;
-
-
-@end
/**
* SMFFolderBrowser is a subclass of SMFMediaMenuController that enables easily browsing through the file system
View
@@ -6,7 +6,7 @@
// Copyright 2010 tomcool.org. All rights reserved.
//
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
@interface SMFFolderDelegate : NSObject {
View
@@ -12,7 +12,7 @@
*
*
*/
-#import <Backrow/BackRow.h>
+#import "Backrow/AppleTV.h"
#import <Foundation/Foundation.h>
#define METADATA_IMAGE_URL @"ImageURL"
#define METADATA_TITLE @"Name"
@@ -64,20 +64,20 @@
- (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;
+///**
+// *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;
View
@@ -7,7 +7,7 @@
//
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
@interface SMFMovieAsset : BRXMLMediaAsset {
BRImage *_image;
View
@@ -5,10 +5,10 @@
// Created by Thomas Cool on 2/15/11.
// Copyright 2011 tomcool.org. All rights reserved.
//
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
@interface SMFPhotoMediaAsset : BRPhotoMediaAsset {
- NSString *_title;
+ NSString *__title;
}
-(NSString *)title;
-(void)setTitle:(NSString *)title;
View
@@ -7,7 +7,7 @@
//
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
#import "SMFControlFactory.h"
/**
*Convenience methods to work with pictures on ATV 2
View
@@ -6,7 +6,7 @@
// Copyright 2010 tomcool.org. All rights reserved.
//
#import "SynthesizeSingleton.h"
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
#import "SMFEventManager.h"
@interface SMFScreenCapture : NSObject<SMFEventDelegate> {
View
@@ -5,7 +5,7 @@
// Created by Thomas Cool on 10/30/10.
// Copyright 2010 tomcool.org. All rights reserved.
//
-#import <Backrow/BackRow.h>
+#import "Backrow/AppleTV.h"
#import "SynthesizeSingleton.h"
/**
*Convenience Methods with images, colors, logos, sounds and more
View
@@ -7,7 +7,7 @@
//
#define __APPLE_TV__ 1
-#import <Backrow/Backrow.h>
+#import "Backrow/AppleTV.h"
/*
* Protocols
*/
@@ -20,6 +20,8 @@
/*
* Classes
*/
+#import "SMFCompatibility.h"
+#import "SMFCustomQueryMenu.h"
#import "SMFListDropShadowControl.h"
#import "SMFViewMenuController.h"
#import "SMFMediaMenuController.h"
@@ -51,5 +53,7 @@
#import "SMFTextDropShadowControl.h"
#import "SMFComplexDropShadowControl.h"
#import "SMFComplexProcessDropShadowControl.h"
+#import "SMFDictionaryEditor.h"
+#import "SMFControllerPasscodeController.h"
#import "SMFPopup.h"

0 comments on commit a37e8ce

Please sign in to comment.