vlm.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * vlm.h: VLM Configuration panel for Mac OS X
00003  *****************************************************************************
00004  * Copyright (c) 2008 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Felix Paul Kühne <fkuehne@videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00022  *****************************************************************************/
00023 
00024 
00025 #ifdef HAVE_CONFIG_H
00026 #   import "config.h"
00027 #endif
00028 
00029 #ifdef ENABLE_VLM
00030 
00031 #import <Cocoa/Cocoa.h>
00032 #import "intf.h"
00033 
00034 #import <vlc_vlm.h>
00035 
00036 @interface VLCVLMController : NSObject
00037 {
00038     /* broadcast panel */
00039     IBOutlet NSButton *o_bcast_add_btn;
00040     IBOutlet NSBox *o_bcast_box;
00041     IBOutlet NSButton *o_bcast_cancel_btn;
00042     IBOutlet NSButton *o_bcast_enable_ckb;
00043     IBOutlet NSButton *o_bcast_input_btn;
00044     IBOutlet NSTextField *o_bcast_input_fld;
00045     IBOutlet NSButton *o_bcast_loop_ckb;
00046     IBOutlet NSTextField *o_bcast_name_fld;
00047     IBOutlet NSButton *o_bcast_output_btn;
00048     IBOutlet NSTextField *o_bcast_output_fld;
00049     IBOutlet NSPanel *o_bcast_panel;
00050 
00051     /* schedule panel */
00052     IBOutlet id o_sched_add_btn;
00053     IBOutlet id o_sched_box;
00054     IBOutlet id o_sched_cancel_btn;
00055     IBOutlet NSDatePicker *o_sched_date_datePicker;
00056     IBOutlet NSTextField *o_sched_date_lbl;
00057     IBOutlet NSButton *o_sched_input_btn;
00058     IBOutlet NSTextField *o_sched_input_fld;
00059     IBOutlet NSTextField *o_sched_input_lbl;
00060     IBOutlet NSTextField *o_sched_name_fld;
00061     IBOutlet NSTextField *o_sched_name_lbl;
00062     IBOutlet NSButton *o_sched_output_btn;
00063     IBOutlet NSTextField *o_sched_output_fld;
00064     IBOutlet NSTextField *o_sched_output_lbl;
00065     IBOutlet NSTextField *o_sched_repeat_fld;
00066     IBOutlet NSTextField *o_sched_repeat_lbl;
00067     IBOutlet NSDatePicker *o_sched_repeatDelay_datePicker;
00068     IBOutlet id o_sched_time_box;
00069     IBOutlet NSWindow *o_sched_panel;
00070 
00071     /* VLM Window */
00072     IBOutlet NSTableView *o_vlm_list;
00073     IBOutlet NSWindow *o_vlm_win;
00074 
00075     /* VOD Panel */
00076     IBOutlet NSButton *o_vod_add_btn;
00077     IBOutlet id o_vod_box;
00078     IBOutlet NSButton *o_vod_cancel_btn;
00079     IBOutlet NSButton *o_vod_input_btn;
00080     IBOutlet NSTextField *o_vod_input_fld;
00081     IBOutlet NSTextField *o_vod_input_lbl;
00082     IBOutlet NSButton *o_vod_loop_ckb;
00083     IBOutlet NSTextField *o_vod_name_fld;
00084     IBOutlet NSTextField *o_vod_name_lbl;
00085     IBOutlet NSButton *o_vod_output_btn;
00086     IBOutlet NSTextField *o_vod_output_fld;
00087     IBOutlet NSTextField *o_vod_output_lbl;
00088     IBOutlet NSWindow *o_vod_panel;
00089 }
00090 + (VLCVLMController *)sharedInstance;
00091 
00092 /* toolbar */
00093 - (NSToolbarItem *) toolbar: (NSToolbar *)o_toolbar 
00094       itemForItemIdentifier: (NSString *)o_itemIdent 
00095   willBeInsertedIntoToolbar: (BOOL)b_willBeInserted;
00096 - (NSArray *)toolbarDefaultItemIdentifiers: (NSToolbar *)toolbar;
00097 - (NSArray *)toolbarAllowedItemIdentifiers: (NSToolbar *)toolbar;
00098 
00099 - (void)showVLMWindow;
00100 - (void)initStrings;
00101 
00102 - (void)addBcast;
00103 - (void)addVOD;
00104 - (void)addSched;
00105 
00106 - (IBAction)bcastButtonAction:(id)sender;
00107 - (IBAction)listDoubleClickAction:(id)sender;
00108 - (IBAction)schedButtonAction:(id)sender;
00109 - (IBAction)vodButtonAction:(id)sender;
00110 
00111 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
00112 - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
00113 @end
00114 
00115 #endif

Generated on Wed Mar 31 08:05:22 2010 for VLC by  doxygen 1.5.6