@ -195,7 +195,7 @@ void Process::setState (State newstate) {
}
}
K DE_NO_EXPORT void Process : : rescheduledStateChanged ( ) {
T DE_NO_EXPORT void Process : : rescheduledStateChanged ( ) {
State old_state = m_old_state ;
m_old_state = m_state ;
m_source - > stateChange ( this , old_state , m_state ) ;
@ -273,7 +273,7 @@ KDE_NO_CDTOR_EXPORT MPlayerBase::MPlayerBase (TQObject * parent, Settings * sett
KDE_NO_CDTOR_EXPORT MPlayerBase : : ~ MPlayerBase ( ) {
}
K DE_NO_EXPORT void MPlayerBase : : initProcess ( Viewer * viewer ) {
T DE_NO_EXPORT void MPlayerBase : : initProcess ( Viewer * viewer ) {
Process : : initProcess ( viewer ) ;
const KURL & url ( m_source - > url ( ) ) ;
if ( ! url . isEmpty ( ) ) {
@ -287,7 +287,7 @@ KDE_NO_EXPORT void MPlayerBase::initProcess (Viewer * viewer) {
this , TQ_SLOT ( processStopped ( TDEProcess * ) ) ) ;
}
K DE_NO_EXPORT bool MPlayerBase : : sendCommand ( const TQString & cmd ) {
T DE_NO_EXPORT bool MPlayerBase : : sendCommand ( const TQString & cmd ) {
if ( playing ( ) & & m_use_slave ) {
commands . push_front ( cmd + ' \n ' ) ;
fprintf ( stderr , " eval %s " , commands . last ( ) . latin1 ( ) ) ;
@ -299,14 +299,14 @@ KDE_NO_EXPORT bool MPlayerBase::sendCommand (const TQString & cmd) {
return false ;
}
K DE_NO_EXPORT bool MPlayerBase : : stop ( ) {
T DE_NO_EXPORT bool MPlayerBase : : stop ( ) {
terminateJobs ( ) ;
if ( ! m_source | | ! m_process | | ! m_process - > isRunning ( ) )
return true ;
return true ;
}
K DE_NO_EXPORT bool MPlayerBase : : quit ( ) {
T DE_NO_EXPORT bool MPlayerBase : : quit ( ) {
if ( playing ( ) ) {
stop ( ) ;
disconnect ( m_process , TQ_SIGNAL ( processExited ( TDEProcess * ) ) ,
@ -333,7 +333,7 @@ KDE_NO_EXPORT bool MPlayerBase::quit () {
return Process : : quit ( ) ;
}
K DE_NO_EXPORT void MPlayerBase : : dataWritten ( TDEProcess * ) {
T DE_NO_EXPORT void MPlayerBase : : dataWritten ( TDEProcess * ) {
if ( ! commands . size ( ) ) return ;
kdDebug ( ) < < " eval done " < < commands . last ( ) < < endl ;
commands . pop_back ( ) ;
@ -342,7 +342,7 @@ KDE_NO_EXPORT void MPlayerBase::dataWritten (TDEProcess *) {
commands . last ( ) . length ( ) ) ;
}
K DE_NO_EXPORT void MPlayerBase : : processStopped ( TDEProcess * ) {
T DE_NO_EXPORT void MPlayerBase : : processStopped ( TDEProcess * ) {
kdDebug ( ) < < " process stopped " < < endl ;
commands . clear ( ) ;
setState ( Ready ) ;
@ -370,24 +370,24 @@ KDE_NO_CDTOR_EXPORT MPlayer::~MPlayer () {
delete m_configpage ;
}
K DE_NO_EXPORT void MPlayer : : init ( ) {
T DE_NO_EXPORT void MPlayer : : init ( ) {
}
TQString MPlayer : : menuName ( ) const {
return i18n ( " &MPlayer " ) ;
}
K DE_NO_EXPORT WId MPlayer : : widget ( ) {
T DE_NO_EXPORT WId MPlayer : : widget ( ) {
return viewer ( ) - > embeddedWinId ( ) ;
}
K DE_NO_EXPORT bool MPlayer : : ready ( Viewer * viewer ) {
T DE_NO_EXPORT bool MPlayer : : ready ( Viewer * viewer ) {
Process : : ready ( viewer ) ;
viewer - > changeProtocol ( QXEmbed : : XPLAIN ) ;
return false ;
}
K DE_NO_EXPORT bool MPlayer : : deMediafiedPlay ( ) {
T DE_NO_EXPORT bool MPlayer : : deMediafiedPlay ( ) {
if ( playing ( ) )
return sendCommand ( TQString ( " gui_play " ) ) ;
if ( ! m_needs_restarted & & playing ( ) )
@ -448,7 +448,7 @@ KDE_NO_EXPORT bool MPlayer::deMediafiedPlay () {
return run ( args . ascii ( ) , m_source - > pipeCmd ( ) . ascii ( ) ) ;
}
K DE_NO_EXPORT bool MPlayer : : stop ( ) {
T DE_NO_EXPORT bool MPlayer : : stop ( ) {
terminateJobs ( ) ;
if ( ! m_source | | ! m_process | | ! m_process - > isRunning ( ) ) return true ;
if ( m_use_slave )
@ -456,11 +456,11 @@ KDE_NO_EXPORT bool MPlayer::stop () {
return MPlayerBase : : stop ( ) ;
}
K DE_NO_EXPORT bool MPlayer : : pause ( ) {
T DE_NO_EXPORT bool MPlayer : : pause ( ) {
return sendCommand ( TQString ( " pause " ) ) ;
}
K DE_NO_EXPORT bool MPlayer : : seek ( int pos , bool absolute ) {
T DE_NO_EXPORT bool MPlayer : : seek ( int pos , bool absolute ) {
if ( ! m_source | | ! m_source - > hasLength ( ) | |
( absolute & & m_source - > position ( ) = = pos ) )
return false ;
@ -487,7 +487,7 @@ KDE_NO_EXPORT bool MPlayer::seek (int pos, bool absolute) {
return sendCommand ( cmd ) ;
}
K DE_NO_EXPORT bool MPlayer : : volume ( int incdec , bool absolute ) {
T DE_NO_EXPORT bool MPlayer : : volume ( int incdec , bool absolute ) {
if ( absolute )
incdec - = old_volume ;
if ( incdec = = 0 )
@ -496,25 +496,25 @@ KDE_NO_EXPORT bool MPlayer::volume (int incdec, bool absolute) {
return sendCommand ( TQString ( " volume " ) + TQString : : number ( incdec ) ) ;
}
K DE_NO_EXPORT bool MPlayer : : saturation ( int val , bool absolute ) {
T DE_NO_EXPORT bool MPlayer : : saturation ( int val , bool absolute ) {
TQString cmd ;
cmd . sprintf ( " saturation %d %d " , val , absolute ? 1 : 0 ) ;
return sendCommand ( cmd ) ;
}
K DE_NO_EXPORT bool MPlayer : : hue ( int val , bool absolute ) {
T DE_NO_EXPORT bool MPlayer : : hue ( int val , bool absolute ) {
TQString cmd ;
cmd . sprintf ( " hue %d %d " , val , absolute ? 1 : 0 ) ;
return sendCommand ( cmd ) ;
}
K DE_NO_EXPORT bool MPlayer : : contrast ( int val , bool /*absolute*/ ) {
T DE_NO_EXPORT bool MPlayer : : contrast ( int val , bool /*absolute*/ ) {
TQString cmd ;
cmd . sprintf ( " contrast %d 1 " , val ) ;
return sendCommand ( cmd ) ;
}
K DE_NO_EXPORT bool MPlayer : : brightness ( int val , bool /*absolute*/ ) {
T DE_NO_EXPORT bool MPlayer : : brightness ( int val , bool /*absolute*/ ) {
TQString cmd ;
cmd . sprintf ( " brightness %d 1 " , val ) ;
return sendCommand ( cmd ) ;
@ -629,7 +629,7 @@ bool MPlayer::run (const char * args, const char * pipe) {
return false ;
}
K DE_NO_EXPORT bool MPlayer : : grabPicture ( const KURL & url , int pos ) {
T DE_NO_EXPORT bool MPlayer : : grabPicture ( const KURL & url , int pos ) {
stop ( ) ;
initProcess ( viewer ( ) ) ;
TQString outdir = locateLocal ( " data " , " kmplayer/ " ) ;
@ -652,7 +652,7 @@ KDE_NO_EXPORT bool MPlayer::grabPicture (const KURL & url, int pos) {
return m_process - > isRunning ( ) ;
}
K DE_NO_EXPORT void MPlayer : : processOutput ( TDEProcess * , char * str , int slen ) {
T DE_NO_EXPORT void MPlayer : : processOutput ( TDEProcess * , char * str , int slen ) {
if ( ! viewer ( ) | | slen < = 0 ) return ;
View * v = viewer ( ) - > view ( ) ;
@ -809,7 +809,7 @@ KDE_NO_EXPORT void MPlayer::processOutput (TDEProcess *, char * str, int slen) {
} while ( slen > 0 ) ;
}
K DE_NO_EXPORT void MPlayer : : processStopped ( TDEProcess * p ) {
T DE_NO_EXPORT void MPlayer : : processStopped ( TDEProcess * p ) {
if ( p & & ! m_grabfile . isEmpty ( ) ) {
emit grabReady ( m_grabfile ) ;
m_grabfile . truncate ( 0 ) ;
@ -926,7 +926,7 @@ KDE_NO_CDTOR_EXPORT MPlayerPreferencesPage::MPlayerPreferencesPage (MPlayer * p)
: m_process ( p ) , m_configframe ( 0L ) {
}
K DE_NO_EXPORT void MPlayerPreferencesPage : : write ( TDEConfig * config ) {
T DE_NO_EXPORT void MPlayerPreferencesPage : : write ( TDEConfig * config ) {
config - > setGroup ( strMPlayerPatternGroup ) ;
for ( int i = 0 ; i < int ( pat_last ) ; i + + )
config - > writeEntry
@ -938,7 +938,7 @@ KDE_NO_EXPORT void MPlayerPreferencesPage::write (TDEConfig * config) {
config - > writeEntry ( strAlwaysBuildIndex , alwaysbuildindex ) ;
}
K DE_NO_EXPORT void MPlayerPreferencesPage : : read ( TDEConfig * config ) {
T DE_NO_EXPORT void MPlayerPreferencesPage : : read ( TDEConfig * config ) {
config - > setGroup ( strMPlayerPatternGroup ) ;
for ( int i = 0 ; i < int ( pat_last ) ; i + + )
m_patterns [ i ] . setPattern ( config - > readEntry
@ -950,7 +950,7 @@ KDE_NO_EXPORT void MPlayerPreferencesPage::read (TDEConfig * config) {
alwaysbuildindex = config - > readBoolEntry ( strAlwaysBuildIndex , false ) ;
}
K DE_NO_EXPORT void MPlayerPreferencesPage : : sync ( bool fromUI ) {
T DE_NO_EXPORT void MPlayerPreferencesPage : : sync ( bool fromUI ) {
TQTable * table = m_configframe - > table ;
TQSpinBox * cacheSize = static_cast < TQSpinBox * > ( table - > cellWidget ( 2 , 1 ) ) ;
TQCheckBox * buildIndex = static_cast < TQCheckBox * > ( table - > cellWidget ( 3 , 1 ) ) ;
@ -972,13 +972,13 @@ KDE_NO_EXPORT void MPlayerPreferencesPage::sync (bool fromUI) {
}
}
K DE_NO_EXPORT void MPlayerPreferencesPage : : prefLocation ( TQString & item , TQString & icon , TQString & tab ) {
T DE_NO_EXPORT void MPlayerPreferencesPage : : prefLocation ( TQString & item , TQString & icon , TQString & tab ) {
item = i18n ( " General Options " ) ;
icon = TQString ( " kmplayer " ) ;
tab = i18n ( " MPlayer " ) ;
}
K DE_NO_EXPORT TQFrame * MPlayerPreferencesPage : : prefPage ( TQWidget * parent ) {
T DE_NO_EXPORT TQFrame * MPlayerPreferencesPage : : prefPage ( TQWidget * parent ) {
m_configframe = new MPlayerPreferencesFrame ( parent ) ;
return m_configframe ;
}
@ -997,7 +997,7 @@ KDE_NO_CDTOR_EXPORT MEncoder::MEncoder (TQObject * parent, Settings * settings)
KDE_NO_CDTOR_EXPORT MEncoder : : ~ MEncoder ( ) {
}
K DE_NO_EXPORT void MEncoder : : init ( ) {
T DE_NO_EXPORT void MEncoder : : init ( ) {
}
bool MEncoder : : deMediafiedPlay ( ) {
@ -1038,7 +1038,7 @@ bool MEncoder::deMediafiedPlay () {
return success ;
}
K DE_NO_EXPORT bool MEncoder : : stop ( ) {
T DE_NO_EXPORT bool MEncoder : : stop ( ) {
terminateJobs ( ) ;
if ( ! m_source | | ! m_process | | ! m_process - > isRunning ( ) ) return true ;
kdDebug ( ) < < " MEncoder::stop () " < < endl ;
@ -1062,7 +1062,7 @@ MPlayerDumpstream::MPlayerDumpstream (TQObject * parent, Settings * settings)
KDE_NO_CDTOR_EXPORT MPlayerDumpstream : : ~ MPlayerDumpstream ( ) {
}
K DE_NO_EXPORT void MPlayerDumpstream : : init ( ) {
T DE_NO_EXPORT void MPlayerDumpstream : : init ( ) {
}
bool MPlayerDumpstream : : deMediafiedPlay ( ) {
@ -1100,7 +1100,7 @@ bool MPlayerDumpstream::deMediafiedPlay () {
return success ;
}
K DE_NO_EXPORT bool MPlayerDumpstream : : stop ( ) {
T DE_NO_EXPORT bool MPlayerDumpstream : : stop ( ) {
terminateJobs ( ) ;
if ( ! m_source | | ! m_process | | ! m_process - > isRunning ( ) ) return true ;
kdDebug ( ) < < " MPlayerDumpstream::stop () " < < endl ;
@ -1435,12 +1435,12 @@ void CallbackProcess::initProcess (Viewer * viewer) {
this , TQ_SLOT ( processOutput ( TDEProcess * , char * , int ) ) ) ;
}
K DE_NO_EXPORT void CallbackProcess : : processOutput ( TDEProcess * , char * str , int slen ) {
T DE_NO_EXPORT void CallbackProcess : : processOutput ( TDEProcess * , char * str , int slen ) {
if ( viewer ( ) & & slen > 0 )
viewer ( ) - > view ( ) - > addText ( TQString : : fromLocal8Bit ( str , slen ) ) ;
}
K DE_NO_EXPORT void CallbackProcess : : processStopped ( TDEProcess * ) {
T DE_NO_EXPORT void CallbackProcess : : processStopped ( TDEProcess * ) {
if ( m_source )
( ( PlayListNotify * ) m_source ) - > setInfoMessage ( TQString ( ) ) ;
delete m_backend ;
@ -1584,18 +1584,18 @@ KDE_NO_CDTOR_EXPORT XMLPreferencesPage::XMLPreferencesPage (CallbackProcess * p)
KDE_NO_CDTOR_EXPORT XMLPreferencesPage : : ~ XMLPreferencesPage ( ) {
}
K DE_NO_EXPORT void XMLPreferencesFrame : : showEvent ( TQShowEvent * ) {
T DE_NO_EXPORT void XMLPreferencesFrame : : showEvent ( TQShowEvent * ) {
if ( ! m_process - > haveConfig ( ) )
m_process - > getConfigData ( ) ;
}
K DE_NO_EXPORT void XMLPreferencesPage : : write ( TDEConfig * ) {
T DE_NO_EXPORT void XMLPreferencesPage : : write ( TDEConfig * ) {
}
K DE_NO_EXPORT void XMLPreferencesPage : : read ( TDEConfig * ) {
T DE_NO_EXPORT void XMLPreferencesPage : : read ( TDEConfig * ) {
}
K DE_NO_EXPORT void XMLPreferencesPage : : sync ( bool fromUI ) {
T DE_NO_EXPORT void XMLPreferencesPage : : sync ( bool fromUI ) {
if ( ! m_configframe ) return ;
TQTable * table = m_configframe - > table ;
int row = 0 ;
@ -1663,13 +1663,13 @@ KDE_NO_EXPORT void XMLPreferencesPage::sync (bool fromUI) {
}
}
K DE_NO_EXPORT void XMLPreferencesPage : : prefLocation ( TQString & item , TQString & icon , TQString & tab ) {
T DE_NO_EXPORT void XMLPreferencesPage : : prefLocation ( TQString & item , TQString & icon , TQString & tab ) {
item = i18n ( " General Options " ) ;
icon = TQString ( " kmplayer " ) ;
tab = m_process - > menuName ( ) ;
}
K DE_NO_EXPORT TQFrame * XMLPreferencesPage : : prefPage ( TQWidget * parent ) {
T DE_NO_EXPORT TQFrame * XMLPreferencesPage : : prefPage ( TQWidget * parent ) {
m_configframe = new XMLPreferencesFrame ( parent , m_process ) ;
return m_configframe ;
}
@ -1766,7 +1766,7 @@ KDE_NO_CDTOR_EXPORT GStreamer::GStreamer (TQObject * parent, Settings * settings
KDE_NO_CDTOR_EXPORT GStreamer : : ~ GStreamer ( ) { }
K DE_NO_EXPORT bool GStreamer : : ready ( Viewer * viewer ) {
T DE_NO_EXPORT bool GStreamer : : ready ( Viewer * viewer ) {
initProcess ( viewer ) ;
viewer - > changeProtocol ( QXEmbed : : XPLAIN ) ;
m_request_seek = - 1 ;
@ -1816,7 +1816,7 @@ FFMpeg::FFMpeg (TQObject * parent, Settings * settings)
KDE_NO_CDTOR_EXPORT FFMpeg : : ~ FFMpeg ( ) {
}
K DE_NO_EXPORT void FFMpeg : : init ( ) {
T DE_NO_EXPORT void FFMpeg : : init ( ) {
}
bool FFMpeg : : deMediafiedPlay ( ) {
@ -1867,7 +1867,7 @@ bool FFMpeg::deMediafiedPlay () {
return m_process - > isRunning ( ) ;
}
K DE_NO_EXPORT bool FFMpeg : : stop ( ) {
T DE_NO_EXPORT bool FFMpeg : : stop ( ) {
terminateJobs ( ) ;
if ( ! playing ( ) ) return true ;
kdDebug ( ) < < " FFMpeg::stop " < < endl ;
@ -1875,7 +1875,7 @@ KDE_NO_EXPORT bool FFMpeg::stop () {
return true ;
}
K DE_NO_EXPORT bool FFMpeg : : quit ( ) {
T DE_NO_EXPORT bool FFMpeg : : quit ( ) {
stop ( ) ;
if ( ! playing ( ) ) return true ;
TQTime t ;
@ -1886,7 +1886,7 @@ KDE_NO_EXPORT bool FFMpeg::quit () {
return Process : : quit ( ) ;
}
K DE_NO_EXPORT void FFMpeg : : processStopped ( TDEProcess * ) {
T DE_NO_EXPORT void FFMpeg : : processStopped ( TDEProcess * ) {
setState ( NotRunning ) ;
}
@ -2014,7 +2014,7 @@ KDE_NO_CDTOR_EXPORT NpStream::~NpStream () {
close ( ) ;
}
K DE_NO_EXPORT void NpStream : : open ( ) {
T DE_NO_EXPORT void NpStream : : open ( ) {
kdDebug ( ) < < " NpStream " < < stream_id < < " open " < < url . url ( ) < < endl ;
if ( url . url ( ) . startsWith ( " javascript: " ) ) {
NpPlayer * npp = static_cast < NpPlayer * > ( parent ( ) ) ;
@ -2046,7 +2046,7 @@ KDE_NO_EXPORT void NpStream::open () {
}
}
K DE_NO_EXPORT void NpStream : : close ( ) {
T DE_NO_EXPORT void NpStream : : close ( ) {
if ( job ) {
job - > kill ( ) ; // quiet, no result signal
job = 0L ;
@ -2055,14 +2055,14 @@ KDE_NO_EXPORT void NpStream::close () {
}
}
K DE_NO_EXPORT void NpStream : : slotResult ( TDEIO : : Job * jb ) {
T DE_NO_EXPORT void NpStream : : slotResult ( TDEIO : : Job * jb ) {
kdDebug ( ) < < " slotResult " < < bytes < < " err: " < < jb - > error ( ) < < endl ;
finish_reason = jb - > error ( ) ? BecauseError : BecauseDone ;
job = 0L ; // signal TDEIO::Job::result deletes itself
emit stateChanged ( ) ;
}
K DE_NO_EXPORT void NpStream : : slotData ( TDEIO : : Job * , const TQByteArray & qb ) {
T DE_NO_EXPORT void NpStream : : slotData ( TDEIO : : Job * , const TQByteArray & qb ) {
pending_buf = qb ; // we suspend job, so qb should be valid until resume
if ( qb . size ( ) ) {
job - > suspend ( ) ;
@ -2071,7 +2071,7 @@ KDE_NO_EXPORT void NpStream::slotData (TDEIO::Job*, const TQByteArray& qb) {
}
}
K DE_NO_EXPORT void NpStream : : redirection ( TDEIO : : Job * , const KURL & u ) {
T DE_NO_EXPORT void NpStream : : redirection ( TDEIO : : Job * , const KURL & u ) {
url = u ;
emit redirected ( stream_id , url ) ;
}
@ -2111,10 +2111,10 @@ KDE_NO_CDTOR_EXPORT NpPlayer::~NpPlayer () {
}
}
K DE_NO_EXPORT void NpPlayer : : init ( ) {
T DE_NO_EXPORT void NpPlayer : : init ( ) {
}
K DE_NO_EXPORT void NpPlayer : : initProcess ( Viewer * viewer ) {
T DE_NO_EXPORT void NpPlayer : : initProcess ( Viewer * viewer ) {
Process : : initProcess ( viewer ) ;
connect ( m_process , TQ_SIGNAL ( processExited ( TDEProcess * ) ) ,
this , TQ_SLOT ( processStopped ( TDEProcess * ) ) ) ;
@ -2165,7 +2165,7 @@ KDE_NO_EXPORT void NpPlayer::initProcess (Viewer * viewer) {
}
}
K DE_NO_EXPORT bool NpPlayer : : deMediafiedPlay ( ) {
T DE_NO_EXPORT bool NpPlayer : : deMediafiedPlay ( ) {
kdDebug ( ) < < " NpPlayer::play ' " < < m_url < < " ' " < < endl ;
// if we change from XPLAIN to XEMBED, the DestroyNotify may come later
viewer ( ) - > changeProtocol ( QXEmbed : : XEMBED ) ;
@ -2249,7 +2249,7 @@ KDE_NO_EXPORT bool NpPlayer::deMediafiedPlay () {
return false ;
}
K DE_NO_EXPORT bool NpPlayer : : ready ( Viewer * viewer ) {
T DE_NO_EXPORT bool NpPlayer : : ready ( Viewer * viewer ) {
if ( playing ( ) )
return true ; // wait for callback
initProcess ( viewer ) ;
@ -2267,13 +2267,13 @@ KDE_NO_EXPORT bool NpPlayer::ready (Viewer * viewer) {
return m_process - > isRunning ( ) ;
}
K DE_NO_EXPORT void NpPlayer : : setStarted ( const TQString & srv ) {
T DE_NO_EXPORT void NpPlayer : : setStarted ( const TQString & srv ) {
remote_service = srv ;
kdDebug ( ) < < " NpPlayer::setStarted " < < srv < < endl ;
setState ( Ready ) ;
}
K DE_NO_EXPORT TQString NpPlayer : : evaluateScript ( const TQString & script ) {
T DE_NO_EXPORT TQString NpPlayer : : evaluateScript ( const TQString & script ) {
TQString result ;
emit evaluate ( script , result ) ;
//kdDebug () << "evaluateScript " << script << " => " << result << endl;
@ -2295,7 +2295,7 @@ static int getStreamId (const TQString &path) {
return sid ;
}
K DE_NO_EXPORT
T DE_NO_EXPORT
void NpPlayer : : requestStream ( const TQString & path , const TQString & url , const TQString & target ) {
KURL uri ( m_base_url . isEmpty ( ) ? m_url : m_base_url , url ) ;
kdDebug ( ) < < " NpPlayer::request " < < path < < " ' " < < uri < < " ' " < < endl ;
@ -2327,7 +2327,7 @@ void NpPlayer::requestStream (const TQString &path, const TQString & url, const
}
}
K DE_NO_EXPORT void NpPlayer : : destroyStream ( const TQString & s ) {
T DE_NO_EXPORT void NpPlayer : : destroyStream ( const TQString & s ) {
int sid = getStreamId ( s ) ;
if ( sid > = 0 & & streams . contains ( ( TQ_UINT32 ) sid ) ) {
NpStream * ns = streams [ ( TQ_UINT32 ) sid ] ;
@ -2339,7 +2339,7 @@ KDE_NO_EXPORT void NpPlayer::destroyStream (const TQString &s) {
}
}
K DE_NO_EXPORT
T DE_NO_EXPORT
void NpPlayer : : sendFinish ( TQ_UINT32 sid , TQ_UINT32 bytes , NpStream : : Reason because ) {
if ( playing ( ) & & dbus_static - > dbus_connnection ) {
TQ_UINT32 reason = ( int ) because ;
@ -2360,7 +2360,7 @@ void NpPlayer::sendFinish (TQ_UINT32 sid, TQ_UINT32 bytes, NpStream::Reason beca
}
}
K DE_NO_EXPORT void NpPlayer : : terminateJobs ( ) {
T DE_NO_EXPORT void NpPlayer : : terminateJobs ( ) {
Process : : terminateJobs ( ) ;
const StreamMap : : iterator e = streams . end ( ) ;
for ( StreamMap : : iterator i = streams . begin ( ) ; i ! = e ; + + i )
@ -2368,7 +2368,7 @@ KDE_NO_EXPORT void NpPlayer::terminateJobs () {
streams . clear ( ) ;
}
K DE_NO_EXPORT bool NpPlayer : : stop ( ) {
T DE_NO_EXPORT bool NpPlayer : : stop ( ) {
terminateJobs ( ) ;
if ( ! playing ( ) ) return true ;
kdDebug ( ) < < " NpPlayer::stop " < < endl ;
@ -2386,7 +2386,7 @@ KDE_NO_EXPORT bool NpPlayer::stop () {
return true ;
}
K DE_NO_EXPORT bool NpPlayer : : quit ( ) {
T DE_NO_EXPORT bool NpPlayer : : quit ( ) {
if ( playing ( ) ) {
stop ( ) ;
TQTime t ;
@ -2399,25 +2399,25 @@ KDE_NO_EXPORT bool NpPlayer::quit () {
return true ;
}
K DE_NO_EXPORT void NpPlayer : : processOutput ( TDEProcess * , char * str , int slen ) {
T DE_NO_EXPORT void NpPlayer : : processOutput ( TDEProcess * , char * str , int slen ) {
if ( viewer ( ) & & slen > 0 )
viewer ( ) - > view ( ) - > addText ( TQString : : fromLocal8Bit ( str , slen ) ) ;
}
K DE_NO_EXPORT void NpPlayer : : processStopped ( TDEProcess * ) {
T DE_NO_EXPORT void NpPlayer : : processStopped ( TDEProcess * ) {
terminateJobs ( ) ;
if ( m_source )
( ( PlayListNotify * ) m_source ) - > setInfoMessage ( TQString ( ) ) ;
setState ( NotRunning ) ;
}
K DE_NO_EXPORT void NpPlayer : : streamStateChanged ( ) {
T DE_NO_EXPORT void NpPlayer : : streamStateChanged ( ) {
setState ( Playing ) ; // hmm, this doesn't really fit in current states
if ( ! write_in_progress )
processStreams ( ) ;
}
K DE_NO_EXPORT void NpPlayer : : streamRedirected ( TQ_UINT32 sid , const KURL & u ) {
T DE_NO_EXPORT void NpPlayer : : streamRedirected ( TQ_UINT32 sid , const KURL & u ) {
if ( playing ( ) & & dbus_static - > dbus_connnection ) {
kdDebug ( ) < < " redirected " < < sid < < " to " < < u . url ( ) < < endl ;
char * cu = strdup ( u . url ( ) . local8Bit ( ) . data ( ) ) ;
@ -2436,7 +2436,7 @@ KDE_NO_EXPORT void NpPlayer::streamRedirected (TQ_UINT32 sid, const KURL &u) {
}
}
K DE_NO_EXPORT void NpPlayer : : processStreams ( ) {
T DE_NO_EXPORT void NpPlayer : : processStreams ( ) {
NpStream * stream = 0L ;
TQ_UINT32 stream_id ;
timeval tv = { 0x7fffffff , 0 } ;
@ -2520,13 +2520,13 @@ KDE_NO_EXPORT void NpPlayer::processStreams () {
}
}
K DE_NO_EXPORT void NpPlayer : : wroteStdin ( TDEProcess * ) {
T DE_NO_EXPORT void NpPlayer : : wroteStdin ( TDEProcess * ) {
write_in_progress = false ;
if ( playing ( ) )
processStreams ( ) ;
}
K DE_NO_EXPORT TQString NpPlayer : : menuName ( ) const {
T DE_NO_EXPORT TQString NpPlayer : : menuName ( ) const {
return i18n ( " &Ice Ape " ) ;
}
@ -2547,20 +2547,20 @@ KDE_NO_CDTOR_EXPORT
NpPlayer : : NpPlayer ( TQObject * parent , Settings * settings , const TQString & )
: Process ( parent , settings , " npp " ) { }
KDE_NO_CDTOR_EXPORT NpPlayer : : ~ NpPlayer ( ) { }
K DE_NO_EXPORT void NpPlayer : : init ( ) { }
K DE_NO_EXPORT bool NpPlayer : : deMediafiedPlay ( ) { return false ; }
K DE_NO_EXPORT void NpPlayer : : initProcess ( Viewer * ) { }
K DE_NO_EXPORT TQString NpPlayer : : menuName ( ) const { return TQString ( ) ; }
K DE_NO_EXPORT void NpPlayer : : setStarted ( const TQString & ) { }
K DE_NO_EXPORT bool NpPlayer : : stop ( ) { return false ; }
K DE_NO_EXPORT bool NpPlayer : : quit ( ) { return false ; }
K DE_NO_EXPORT bool NpPlayer : : ready ( Viewer * ) { return false ; }
K DE_NO_EXPORT void NpPlayer : : processOutput ( TDEProcess * , char * , int ) { }
K DE_NO_EXPORT void NpPlayer : : processStopped ( TDEProcess * ) { }
K DE_NO_EXPORT void NpPlayer : : wroteStdin ( TDEProcess * ) { }
K DE_NO_EXPORT void NpPlayer : : streamStateChanged ( ) { }
K DE_NO_EXPORT void NpPlayer : : streamRedirected ( TQ_UINT32 , const KURL & ) { }
K DE_NO_EXPORT void NpPlayer : : terminateJobs ( ) { }
T DE_NO_EXPORT void NpPlayer : : init ( ) { }
T DE_NO_EXPORT bool NpPlayer : : deMediafiedPlay ( ) { return false ; }
T DE_NO_EXPORT void NpPlayer : : initProcess ( Viewer * ) { }
T DE_NO_EXPORT TQString NpPlayer : : menuName ( ) const { return TQString ( ) ; }
T DE_NO_EXPORT void NpPlayer : : setStarted ( const TQString & ) { }
T DE_NO_EXPORT bool NpPlayer : : stop ( ) { return false ; }
T DE_NO_EXPORT bool NpPlayer : : quit ( ) { return false ; }
T DE_NO_EXPORT bool NpPlayer : : ready ( Viewer * ) { return false ; }
T DE_NO_EXPORT void NpPlayer : : processOutput ( TDEProcess * , char * , int ) { }
T DE_NO_EXPORT void NpPlayer : : processStopped ( TDEProcess * ) { }
T DE_NO_EXPORT void NpPlayer : : wroteStdin ( TDEProcess * ) { }
T DE_NO_EXPORT void NpPlayer : : streamStateChanged ( ) { }
T DE_NO_EXPORT void NpPlayer : : streamRedirected ( TQ_UINT32 , const KURL & ) { }
T DE_NO_EXPORT void NpPlayer : : terminateJobs ( ) { }
# endif