/*****************************************************************************
- * Controller.hpp : Controller for the main interface
+ * actions_manager.hpp : Controller for the main interface
****************************************************************************
* Copyright (C) 2006-2008 the VideoLAN team
* $Id$
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#ifndef _ACTIONS_MANAGER_H_
-#define _ACTIONS_MANAGER_H_
+#ifndef QVLC_ACTIONS_MANAGER_H_
+#define QVLC_ACTIONS_MANAGER_H_ 1
#ifdef HAVE_CONFIG_H
# include "config.h"
SLOWER_ACTION,
FASTER_ACTION,
FULLSCREEN_ACTION,
+ FULLWIDTH_ACTION,
EXTENDED_ACTION,
PLAYLIST_ACTION,
SNAPSHOT_ACTION,
SKIP_BACK_ACTION,
SKIP_FW_ACTION,
QUIT_ACTION,
+ RANDOM_ACTION,
+ LOOP_ACTION,
+ INFO_ACTION,
+ OPEN_SUB_ACTION,
} actionType_e;
class ActionsManager : public QObject
}
static void killInstance()
{
- if( instance ) delete instance;
+ delete instance;
+ instance = NULL;
}
- virtual ~ActionsManager();
private:
+ virtual ~ActionsManager();
+
static ActionsManager *instance;
ActionsManager( intf_thread_t *_p_i, QObject *_parent );
intf_thread_t *p_intf;
-protected slots:
- virtual void doAction( int );
-
-protected slots:
+public slots:
+ void toggleMuteAudio();
+ void AudioUp();
+ void AudioDown();
void play();
+ void record();
+ void skipForward();
+ void skipBackward();
+protected slots:
void fullscreen();
void snapshot();
void playlist();
- void record();
void frame();
+ virtual void doAction( int );
};
#endif