/*****************************************************************************
* input_manager.hpp : Manage an input and interact with its GUI elements
****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006-2007 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
#ifndef _INPUT_MANAGER_H_
#define _INPUT_MANAGER_H_
-#include <QObject>
#include <vlc/vlc.h>
#include <vlc_input.h>
+#include <QObject>
+
class InputManager : public QObject
{
Q_OBJECT;
intf_thread_t *p_intf;
input_thread_t *p_input;
int i_old_playing_status;
-
+ QString old_name;
+ int i_rate;
public slots:
void togglePlayPause();
void update(); ///< Periodic updates
void slower();
void faster();
void normalRate();
+ void setRate( int );
void sectionNext();
void sectionPrev();
void sectionMenu();
signals:
/// Send new position, new time and new length
void positionUpdated( float , int, int );
+ void rateChanged( int );
void nameChanged( QString );
/// Used to signal whether we should show navigation buttons
void navigationChanged( int );
/// Play/pause status
void statusChanged( int );
- void audioStarted();
- void videoStarted();
};
class MainInputManager : public QObject