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 *****************************************************************************/
30 @interface VLCInfo : NSObject
32 IBOutlet id o_info_window;
33 IBOutlet id o_uri_lbl;
34 IBOutlet id o_title_lbl;
35 IBOutlet id o_author_lbl;
36 IBOutlet id o_uri_txt;
37 IBOutlet id o_title_txt;
38 IBOutlet id o_author_txt;
39 IBOutlet id o_outline_view;
41 IBOutlet id o_tab_view;
43 IBOutlet id o_collection_lbl;
44 IBOutlet id o_collection_txt;
45 IBOutlet id o_copyright_lbl;
46 IBOutlet id o_copyright_txt;
47 IBOutlet id o_date_lbl;
48 IBOutlet id o_date_txt;
49 IBOutlet id o_description_lbl;
50 IBOutlet id o_description_txt;
51 IBOutlet id o_genre_lbl;
52 IBOutlet id o_genre_txt;
53 IBOutlet id o_language_lbl;
54 IBOutlet id o_language_txt;
55 IBOutlet id o_nowPlaying_lbl;
56 IBOutlet id o_nowPlaying_txt;
57 IBOutlet id o_publisher_lbl;
58 IBOutlet id o_publisher_txt;
59 IBOutlet id o_seqNum_lbl;
60 IBOutlet id o_seqNum_txt;
61 IBOutlet id o_image_well;
62 IBOutlet id o_saveMetaData_btn;
64 IBOutlet id o_audio_box;
65 IBOutlet id o_audio_decoded_lbl;
66 IBOutlet id o_audio_decoded_txt;
67 IBOutlet id o_demux_bitrate_lbl;
68 IBOutlet id o_demux_bitrate_txt;
69 IBOutlet id o_demux_bytes_lbl;
70 IBOutlet id o_demux_bytes_txt;
71 IBOutlet id o_displayed_lbl;
72 IBOutlet id o_displayed_txt;
73 IBOutlet id o_input_bitrate_lbl;
74 IBOutlet id o_input_bitrate_txt;
75 IBOutlet id o_input_box;
76 IBOutlet id o_lost_abuffers_lbl;
77 IBOutlet id o_lost_abuffers_txt;
78 IBOutlet id o_lost_frames_lbl;
79 IBOutlet id o_lost_frames_txt;
80 IBOutlet id o_played_abuffers_lbl;
81 IBOutlet id o_played_abuffers_txt;
82 IBOutlet id o_read_bytes_lbl;
83 IBOutlet id o_read_bytes_txt;
84 IBOutlet id o_sent_bitrate_lbl;
85 IBOutlet id o_sent_bitrate_txt;
86 IBOutlet id o_sent_bytes_lbl;
87 IBOutlet id o_sent_bytes_txt;
88 IBOutlet id o_sent_packets_lbl;
89 IBOutlet id o_sent_packets_txt;
90 IBOutlet id o_sout_box;
91 IBOutlet id o_video_box;
92 IBOutlet id o_video_decoded_lbl;
93 IBOutlet id o_video_decoded_txt;
94 IBOutlet id o_fps_lbl;
95 IBOutlet id o_fps_txt;
97 playlist_item_t * p_item;
98 NSTimer * o_statUpdateTimer;
102 - (IBAction)metaFieldChanged:(id)sender;
103 - (IBAction)saveMetaData:(id)sender;
104 - (void)initMediaPanelStats;
106 - (playlist_item_t *)getItem;
107 - (BOOL)isItemInPlaylist:(playlist_item_t *)p_item;
109 - (void)setMeta: (char *)meta forLabel: (id)theItem;
110 - (void)updateStatistics: (NSTimer*)theTimer;
112 + (VLCInfo *)sharedInstance;
115 @interface VLCInfoTreeItem : NSObject
120 playlist_item_t * p_item;
121 VLCInfoTreeItem *o_parent;
122 NSMutableArray *o_children;
125 + (VLCInfoTreeItem *)rootItem;
126 - (int)numberOfChildren;
127 - (VLCInfoTreeItem *)childAtIndex:(int)i_index;
128 - (NSString *)getName;
129 - (NSString *)getValue;