diff options
Diffstat (limited to 'k9Mplayer')
-rw-r--r-- | k9Mplayer/k9mplayer.cpp | 12 | ||||
-rw-r--r-- | k9Mplayer/k9mplayer.h | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/k9Mplayer/k9mplayer.cpp b/k9Mplayer/k9mplayer.cpp index ef665f8..ac7eabd 100644 --- a/k9Mplayer/k9mplayer.cpp +++ b/k9Mplayer/k9mplayer.cpp @@ -23,7 +23,7 @@ K9Mplayer::K9Mplayer(TQObject *parent,const char *name,const TQStringList args) m_initVol=TRUE; m_title=0; - m_process=new KProcess(TQT_TQOBJECT(this)); + m_process=new TDEProcess(TQT_TQOBJECT(this)); m_ratio=4.0/3.0; slider->setRange(0, 100); @@ -31,9 +31,9 @@ K9Mplayer::K9Mplayer(TQObject *parent,const char *name,const TQStringList args) bPlay->setPixmap(SmallIcon("player_play")); bStop->setPixmap(SmallIcon("player_stop")); bSwitchAudio->setPixmap(SmallIcon("cycle")); - connect(m_process,TQT_SIGNAL(receivedStdout( KProcess*, char*, int )),this,TQT_SLOT(receivedStdout( KProcess*, char*, int ))); + connect(m_process,TQT_SIGNAL(receivedStdout( TDEProcess*, char*, int )),this,TQT_SLOT(receivedStdout( TDEProcess*, char*, int ))); m_timer=new TQTimer(this); - connect(m_process,TQT_SIGNAL(wroteStdin( KProcess* )),this,TQT_SLOT(wroteStdin( KProcess* ))); + connect(m_process,TQT_SIGNAL(wroteStdin( TDEProcess* )),this,TQT_SLOT(wroteStdin( TDEProcess* ))); connect(m_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(timeout())); m_container=new TQWidget(Label); } @@ -55,7 +55,7 @@ void K9Mplayer::resizeEvent ( TQResizeEvent * _resizeEvent) { } -void K9Mplayer::wroteStdin( KProcess *_process) { +void K9Mplayer::wroteStdin( TDEProcess *_process) { m_canwrite = TRUE; } @@ -93,7 +93,7 @@ void K9Mplayer::setTitle( const TQString & _numTitle,const TQString &_numChapter *m_process << "-chapter" << _numChapter; *m_process << TQString("dvd://%1").arg(_numTitle); - if (!m_process->start( KProcess::NotifyOnExit,KProcess::All)) { + if (!m_process->start( TDEProcess::NotifyOnExit,TDEProcess::All)) { KMessageBox::error (tqApp->mainWidget(),i18n("Unable to run %1").arg("mplayer") , i18n("Preview")); } m_canwrite=TRUE; @@ -107,7 +107,7 @@ void K9Mplayer::setTitle( const TQString & _numTitle,const TQString &_numChapter /*$SPECIALIZATION$*/ -void K9Mplayer::receivedStdout (KProcess *proc, char *buffer, int buflen) { +void K9Mplayer::receivedStdout (TDEProcess *proc, char *buffer, int buflen) { TQString buf = TQString::fromLatin1(buffer, buflen); sscanf(buf.latin1(),"ANS_PERCENT_POSITION=%d",&m_position); if (!m_seeking && m_position>0) { diff --git a/k9Mplayer/k9mplayer.h b/k9Mplayer/k9mplayer.h index 20775ce..9f7a4e8 100644 --- a/k9Mplayer/k9mplayer.h +++ b/k9Mplayer/k9mplayer.h @@ -8,7 +8,7 @@ class k9DVD; class k9DVDTitle; -class KProcess; +class TDEProcess; class TQTimer; class TQResizeEvent; @@ -17,7 +17,7 @@ class K9Mplayer : public MPlayer Q_OBJECT private: - KProcess *m_process; + TDEProcess *m_process; bool m_seeking,m_initVol; int m_title; k9DVDTitle *m_dvdTitle; @@ -38,8 +38,8 @@ public: private slots: void slotLengthChanged(); void slotNewPosition(int _pos,const TQTime & _time); - void receivedStdout (KProcess *proc, char *buffer, int buflen); - void wroteStdin(KProcess *_process); + void receivedStdout (TDEProcess *proc, char *buffer, int buflen); + void wroteStdin(TDEProcess *_process); void timeout(); public slots: /*$PUBLIC_SLOTS$*/ |