2 * Controller.cpp - Media Player for the Haiku Operating System
4 * Copyright (C) 2006 Marcus Overhagen <marcus@overhagen.de>
5 * Copyright (C) 2007 Stephan Aßmus <superstippi@gmx.de>
6 * Copyright (C) 2008-2009 Fredrik Modéen <[FirstName]@[LastName].se> (MIT ok)
8 * Released under the terms of the MIT license.
10 #ifndef __CONTROLLER_VIEW_H
11 #define __CONTROLLER_VIEW_H
14 #include "TransportControlGroup.h"
19 class PlaylistObserver
;
22 class ControllerView
: public TransportControlGroup
{
24 ControllerView(BRect frame
, Controller
* controller
,
28 // TransportControlGroup interface
29 virtual void TogglePlaying();
31 virtual void Rewind();
32 virtual void Forward();
33 virtual void SkipBackward();
34 virtual void SkipForward();
35 virtual void VolumeChanged(float value
);
36 virtual void ToggleMute();
37 virtual void PositionChanged(float value
);
40 void AttachedToWindow();
41 void MessageReceived(BMessage
* message
);
42 void Draw(BRect updateRect
);
45 void _CheckSkippable();
48 Controller
* fController
;
50 PlaylistObserver
* fPlaylistObserver
;
53 #endif // __CONTROLLER_VIEW_H