00001 /***************************************************************************** 00002 * playlistinfo.h: MacOS X interface module 00003 ***************************************************************************** 00004 * Copyright (C) 2002-2008 the VideoLAN team 00005 * $Id: c3259a4e387c9a5aa9819e7a029ac86e83a3c92d $ 00006 * 00007 * Authors: Benjamin Pracht <bigben at videolan dot org> 00008 * Felix Paul Kühne <fkuehne at videolan dot org> 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00023 *****************************************************************************/ 00024 00025 /***************************************************************************** 00026 * VLCPlaylistInfo interface 00027 *****************************************************************************/ 00028 00029 @class VLCInfoTreeItem; 00030 00031 @interface VLCInfo : NSObject 00032 { 00033 IBOutlet id o_info_window; 00034 IBOutlet id o_uri_lbl; 00035 IBOutlet id o_title_lbl; 00036 IBOutlet id o_author_lbl; 00037 IBOutlet id o_uri_txt; 00038 IBOutlet id o_title_txt; 00039 IBOutlet id o_author_txt; 00040 IBOutlet id o_outline_view; 00041 00042 IBOutlet id o_tab_view; 00043 00044 IBOutlet id o_collection_lbl; 00045 IBOutlet id o_collection_txt; 00046 IBOutlet id o_copyright_lbl; 00047 IBOutlet id o_copyright_txt; 00048 IBOutlet id o_date_lbl; 00049 IBOutlet id o_date_txt; 00050 IBOutlet id o_description_lbl; 00051 IBOutlet id o_description_txt; 00052 IBOutlet id o_genre_lbl; 00053 IBOutlet id o_genre_txt; 00054 IBOutlet id o_language_lbl; 00055 IBOutlet id o_language_txt; 00056 IBOutlet id o_nowPlaying_lbl; 00057 IBOutlet id o_nowPlaying_txt; 00058 IBOutlet id o_publisher_lbl; 00059 IBOutlet id o_publisher_txt; 00060 IBOutlet id o_seqNum_lbl; 00061 IBOutlet id o_seqNum_txt; 00062 IBOutlet id o_image_well; 00063 IBOutlet id o_saveMetaData_btn; 00064 00065 IBOutlet id o_audio_box; 00066 IBOutlet id o_audio_decoded_lbl; 00067 IBOutlet id o_audio_decoded_txt; 00068 IBOutlet id o_demux_bitrate_lbl; 00069 IBOutlet id o_demux_bitrate_txt; 00070 IBOutlet id o_demux_bytes_lbl; 00071 IBOutlet id o_demux_bytes_txt; 00072 IBOutlet id o_displayed_lbl; 00073 IBOutlet id o_displayed_txt; 00074 IBOutlet id o_input_bitrate_lbl; 00075 IBOutlet id o_input_bitrate_txt; 00076 IBOutlet id o_input_box; 00077 IBOutlet id o_lost_abuffers_lbl; 00078 IBOutlet id o_lost_abuffers_txt; 00079 IBOutlet id o_lost_frames_lbl; 00080 IBOutlet id o_lost_frames_txt; 00081 IBOutlet id o_played_abuffers_lbl; 00082 IBOutlet id o_played_abuffers_txt; 00083 IBOutlet id o_read_bytes_lbl; 00084 IBOutlet id o_read_bytes_txt; 00085 IBOutlet id o_sent_bitrate_lbl; 00086 IBOutlet id o_sent_bitrate_txt; 00087 IBOutlet id o_sent_bytes_lbl; 00088 IBOutlet id o_sent_bytes_txt; 00089 IBOutlet id o_sent_packets_lbl; 00090 IBOutlet id o_sent_packets_txt; 00091 IBOutlet id o_sout_box; 00092 IBOutlet id o_video_box; 00093 IBOutlet id o_video_decoded_lbl; 00094 IBOutlet id o_video_decoded_txt; 00095 IBOutlet id o_fps_lbl; 00096 IBOutlet id o_fps_txt; 00097 00098 VLCInfoTreeItem * rootItem; 00099 00100 input_item_t * p_item; 00101 NSTimer * o_statUpdateTimer; 00102 } 00103 00104 - (void)initPanel; 00105 - (void)stopTimers; 00106 00107 - (IBAction)metaFieldChanged:(id)sender; 00108 - (IBAction)saveMetaData:(id)sender; 00109 - (IBAction)downloadCoverArt:(id)sender; 00110 - (void)initMediaPanelStats; 00111 - (void)updatePanelWithItem:(input_item_t *)_p_item; 00112 - (input_item_t *)item; 00113 - (void)setMeta: (char *)meta forLabel: (id)theItem; 00114 - (void)updateStatistics: (NSTimer*)theTimer; 00115 00116 + (VLCInfo *)sharedInstance; 00117 @end 00118 00119 @interface VLCInfoTreeItem : NSObject 00120 { 00121 NSString *o_name; 00122 NSString *o_value; 00123 int i_object_id; 00124 input_item_t * p_item; 00125 VLCInfoTreeItem *o_parent; 00126 NSMutableArray *o_children; 00127 } 00128 00129 - (int)numberOfChildren; 00130 - (VLCInfoTreeItem *)childAtIndex:(NSUInteger)i_index; 00131 - (NSString *)name; 00132 - (NSString *)value; 00133 - (void)refresh; 00134 00135 @end 00136
1.5.6