summaryrefslogtreecommitdiffstats
path: root/src/part/xineEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/part/xineEngine.cpp')
-rw-r--r--src/part/xineEngine.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/part/xineEngine.cpp b/src/part/xineEngine.cpp
index 2365f83..149ad1f 100644
--- a/src/part/xineEngine.cpp
+++ b/src/part/xineEngine.cpp
@@ -7,9 +7,9 @@
#include <kglobalsettings.h>
#include <klocale.h>
#include "mxcl.library.h"
-#include <qapplication.h> //::sendEvent()
-#include <qdatetime.h> //::play()
-#include <qdir.h> //QDir::homeDir()
+#include <ntqapplication.h> //::sendEvent()
+#include <ntqdatetime.h> //::play()
+#include <ntqdir.h> //TQDir::homeDir()
#include <xine.h>
#include "videoWindow.h"
@@ -28,7 +28,7 @@ VideoWindow::init()
return false;
debug() << "xine_config_load()\n";
- xine_config_load( m_xine, QFile::encodeName( QDir::homeDirPath() + "/.xine/config" ) );
+ xine_config_load( m_xine, TQFile::encodeName( TQDir::homeDirPath() + "/.xine/config" ) );
debug() << "xine_init()\n";
xine_init( m_xine );
@@ -65,8 +65,8 @@ VideoWindow::init()
xine_cfg_entry_t config;
if( xine_config_lookup_entry( m_xine, "misc.save_dir", &config ) ) {
- const QCString dir = KGlobalSettings::desktopPath().local8Bit();
- config.str_value = qstrdup( dir );
+ const TQCString dir = KGlobalSettings::desktopPath().local8Bit();
+ config.str_value = tqstrdup( dir );
xine_config_update_entry( m_xine, &config );
}
}
@@ -87,14 +87,14 @@ VideoWindow::play( KURL url )
if( url.protocol() == "http" ) {
/// automatically save http streams to Desktop folder
- const QString fileName = url.filename();
+ const TQString fileName = url.filename();
- QString
+ TQString
u = url.url();
u += "#save:";
u += url.host();
u += " [";
- u += QDate::currentDate().toString();
+ u += TQDate::currentDate().toString();
u += ']';
u += fileName.mid( fileName.findRev( '.' ) + 1 ).lower();
@@ -151,7 +151,7 @@ VideoWindow::position()
void
VideoWindow::showErrorMessage()
{
- const QString filename = m_url.fileName();
+ const TQString filename = m_url.fileName();
debug() << "xine_get_error()\n";
@@ -180,7 +180,7 @@ VideoWindow::showErrorMessage()
}
void
-VideoWindow::customEvent( QCustomEvent *e )
+VideoWindow::customEvent( TQCustomEvent *e )
{
switch( e->type() - 2000 ) {
case XINE_EVENT_UI_PLAYBACK_FINISHED:
@@ -188,7 +188,7 @@ VideoWindow::customEvent( QCustomEvent *e )
break;
case 1000:
- #define message static_cast<QString*>(e->data())
+ #define message static_cast<TQString*>(e->data())
emit statusMessage( *message );
delete message;
break;
@@ -238,29 +238,29 @@ VideoWindow::xineEventListener( void *p, const xine_event_t* xineEvent )
case XINE_EVENT_FRAME_FORMAT_CHANGE:
case XINE_EVENT_UI_CHANNELS_CHANGED:
{
- QCustomEvent *ce;
- ce = new QCustomEvent( 2000 + xineEvent->type );
+ TQCustomEvent *ce;
+ ce = new TQCustomEvent( 2000 + xineEvent->type );
ce->setData( const_cast<xine_event_t*>(xineEvent) );
- QApplication::postEvent( engine, ce );
+ TQApplication::postEvent( engine, ce );
break;
}
case XINE_EVENT_UI_SET_TITLE:
- QApplication::postEvent( engine, new QCustomEvent(
- QEvent::Type(3002),
- new QString( QString::fromUtf8( static_cast<xine_ui_data_t*>(xineEvent->data)->str ) ) ) );
+ TQApplication::postEvent( engine, new TQCustomEvent(
+ TQEvent::Type(3002),
+ new TQString( TQString::fromUtf8( static_cast<xine_ui_data_t*>(xineEvent->data)->str ) ) ) );
break;
case XINE_EVENT_PROGRESS:
{
xine_progress_data_t* pd = (xine_progress_data_t*)xineEvent->data;
- QString
+ TQString
msg = "%1 %2%";
- msg = msg.arg( QString::fromUtf8( pd->description ) )
+ msg = msg.arg( TQString::fromUtf8( pd->description ) )
.arg( KGlobal::locale()->formatNumber( pd->percent, 0 ) );
- QApplication::postEvent( engine, new QCustomEvent( QEvent::Type(3000), new QString( msg ) ) );
+ TQApplication::postEvent( engine, new TQCustomEvent( TQEvent::Type(3000), new TQString( msg ) ) );
break;
}
case XINE_EVENT_UI_MESSAGE:
@@ -268,7 +268,7 @@ VideoWindow::xineEventListener( void *p, const xine_event_t* xineEvent )
debug() << "Message received from xine\n";
xine_ui_message_data_t *data = (xine_ui_message_data_t *)xineEvent->data;
- QString message;
+ TQString message;
switch( data->type ) {
case XINE_MSG_NO_ERROR:
@@ -313,7 +313,7 @@ VideoWindow::xineEventListener( void *p, const xine_event_t* xineEvent )
if(data->explanation)
{
message += "<b>";
- message += QString::fromUtf8( (char*) data + data->explanation );
+ message += TQString::fromUtf8( (char*) data + data->explanation );
message += "</b>";
}
else break; //if no explanation then why bother!
@@ -328,12 +328,12 @@ VideoWindow::xineEventListener( void *p, const xine_event_t* xineEvent )
if(data->parameters)
{
message += "xine says: <i>";
- message += QString::fromUtf8( (char*) data + data->parameters);
+ message += TQString::fromUtf8( (char*) data + data->parameters);
message += "</i>";
}
else message += i18n("Sorry, no additional information is available.");
- QApplication::postEvent( engine, new QCustomEvent(QEvent::Type(3001), new QString(message)) );
+ TQApplication::postEvent( engine, new TQCustomEvent(TQEvent::Type(3001), new TQString(message)) );
}
} //case