]> git.sesse.net Git - vlc/blob - modules/gui/qt4/actions_manager.hpp
Qt: Fix crash introduced by 798ee1ab
[vlc] / modules / gui / qt4 / actions_manager.hpp
1 /*****************************************************************************
2  * actions_manager.hpp : Controller for the main interface
3  ****************************************************************************
4  * Copyright (C) 2006-2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Jean-Baptiste Kempf <jb@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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef QVLC_ACTIONS_MANAGER_H_
25 #define QVLC_ACTIONS_MANAGER_H_ 1
26
27 #ifdef HAVE_CONFIG_H
28 # include "config.h"
29 #endif
30
31 #include "qt4.hpp"
32 #include "util/singleton.hpp"
33
34 #include <QObject>
35 typedef enum actionType_e
36 {
37     PLAY_ACTION,
38     STOP_ACTION,
39     OPEN_ACTION,
40     PREVIOUS_ACTION,
41     NEXT_ACTION,
42     SLOWER_ACTION,
43     FASTER_ACTION,
44     FULLSCREEN_ACTION,
45     FULLWIDTH_ACTION,
46     EXTENDED_ACTION,
47     PLAYLIST_ACTION,
48     SNAPSHOT_ACTION,
49     RECORD_ACTION,
50     FRAME_ACTION,
51     ATOB_ACTION,
52     REVERSE_ACTION,
53     SKIP_BACK_ACTION,
54     SKIP_FW_ACTION,
55     QUIT_ACTION,
56     RANDOM_ACTION,
57     LOOP_ACTION,
58     INFO_ACTION,
59     OPEN_SUB_ACTION,
60 } actionType_e;
61
62 class ActionsManager : public QObject, public Singleton<ActionsManager>
63 {
64
65     Q_OBJECT
66     friend class Singleton<ActionsManager>;
67
68 public:
69
70 private:
71     ActionsManager( intf_thread_t  *_p_i );
72     virtual ~ActionsManager() {}
73
74     intf_thread_t       *p_intf;
75
76 public slots:
77     void toggleMuteAudio();
78     void AudioUp();
79     void AudioDown();
80     void play();
81     void record();
82     void skipForward();
83     void skipBackward();
84
85 protected slots:
86     void fullscreen();
87     void snapshot();
88     void playlist();
89     void frame();
90
91     virtual void doAction( int );
92 };
93
94 #endif
95