1 /*****************************************************************************
2 * playlistinfo.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2002-2008 the VideoLAN team
7 * Authors: Benjamin Pracht <bigben at videolan dot org>
8 * Felix Paul Kühne <fkuehne at videolan dot org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 /*****************************************************************************
26 * VLCPlaylistInfo interface
27 *****************************************************************************/
29 @class VLCInfoTreeItem;
31 @interface VLCInfo : NSObject
33 IBOutlet id o_info_window;
34 IBOutlet id o_uri_lbl;
35 IBOutlet id o_title_lbl;
36 IBOutlet id o_author_lbl;
37 IBOutlet id o_uri_txt;
38 IBOutlet id o_title_txt;
39 IBOutlet id o_author_txt;
40 IBOutlet id o_outline_view;
42 IBOutlet id o_tab_view;
44 IBOutlet id o_collection_lbl;
45 IBOutlet id o_collection_txt;
46 IBOutlet id o_copyright_lbl;
47 IBOutlet id o_copyright_txt;
48 IBOutlet id o_date_lbl;
49 IBOutlet id o_date_txt;
50 IBOutlet id o_description_lbl;
51 IBOutlet id o_description_txt;
52 IBOutlet id o_genre_lbl;
53 IBOutlet id o_genre_txt;
54 IBOutlet id o_language_lbl;
55 IBOutlet id o_language_txt;
56 IBOutlet id o_nowPlaying_lbl;
57 IBOutlet id o_nowPlaying_txt;
58 IBOutlet id o_publisher_lbl;
59 IBOutlet id o_publisher_txt;
60 IBOutlet id o_seqNum_lbl;
61 IBOutlet id o_seqNum_txt;
62 IBOutlet id o_image_well;
63 IBOutlet id o_saveMetaData_btn;
65 IBOutlet id o_audio_box;
66 IBOutlet id o_audio_decoded_lbl;
67 IBOutlet id o_audio_decoded_txt;
68 IBOutlet id o_demux_bitrate_lbl;
69 IBOutlet id o_demux_bitrate_txt;
70 IBOutlet id o_demux_bytes_lbl;
71 IBOutlet id o_demux_bytes_txt;
72 IBOutlet id o_displayed_lbl;
73 IBOutlet id o_displayed_txt;
74 IBOutlet id o_input_bitrate_lbl;
75 IBOutlet id o_input_bitrate_txt;
76 IBOutlet id o_input_box;
77 IBOutlet id o_lost_abuffers_lbl;
78 IBOutlet id o_lost_abuffers_txt;
79 IBOutlet id o_lost_frames_lbl;
80 IBOutlet id o_lost_frames_txt;
81 IBOutlet id o_played_abuffers_lbl;
82 IBOutlet id o_played_abuffers_txt;
83 IBOutlet id o_read_bytes_lbl;
84 IBOutlet id o_read_bytes_txt;
85 IBOutlet id o_sent_bitrate_lbl;
86 IBOutlet id o_sent_bitrate_txt;
87 IBOutlet id o_sent_bytes_lbl;
88 IBOutlet id o_sent_bytes_txt;
89 IBOutlet id o_sent_packets_lbl;
90 IBOutlet id o_sent_packets_txt;
91 IBOutlet id o_sout_box;
92 IBOutlet id o_video_box;
93 IBOutlet id o_video_decoded_lbl;
94 IBOutlet id o_video_decoded_txt;
95 IBOutlet id o_fps_lbl;
96 IBOutlet id o_fps_txt;
98 VLCInfoTreeItem * rootItem;
100 input_item_t * p_item;
101 NSTimer * o_statUpdateTimer;
107 - (IBAction)metaFieldChanged:(id)sender;
108 - (IBAction)saveMetaData:(id)sender;
109 - (IBAction)downloadCoverArt:(id)sender;
110 - (void)initMediaPanelStats;
111 - (void)updatePanelWithItem:(input_item_t *)_p_item;
112 - (input_item_t *)item;
113 - (void)setMeta: (char *)meta forLabel: (id)theItem;
114 - (void)updateStatistics: (NSTimer*)theTimer;
116 + (VLCInfo *)sharedInstance;
119 @interface VLCInfoTreeItem : NSObject
124 input_item_t * p_item;
125 VLCInfoTreeItem *o_parent;
126 NSMutableArray *o_children;
129 - (int)numberOfChildren;
130 - (VLCInfoTreeItem *)childAtIndex:(NSUInteger)i_index;