#endif
#include <vlc_input.h>
-#include <vlc_vout.h>
-#include <vlc_aout.h>
#include "qt4.hpp"
ItemTitleChanged_Type,
ItemRateChanged_Type,
VolumeChanged_Type,
+ SoundMuteChanged_Type,
ItemEsChanged_Type,
ItemTeletextChanged_Type,
InterfaceVoutUpdate_Type,
BookmarksChanged_Type,
RecordingEvent_Type,
ProgramChanged_Type,
+ RandomChanged_Type,
+ LoopChanged_Type,
+ RepeatChanged_Type,
/* SignalChanged_Type, */
FullscreenControlToggle_Type = QEvent::User + IMEventType + 20,
FullscreenControlPlanHide_Type,
};
+enum { NORMAL, /* loop: 0, repeat: 0 */
+ REPEAT_ONE,/* loop: 1, repeat: 0 */
+ REPEAT_ALL,/* loop: 0, repeat: 1 */
+};
+
class IMEvent : public QEvent
{
friend class InputManager;
input_item_t *p_item;
};
+enum PLEventTypes
+{
+ PLItemAppended_Type = QEvent::User + PLEventType + 1,
+ PLItemRemoved_Type
+};
+
+class PLEvent : public QEvent
+{
+public:
+ PLEvent( PLEventTypes t, int i, int p )
+ : QEvent( (QEvent::Type)t ), i_item(i), i_parent(p) {}
+ int i_item;
+ int i_parent;
+};
+
class InputManager : public QObject
{
Q_OBJECT;
void UpdateArt();
void UpdateInfo();
void UpdateMeta();
- void UpdateMeta(int);
+ void UpdateMeta(input_item_t *);
void UpdateVout();
void UpdateAout();
void UpdateStats();
/// Send new position, new time and new length
void positionUpdated( float , int, int );
void rateChanged( int );
- void nameChanged( QString );
+ void nameChanged( const QString& );
/// Used to signal whether we should show navigation buttons
void titleChanged( bool );
void chapterChanged( bool );
void statisticsUpdated( input_item_t* );
void infoChanged( input_item_t* );
void currentMetaChanged( input_item_t* );
- void metaChanged( int );
+ void metaChanged( input_item_t *);
void artChanged( QString );
/// Play/pause status
void statusChanged( int );
instance = NULL;
}
- input_thread_t *getInput() { return p_input; };
- InputManager *getIM() { return im; };
+ input_thread_t *getInput() { return p_input; }
+ InputManager *getIM() { return im; }
vout_thread_t* getVout();
aout_instance_t *getAout();
input_thread_t *p_input;
intf_thread_t *p_intf;
+ void notifyRepeatLoop();
public slots:
void togglePlayPause();
+ void toggleRandom();
void stop();
void next();
void prev();
void activatePlayQuit( bool );
+ void loopRepeatLoopStatus();
+
signals:
void inputChanged( input_thread_t * );
void volumeChanged();
+ void soundMuteChanged();
+ void playlistItemAppended( int itemId, int parentId );
+ void playlistItemRemoved( int itemId );
+ void randomChanged( bool );
+ void repeatLoopChanged( int );
};
#endif