404808dd9bc0b11936d9e92b4b099ad03a946e19
[vlc.git] / projects / macosx / frontrow_plugin / VLCAppliance.m
1 //
2 //  VLCAppliance.m
3 //  FRVLC
4 //
5 //  Created by hyei on 31/08/07.
6 //  Copyright 2007 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <VLCKit/VLCKit.h>
10
11 #import "VLCAppliance.h"
12
13 #import "VLCApplianceController.h"
14 #import "VLCMediaListController.h"
15
16 @implementation VLCAppliance
17
18 + (NSString *) className {
19         return @"RUIMoviesAppliance";
20 }
21
22 - (void)dealloc
23 {
24     NSLog(@"DEALLOC");
25     [super dealloc];
26 }
27
28 - (id)applianceController
29 {
30     // Disabled until we properly display a menu for that. You can test it by uncommenting those lines, and comment the following line.
31     // VLCMediaListAspect * mediaListAspect = [[[[[VLCMediaDiscoverer alloc] initWithName:@"freebox"] discoveredMedia] retain] hierarchicalAspect];
32     // VLCApplianceController * controller = [[VLCMediaListController alloc] initWithMediaListAspect:mediaListAspect];
33
34     VLCApplianceController * controller = [[VLCApplianceController alloc] initWithPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Movies"]];
35     
36     return [controller autorelease];
37 }
38
39
40 //
41 //- (id)initWithSettings:(id)fp8
42 //{
43 //    self = [super initWithSettings:fp8];
44 //    NSLog(@"settings: %@", fp8);
45 //    return [self retain];
46 //}
47
48
49 @end