summaryrefslogtreecommitdiffstats
path: root/kttsd/players/gstplayer
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:20:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:20:30 +0000
commit28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c (patch)
treea2f011f22aa31d0839c6e2118501b7a6d2f2ae96 /kttsd/players/gstplayer
parent0285229d858c8f03cde7354c679a752598cf4515 (diff)
downloadtdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.tar.gz
tdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1157633 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kttsd/players/gstplayer')
-rw-r--r--kttsd/players/gstplayer/gstreamerplayer.cpp22
-rw-r--r--kttsd/players/gstplayer/gstreamerplayer.h12
2 files changed, 17 insertions, 17 deletions
diff --git a/kttsd/players/gstplayer/gstreamerplayer.cpp b/kttsd/players/gstplayer/gstreamerplayer.cpp
index 64aa1c4..4d56556 100644
--- a/kttsd/players/gstplayer/gstreamerplayer.cpp
+++ b/kttsd/players/gstplayer/gstreamerplayer.cpp
@@ -13,7 +13,7 @@
***************************************************************************/
// Qt includes.
-#include <qfile.h>
+#include <tqfile.h>
// KDE includes.
#include <kapplication.h>
@@ -29,7 +29,7 @@
// public methods
////////////////////////////////////////////////////////////////////////////////
-GStreamerPlayer::GStreamerPlayer(QObject* parent, const char* name, const QStringList& args) :
+GStreamerPlayer::GStreamerPlayer(TQObject* parent, const char* name, const TQStringList& args) :
Player(parent, name, args),
m_initialized(false),
m_pipeline(0),
@@ -49,7 +49,7 @@ GStreamerPlayer::~GStreamerPlayer()
}
//void GStreamerPlayer::play(const FileHandle &file)
-void GStreamerPlayer::startPlay(const QString &file)
+void GStreamerPlayer::startPlay(const TQString &file)
{
if(!file.isNull()) {
stop();
@@ -127,14 +127,14 @@ void GStreamerPlayer::seekPosition(int position)
* @param classname Desired class. Use "Sink/Audio" for sinks.
* @return List of plugin names.
*/
-QStringList GStreamerPlayer::getPluginList( const QCString& classname )
+TQStringList GStreamerPlayer::getPluginList( const TQCString& classname )
{
GList * pool_registries = NULL;
GList* registries = NULL;
GList* plugins = NULL;
GList* features = NULL;
- QString name;
- QStringList results;
+ TQString name;
+ TQStringList results;
if(!m_initialized) {
int argc = kapp->argc();
@@ -189,16 +189,16 @@ bool GStreamerPlayer::requireVersion(uint major, uint minor, uint micro)
}
gst_version(&gmajor, &gminor, &gmicro);
- // kdDebug() << QString("GStreamerPlayer::requireVersion: You have gstreamer %1.%2.%3 installed.").arg(gmajor).arg(gminor).arg(gmicro) << endl;
+ // kdDebug() << TQString("GStreamerPlayer::requireVersion: You have gstreamer %1.%2.%3 installed.").arg(gmajor).arg(gminor).arg(gmicro) << endl;
if (gmajor > major) return true;
if (gminor > minor) return true;
if (gmicro >= micro) return true;
- kdDebug() << QString("GStreamerPlayer::requireVersion: You have gstreamer %1.%2.%3 installed.").arg(gmajor).arg(gminor).arg(gmicro) << endl;
- kdDebug() << QString("GStreamerPlayer::requireVersion: This application requires %1.%2.%3 or greater.").arg(major).arg(minor).arg(micro) << endl;
+ kdDebug() << TQString("GStreamerPlayer::requireVersion: You have gstreamer %1.%2.%3 installed.").arg(gmajor).arg(gminor).arg(gmicro) << endl;
+ kdDebug() << TQString("GStreamerPlayer::requireVersion: This application requires %1.%2.%3 or greater.").arg(major).arg(minor).arg(micro) << endl;
return false;
}
-void GStreamerPlayer::setSinkName(const QString &sinkName) { m_sinkName = sinkName; }
+void GStreamerPlayer::setSinkName(const TQString &sinkName) { m_sinkName = sinkName; }
////////////////////////////////////////////////////////////////////////////////
// private methods
@@ -207,7 +207,7 @@ void GStreamerPlayer::setSinkName(const QString &sinkName) { m_sinkName = sinkNa
void GStreamerPlayer::readConfig()
{
KConfigGroup config(KGlobal::config(), "GStreamerPlayer");
- m_sinkName = config.readEntry("SinkName", QString::null);
+ m_sinkName = config.readEntry("SinkName", TQString::null);
}
void GStreamerPlayer::setupPipeline()
diff --git a/kttsd/players/gstplayer/gstreamerplayer.h b/kttsd/players/gstplayer/gstreamerplayer.h
index 6a7f1d6..13701ab 100644
--- a/kttsd/players/gstplayer/gstreamerplayer.h
+++ b/kttsd/players/gstplayer/gstreamerplayer.h
@@ -22,7 +22,7 @@ extern "C" {
#include <gst/gstversion.h>
}
#include <gst/gst.h>
-#include <qstring.h>
+#include <tqstring.h>
#include "player.h"
class GStreamerPlayer : public Player
@@ -30,11 +30,11 @@ class GStreamerPlayer : public Player
Q_OBJECT
public:
- GStreamerPlayer(QObject* parent = 0, const char* name = 0, const QStringList& args=QStringList());
+ GStreamerPlayer(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList());
virtual ~GStreamerPlayer();
// virtual void play(const FileHandle &file = FileHandle::null());
- virtual void startPlay(const QString& file);
+ virtual void startPlay(const TQString& file);
virtual void setVolume(float volume = 1.0);
virtual float volume() const;
@@ -49,8 +49,8 @@ public:
virtual void seek(int seekTime);
virtual void seekPosition(int position);
- virtual QStringList getPluginList( const QCString& classname );
- virtual void setSinkName(const QString &sinkName);
+ virtual TQStringList getPluginList( const TQCString& classname );
+ virtual void setSinkName(const TQString &sinkName);
virtual bool requireVersion(uint major, uint minor, uint micro);
@@ -62,7 +62,7 @@ private:
void setupPipeline();
long long time(GstQueryType type) const;
- QString m_sinkName;
+ TQString m_sinkName;
// True once gst_init() has been called.
bool m_initialized;