summaryrefslogtreecommitdiffstats
path: root/k9Mplayer/k9mplayer.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-24 13:19:42 -0600
committerTimothy Pearson <[email protected]>2013-01-24 13:19:42 -0600
commit6ee2a113c808e9fe2fa25ae6dc2ca7d6ca366015 (patch)
tree22f7e5a7a405a6d3631ab8b7ca21df6161b6f7d8 /k9Mplayer/k9mplayer.cpp
parent7ab25fa204dd2b42267fcd509e4a2a91627641e5 (diff)
downloadk9copy-6ee2a113c808e9fe2fa25ae6dc2ca7d6ca366015.tar.gz
k9copy-6ee2a113c808e9fe2fa25ae6dc2ca7d6ca366015.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'k9Mplayer/k9mplayer.cpp')
-rw-r--r--k9Mplayer/k9mplayer.cpp12
1 files changed, 6 insertions, 6 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) {