summaryrefslogtreecommitdiffstats
path: root/k9Mplayer/k9mplayer.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
commit0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch)
tree8578dcddfce4191f3f7a142a37769df7add48475 /k9Mplayer/k9mplayer.h
downloadk9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz
k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip
Added old abandoned version of k9copy
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9Mplayer/k9mplayer.h')
-rw-r--r--k9Mplayer/k9mplayer.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/k9Mplayer/k9mplayer.h b/k9Mplayer/k9mplayer.h
new file mode 100644
index 0000000..c4723e8
--- /dev/null
+++ b/k9Mplayer/k9mplayer.h
@@ -0,0 +1,66 @@
+
+#ifndef K9Mplayer_H
+#define K9Mplayer_H
+
+#include "k9common.h"
+#include "../k9Mplayer/mplayer.h"
+
+
+class k9DVD;
+class k9DVDTitle;
+class KProcess;
+class QTimer;
+class QResizeEvent;
+
+class K9Mplayer : public MPlayer
+{
+ Q_OBJECT
+private:
+ KProcess *m_process;
+ bool m_seeking,m_initVol;
+ int m_title;
+ k9DVDTitle *m_dvdTitle;
+ QString m_device;
+ QTimer *m_timer;
+ void sendCmd(QString _cmd);
+ int m_position;
+ bool m_canwrite;
+ QWidget *m_container;
+ float m_ratio;
+public:
+ //K9Mplayer(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ K9Mplayer(QObject *parent=0,const char *name=0,const QStringList args=0);
+ ~K9Mplayer();
+ /*$PUBLIC_FUNCTIONS$*/
+ void setDevice(const QString & _device);
+ void setTitle(const QString & _numTitle,const QString &_numChapter);
+private slots:
+ void slotLengthChanged();
+ void slotNewPosition(int _pos,const QTime & _time);
+ void receivedStdout (KProcess *proc, char *buffer, int buflen);
+ void wroteStdin(KProcess *_process);
+ void timeout();
+public slots:
+ /*$PUBLIC_SLOTS$*/
+ virtual void sliderReleased();
+ virtual void bPlayClick();
+ virtual void bStopClick();
+ virtual void sliderPressed();
+ virtual void sliderChanged(int _value);
+ virtual void open(k9DVD *_dvd,k9DVDTitle *_title,int chapter);
+ virtual void titleChanged();
+ virtual void cbAudioActivated (int _value);
+ virtual void cbSubActivated (int _value);
+ virtual void bUpClick();
+ virtual void bDownClick();
+ virtual void bSwitchAudioClick();
+protected:
+ /*$PROTECTED_FUNCTIONS$*/
+ void resizeEvent ( QResizeEvent * _resiseEvent);
+protected slots:
+ /*$PROTECTED_SLOTS$*/
+
+};
+
+#endif
+