playlistinfo.h 4.2 KB
Newer Older
bigben's avatar
bigben committed
1 2 3
/*****************************************************************************
 * playlistinfo.h: MacOS X interface module
 *****************************************************************************
4
 * Copyright (C) 2002-2006 the VideoLAN team
5
 * $Id$
bigben's avatar
bigben committed
6
 *
7 8
 * Authors: Benjamin Pracht <bigben at videolan dot org>
 *          Felix Khne <fkuehne at videolan dot org>
bigben's avatar
bigben committed
9 10 11 12 13
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
14
 *
bigben's avatar
bigben committed
15 16 17 18 19 20 21
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
dionoea's avatar
dionoea committed
22
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
bigben's avatar
bigben committed
23 24 25
 *****************************************************************************/

/*****************************************************************************
26
 * VLCPlaylistInfo interface
bigben's avatar
bigben committed
27 28 29
 *****************************************************************************/


30
@interface VLCInfo : NSObject
bigben's avatar
bigben committed
31 32 33 34 35 36 37 38
{
    IBOutlet id o_info_window;
    IBOutlet id o_uri_lbl;
    IBOutlet id o_title_lbl;
    IBOutlet id o_author_lbl;
    IBOutlet id o_uri_txt;
    IBOutlet id o_title_txt;
    IBOutlet id o_author_txt;
39 40
    IBOutlet id o_btn_ok;
    IBOutlet id o_btn_cancel;
bigben's avatar
*all :  
bigben committed
41 42
    IBOutlet id o_btn_delete_group;
    IBOutlet id o_btn_add_group;
43
    IBOutlet id o_outline_view;
44

45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
    IBOutlet id o_tab_view;

    IBOutlet id o_collection_lbl;
    IBOutlet id o_collection_txt;
    IBOutlet id o_copyright_lbl;
    IBOutlet id o_copyright_txt;
    IBOutlet id o_date_lbl;
    IBOutlet id o_date_txt;
    IBOutlet id o_description_lbl;
    IBOutlet id o_description_txt;
    IBOutlet id o_genre_lbl;
    IBOutlet id o_genre_txt;
    IBOutlet id o_language_lbl;
    IBOutlet id o_language_txt;
    IBOutlet id o_nowPlaying_lbl;
    IBOutlet id o_nowPlaying_txt;
    IBOutlet id o_publisher_lbl;
    IBOutlet id o_publisher_txt;
    IBOutlet id o_rating_lbl;
    IBOutlet id o_rating_txt;
    IBOutlet id o_seqNum_lbl;
    IBOutlet id o_seqNum_txt;
67

68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
    IBOutlet id o_audio_box;
    IBOutlet id o_audio_decoded_lbl;
    IBOutlet id o_audio_decoded_txt;
    IBOutlet id o_demux_bitrate_lbl;
    IBOutlet id o_demux_bitrate_txt;
    IBOutlet id o_demux_bytes_lbl;
    IBOutlet id o_demux_bytes_txt;
    IBOutlet id o_displayed_lbl;
    IBOutlet id o_displayed_txt;
    IBOutlet id o_input_bitrate_lbl;
    IBOutlet id o_input_bitrate_txt;
    IBOutlet id o_input_box;
    IBOutlet id o_lost_abuffers_lbl;
    IBOutlet id o_lost_abuffers_txt;
    IBOutlet id o_lost_frames_lbl;
    IBOutlet id o_lost_frames_txt;
    IBOutlet id o_played_abuffers_lbl;
    IBOutlet id o_played_abuffers_txt;
    IBOutlet id o_read_bytes_lbl;
    IBOutlet id o_read_bytes_txt;
    IBOutlet id o_sent_bitrate_lbl;
    IBOutlet id o_sent_bitrate_txt;
    IBOutlet id o_sent_bytes_lbl;
    IBOutlet id o_sent_bytes_txt;
    IBOutlet id o_sent_packets_lbl;
    IBOutlet id o_sent_packets_txt;
    IBOutlet id o_sout_box;
    IBOutlet id o_video_box;
    IBOutlet id o_video_decoded_lbl;
    IBOutlet id o_video_decoded_txt;

99
    playlist_item_t * p_item;
100
    NSTimer * o_statUpdateTimer;
bigben's avatar
bigben committed
101 102 103
}

- (IBAction)togglePlaylistInfoPanel:(id)sender;
104 105
- (IBAction)toggleInfoPanel:(id)sender;
- (void)initPanel:(id)sender;
106
- (void)updatePanel;
bigben's avatar
bigben committed
107 108
- (IBAction)infoCancel:(id)sender;
- (IBAction)infoOk:(id)sender;
109
- (playlist_item_t *)getItem;
hartman's avatar
hartman committed
110
- (BOOL)isItemInPlaylist:(playlist_item_t *)p_item;
bigben's avatar
bigben committed
111

112
- (void)setMeta: (char *)meta forLabel: (id)theItem;
113
- (void)updateStatistics: (NSTimer*)theTimer;
bigben's avatar
bigben committed
114
@end
115 116 117 118 119 120

@interface VLCInfoTreeItem : NSObject
{
    NSString *o_name;
    NSString *o_value;
    int i_object_id;
121
    playlist_item_t * p_item;
122 123 124 125 126 127 128 129 130 131 132 133 134
    VLCInfoTreeItem *o_parent;
    NSMutableArray *o_children;
}

+ (VLCInfoTreeItem *)rootItem;
- (int)numberOfChildren;
- (VLCInfoTreeItem *)childAtIndex:(int)i_index;
- (NSString *)getName;
- (NSString *)getValue;
- (void)refresh;

@end