1 /*****************************************************************************
2 * actions_manager.hpp : Controller for the main interface
3 ****************************************************************************
4 * Copyright (C) 2006-2008 the VideoLAN team
7 * Authors: Jean-Baptiste Kempf <jb@videolan.org>
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.
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.
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 *****************************************************************************/
24 #ifndef QVLC_ACTIONS_MANAGER_H_
25 #define QVLC_ACTIONS_MANAGER_H_ 1
32 #include "util/singleton.hpp"
39 typedef enum actionType_e
66 class ActionsManager
: public QObject
, public Singleton
<ActionsManager
>
70 friend class Singleton
<ActionsManager
>;
75 ActionsManager( intf_thread_t
*_p_i
);
76 virtual ~ActionsManager();
78 intf_thread_t
* const p_intf
;
79 QVector
<vlc_renderer_discovery_t
*> m_rds
;
80 QTimer m_stop_scan_timer
;
83 static void renderer_event_item_added( vlc_renderer_discovery_t
*,
84 vlc_renderer_item_t
* );
85 static void renderer_event_item_removed( vlc_renderer_discovery_t
*,
86 vlc_renderer_item_t
* );
87 static vlc_renderer_item_t
* getMatchingRenderer( const QVariant
&m_obj
,
88 vlc_renderer_item_t
* p_item
);
91 void toggleMuteAudio();
98 void StartRendererScan();
99 void RendererMenuCountdown();
100 void StopRendererScan();
101 void RendererSelected( QAction
* );
104 void onRendererItemAdded( vlc_renderer_item_t
* );
105 void onRendererItemRemoved( vlc_renderer_item_t
* );
111 virtual void doAction( int );
114 void rendererItemAdded( vlc_renderer_item_t
* );
115 void rendererItemRemoved( vlc_renderer_item_t
* );