]> git.sesse.net Git - vlc/blob - modules/gui/skins/src/vlcproc.h
558d3983a1f54bf115e7a3491901fbdc593f8f5a
[vlc] / modules / gui / skins / src / vlcproc.h
1 /*****************************************************************************
2  * vlcproc.h: VlcProc class
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id: vlcproc.h,v 1.11 2003/10/22 19:12:56 ipkiss Exp $
6  *
7  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
8  *          Emmanuel Puig    <karibu@via.ecp.fr>
9  *
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.
14  *
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.
19  *
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., 59 Temple Place - Suite 330, Boston, MA  02111,
23  * USA.
24  *****************************************************************************/
25
26
27 #ifndef VLC_SKIN_PROC
28 #define VLC_SKIN_PROC
29
30 #include "skin_common.h"
31
32 //--- GENERAL ---------------------------------------------------------------
33 #include <string>
34 using namespace std;
35
36 //---------------------------------------------------------------------------
37 class VlcProc
38 {
39     private:
40         intf_thread_t *p_intf;
41
42         // Vlc methods
43         void LoadSkin();
44         void DropFile( unsigned int param1, long param2 );
45         void PauseStream();
46         void PlayStream();
47         void StopStream();
48         void NextStream();
49         void PrevStream();
50         void MoveStream( long Pos );
51         void FullScreen();
52         void ChangeVolume( unsigned int msg, long param );
53
54         static int RefreshCallback( vlc_object_t *p_this,
55             const char *psz_variable, vlc_value_t old_val, vlc_value_t new_val,
56             void *param );
57         static int IntfShowCallback( vlc_object_t *p_this,
58             const char *psz_variable, vlc_value_t old_val, vlc_value_t new_val,
59             void *param );
60
61         void InterfaceRefresh();
62         void EnabledEvent( string type, bool state );
63
64     public:
65         // Constuctor
66         VlcProc( intf_thread_t *_p_intf );
67
68         // Destructor
69         ~VlcProc();
70
71         // Event procedures
72         bool EventProc( Event *evt );
73         bool EventProcEnd();
74         bool IsClosing();
75
76         // Getters
77         intf_thread_t *GetpIntf() { return p_intf; };
78 };
79 //---------------------------------------------------------------------------
80
81 #endif