]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/timer.hpp
p( vlc.getInterfaces().getInterface( "wxwidgets" ).isBroken() ) = 1/2
[vlc] / modules / gui / wxwidgets / timer.hpp
1 /*****************************************************************************
2  * timer.hpp: Timer headers
3  *****************************************************************************
4  * Copyright (C) 1999-2005 the VideoLAN team
5  * $Id: wxwidgets.h 12502 2005-09-09 19:38:01Z gbazin $
6  *
7  * Authors: Gildas Bazin <gbazin@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #include "wxwidgets.hpp"
25
26 namespace wxvlc
27 {
28     class MainSliderManager;
29     class Interface;
30
31     class Timer: public wxTimer
32     {
33     public:
34         /* Constructor */
35         Timer( intf_thread_t *p_intf, Interface *p_main_interface );
36         virtual ~Timer();
37
38         virtual void Notify();
39
40     private:
41         //use wxWindow::IsShown instead
42         //vlc_bool_t b_slider_shown;
43         //vlc_bool_t b_disc_shown;
44         intf_thread_t *p_intf;
45         Interface *p_main_interface;
46         vlc_bool_t b_init;
47         int i_old_playing_status;
48         int i_old_rate;
49
50         MainSliderManager *msm;
51     };
52
53 }