castecna oprava kontroleru bufferu
[ctkuk.git] / timebufferedslider.h
blob7cd45e9b8461927cf592a0c43f41c03259955808
1 #ifndef TIMEBUFFEREDSLIDER_H
2 #define TIMEBUFFEREDSLIDER_H
4 #include "slider.h"
6 class TimeBufferedSlider : public Slider
8 Q_OBJECT
9 public:
10 explicit TimeBufferedSlider( QWidget* parent = 0 );
11 ~TimeBufferedSlider();
13 int valueBuffer() const;
14 int maximumBuffer() const;
15 int minimumBuffer() const;
18 virtual void setMaximumBuffer(int max);
19 virtual void setMinimumBuffer(int min);
20 virtual void setRangeBuffer(int min, int max);
22 public slots:
23 virtual void setBufferValue( int value );
25 virtual void setMediaObject ( Phonon::MediaObject * media );
26 virtual void mediaVideoChanged(bool hasVideo);
30 protected:
31 /*!
32 * \brief
33 * Samotne vykresleni obsahu komponenty
35 void paintCustomSlider( QPainter *p, int x, int y, int width, int height);
39 int m_bufferValue;
40 int m_bufferMinimum;
41 int m_bufferMaximum;
46 private:
50 Phonon::MediaObject * m_pMediaObject;
54 #endif // TIMEBUFFEREDSLIDER_H