1/* 2 * Copyright (c) 2000-2008, Ingo Weinhold <ingo_weinhold@gmx.de>, 3 * Copyright (c) 2000-2008, Stephan A��mus <superstippi@gmx.de>, 4 * All Rights Reserved. Distributed under the terms of the MIT license. 5 */ 6 7/*! This class listens to a PlaybackManager 8 9 The hooks are called by PlaybackManager after it executed a command, 10 to keep every listener informed. FrameDropped() is something the nodes 11 can call and it is passed onto the contollers, so that they can respond 12 by displaying some kind of warning. */ 13 14#ifndef PLAYBACK_LISTENER_H 15#define PLAYBACK_LISTENER_H 16 17#include <Rect.h> 18#include <SupportDefs.h> 19 20class PlaybackListener { 21 public: 22 PlaybackListener(); 23 virtual ~PlaybackListener(); 24 25 virtual void PlayModeChanged(int32 mode); 26 virtual void LoopModeChanged(int32 mode); 27 virtual void LoopingEnabledChanged(bool enabled); 28 29 virtual void VideoBoundsChanged(BRect bounds); 30 virtual void FramesPerSecondChanged(float fps); 31 virtual void SpeedChanged(float speed); 32 33 virtual void CurrentFrameChanged(double frame); 34 35 virtual void FrameDropped(); 36}; 37 38 39#endif // PLAYBACK_LISTENER_H 40