diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:20:30 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:20:30 +0000 |
commit | 28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c (patch) | |
tree | a2f011f22aa31d0839c6e2118501b7a6d2f2ae96 /kttsd/players | |
parent | 0285229d858c8f03cde7354c679a752598cf4515 (diff) | |
download | tdeaccessibility-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')
-rw-r--r-- | kttsd/players/akodeplayer/akodeplayer.cpp | 16 | ||||
-rw-r--r-- | kttsd/players/akodeplayer/akodeplayer.h | 12 | ||||
-rw-r--r-- | kttsd/players/alsaplayer/alsaplayer.cpp | 74 | ||||
-rw-r--r-- | kttsd/players/alsaplayer/alsaplayer.h | 32 | ||||
-rw-r--r-- | kttsd/players/artsplayer/artsplayer.cpp | 12 | ||||
-rw-r--r-- | kttsd/players/artsplayer/artsplayer.h | 8 | ||||
-rw-r--r-- | kttsd/players/gstplayer/gstreamerplayer.cpp | 22 | ||||
-rw-r--r-- | kttsd/players/gstplayer/gstreamerplayer.h | 12 |
8 files changed, 94 insertions, 94 deletions
diff --git a/kttsd/players/akodeplayer/akodeplayer.cpp b/kttsd/players/akodeplayer/akodeplayer.cpp index de88773..13f6cf3 100644 --- a/kttsd/players/akodeplayer/akodeplayer.cpp +++ b/kttsd/players/akodeplayer/akodeplayer.cpp @@ -16,7 +16,7 @@ #include <kdebug.h> -#include <qfile.h> +#include <tqfile.h> #include "akode/player.h" #include "akode/decoder.h" @@ -29,7 +29,7 @@ using namespace aKode; // public methods //////////////////////////////////////////////////////////////////////////////// -aKodePlayer::aKodePlayer(QObject* parent, const char* name, const QStringList& args) : +aKodePlayer::aKodePlayer(TQObject* parent, const char* name, const TQStringList& args) : Player(parent, name, args), m_player(0) {} @@ -40,7 +40,7 @@ aKodePlayer::~aKodePlayer() } //void aKodePlayer::play(const FileHandle &file) -void aKodePlayer::startPlay(const QString &file) +void aKodePlayer::startPlay(const TQString &file) { kdDebug() << k_funcinfo << endl; @@ -53,7 +53,7 @@ void aKodePlayer::startPlay(const QString &file) return; } - // QString filename = file.absFilePath(); + // TQString filename = file.absFilePath(); kdDebug() << "Opening: " << file << endl; @@ -68,7 +68,7 @@ void aKodePlayer::startPlay(const QString &file) } } - if (m_player->load(QFile::encodeName(file))) + if (m_player->load(TQFile::encodeName(file))) m_player->play(); } @@ -169,11 +169,11 @@ void aKodePlayer::seekPosition(int position) m_player->decoder()->seek((position * m_player->decoder()->length())/1000); } -QStringList aKodePlayer::getPluginList( const QCString& /*classname*/ ) +TQStringList aKodePlayer::getPluginList( const TQCString& /*classname*/ ) { - return QStringList::split("|", "auto|polyp|alsa|jack|oss"); + return TQStringList::split("|", "auto|polyp|alsa|jack|oss"); } -void aKodePlayer::setSinkName(const QString& sinkName) { m_sinkName = sinkName; } +void aKodePlayer::setSinkName(const TQString& sinkName) { m_sinkName = sinkName; } #include "akodeplayer.moc" diff --git a/kttsd/players/akodeplayer/akodeplayer.h b/kttsd/players/akodeplayer/akodeplayer.h index bbfb3ea..c003d13 100644 --- a/kttsd/players/akodeplayer/akodeplayer.h +++ b/kttsd/players/akodeplayer/akodeplayer.h @@ -19,7 +19,7 @@ #include <config.h> #include "kdeexportfix.h" -#include <qstring.h> +#include <tqstring.h> #include "player.h" #include <kdemacros.h> @@ -33,11 +33,11 @@ class KDE_EXPORT aKodePlayer : public Player Q_OBJECT public: - aKodePlayer(QObject* parent = 0, const char* name = 0, const QStringList& args=QStringList()); + aKodePlayer(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList()); virtual ~aKodePlayer(); // 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; @@ -52,8 +52,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); public slots: void pause(); @@ -61,7 +61,7 @@ public slots: private: aKode::Player *m_player; - QString m_sinkName; + TQString m_sinkName; }; #endif diff --git a/kttsd/players/alsaplayer/alsaplayer.cpp b/kttsd/players/alsaplayer/alsaplayer.cpp index d3eabe8..72a242a 100644 --- a/kttsd/players/alsaplayer/alsaplayer.cpp +++ b/kttsd/players/alsaplayer/alsaplayer.cpp @@ -39,9 +39,9 @@ #endif // Qt includes. -#include <qdir.h> -#include <qapplication.h> -#include <qcstring.h> +#include <tqdir.h> +#include <tqapplication.h> +#include <tqcstring.h> // KDE includes. #include <kdebug.h> @@ -55,15 +55,15 @@ #if !defined(__GNUC__) || __GNUC__ >= 3 #define ERR(...) do {\ - QString dbgStr;\ - QString s = dbgStr.sprintf( "%s:%d: ERROR ", __FUNCTION__, __LINE__); \ + TQString dbgStr;\ + TQString s = dbgStr.sprintf( "%s:%d: ERROR ", __FUNCTION__, __LINE__); \ s += dbgStr.sprintf( __VA_ARGS__); \ kdDebug() << timestamp() << "AlsaPlayer::" << s << endl; \ } while (0) #else #define ERR(args...) do {\ - QString dbgStr;\ - QString s = dbgStr.sprintf( "%s:%d: ERROR ", __FUNCTION__, __LINE__); \ + TQString dbgStr;\ + TQString s = dbgStr.sprintf( "%s:%d: ERROR ", __FUNCTION__, __LINE__); \ s += dbgStr.sprintf( ##args ); \ kdDebug() << timestamp() << "AlsaPlayer::" << s << endl; \ } while (0) @@ -72,8 +72,8 @@ #if !defined(__GNUC__) || __GNUC__ >= 3 #define MSG(...) do {\ if (m_debugLevel >= 1) {\ - QString dbgStr; \ - QString s = dbgStr.sprintf( "%s:%d: ", __FUNCTION__, __LINE__); \ + TQString dbgStr; \ + TQString s = dbgStr.sprintf( "%s:%d: ", __FUNCTION__, __LINE__); \ s += dbgStr.sprintf( __VA_ARGS__); \ kdDebug() << timestamp() << "AlsaPlayer::" << s << endl; \ }; \ @@ -81,8 +81,8 @@ #else #define MSG(args...) do {\ if (m_debugLevel >= 1) {\ - QString dbgStr; \ - QString s = dbgStr.sprintf( "%s:%d: ", __FUNCTION__, __LINE__); \ + TQString dbgStr; \ + TQString s = dbgStr.sprintf( "%s:%d: ", __FUNCTION__, __LINE__); \ s += dbgStr.sprintf( ##args ); \ kdDebug() << timestamp() << "AlsaPlayer::" << s << endl; \ }; \ @@ -92,8 +92,8 @@ #if !defined(__GNUC__) || __GNUC__ >= 3 #define DBG(...) do {\ if (m_debugLevel >= 2) {\ - QString dbgStr; \ - QString s = dbgStr.sprintf( "%s:%d: ", __FUNCTION__, __LINE__); \ + TQString dbgStr; \ + TQString s = dbgStr.sprintf( "%s:%d: ", __FUNCTION__, __LINE__); \ s += dbgStr.sprintf( __VA_ARGS__); \ kdDebug() << timestamp() << "AlsaPlayer::" << s << endl; \ }; \ @@ -101,15 +101,15 @@ #else #define DBG(args...) do {\ if (m_debugLevel >= 2) {\ - QString dbgStr; \ - QString s = dbgStr.sprintf( "%s:%d: ", __FUNCTION__, __LINE__); \ + TQString dbgStr; \ + TQString s = dbgStr.sprintf( "%s:%d: ", __FUNCTION__, __LINE__); \ s += dbgStr.sprintf( ##args ); \ kdDebug() << timestamp() << "AlsaPlayer::" << s << endl; \ }; \ } while (0) #endif -QString AlsaPlayer::timestamp() const +TQString AlsaPlayer::timestamp() const { time_t t; struct timeval tv; @@ -118,7 +118,7 @@ QString AlsaPlayer::timestamp() const tstr = strdup(ctime(&t)); tstr[strlen(tstr)-1] = 0; gettimeofday(&tv,NULL); - QString ts; + TQString ts; ts.sprintf(" %s [%d] ",tstr, (int) tv.tv_usec); free(tstr); return ts; @@ -128,7 +128,7 @@ QString AlsaPlayer::timestamp() const // public methods //////////////////////////////////////////////////////////////////////////////// -AlsaPlayer::AlsaPlayer(QObject* parent, const char* name, const QStringList& args) : +AlsaPlayer::AlsaPlayer(TQObject* parent, const char* name, const TQStringList& args) : Player(parent, name, args), m_currentVolume(1.0), m_pcmName("default"), @@ -149,7 +149,7 @@ AlsaPlayer::~AlsaPlayer() } //void AlsaPlayer::play(const FileHandle &file) -void AlsaPlayer::startPlay(const QString &file) +void AlsaPlayer::startPlay(const TQString &file) { if (running()) { if (paused()) { @@ -169,7 +169,7 @@ void AlsaPlayer::startPlay(const QString &file) /*virtual*/ void AlsaPlayer::run() { - QString pName = m_pcmName.section(" ", 0, 0); + TQString pName = m_pcmName.section(" ", 0, 0); DBG("pName = %s", pName.ascii()); pcm_name = qstrdup(pName.ascii()); int err; @@ -395,7 +395,7 @@ void AlsaPlayer::seekPosition(int /*position*/) * It uses plughw:xx instead of hw:xx for specifiers, because hw:xx are not practical to * use (e.g. they require a resampler/channel mixer in the application). */ -QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) +TQStringList AlsaPlayer::getPluginList( const TQCString& /*classname*/ ) { int err = 0; int card = -1, device = -1; @@ -404,7 +404,7 @@ QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) snd_pcm_info_t *pcminfo; snd_ctl_card_info_alloca(&info); snd_pcm_info_alloca(&pcminfo); - QStringList result; + TQStringList result; result.append("default"); for (;;) { @@ -426,16 +426,16 @@ QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) snd_pcm_info_set_subdevice(pcminfo, 0); snd_pcm_info_set_stream(pcminfo, SND_PCM_STREAM_PLAYBACK); if ((err = snd_ctl_pcm_info(handle, pcminfo)) < 0) continue; - QString infoName = " "; + TQString infoName = " "; infoName += snd_ctl_card_info_get_name(info); infoName += " ("; infoName += snd_pcm_info_get_name(pcminfo); infoName += ")"; if (0 == devCnt) { - QString pcmName = QString("default:%1").arg(card); + TQString pcmName = TQString("default:%1").arg(card); result.append(pcmName + infoName); } - QString pcmName = QString("plughw:%1,%2").arg(card).arg(device); + TQString pcmName = TQString("plughw:%1,%2").arg(card).arg(device); result.append(pcmName + infoName); } snd_ctl_close(handle); @@ -444,9 +444,9 @@ QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) return result; } -// QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) +// TQStringList AlsaPlayer::getPluginList( const TQCString& /*classname*/ ) // { -// QStringList assumed("default"); +// TQStringList assumed("default"); // snd_config_t *conf; // int err = snd_config_update(); // if (err < 0) { @@ -454,12 +454,12 @@ QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) // return assumed; // } // err = snd_config_search(snd_config, "pcm", &conf); -// if (err < 0) return QStringList(); +// if (err < 0) return TQStringList(); // snd_config_iterator_t it = snd_config_iterator_first(conf); // snd_config_iterator_t itEnd = snd_config_iterator_end(conf); // const char* id; // snd_config_t *entry; -// QStringList result; +// TQStringList result; // snd_ctl_card_info_t *info; // snd_ctl_card_info_alloca(&info); // snd_pcm_info_t *pcminfo; @@ -468,7 +468,7 @@ QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) // entry = snd_config_iterator_entry(it); // err = snd_config_get_id(entry, &id); // if (err >= 0) { -// if (QString(id) != "default") +// if (TQString(id) != "default") // { // int card = -1; // while (snd_card_next(&card) >= 0 && card >= 0) { @@ -485,9 +485,9 @@ QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) // snd_pcm_info_set_subdevice(pcminfo, 0); // snd_pcm_info_set_stream(pcminfo, stream); // if ((err = snd_ctl_pcm_info(handle, pcminfo)) >= 0) { -// QString pluginName = name; +// TQString pluginName = name; // pluginName += ","; -// pluginName += QString::number(dev); +// pluginName += TQString::number(dev); // pluginName += " "; // pluginName += snd_ctl_card_info_get_name(info); // pluginName += ","; @@ -509,7 +509,7 @@ QStringList AlsaPlayer::getPluginList( const QCString& /*classname*/ ) // return result; // } -void AlsaPlayer::setSinkName(const QString& sinkName) { m_pcmName = sinkName; } +void AlsaPlayer::setSinkName(const TQString& sinkName) { m_pcmName = sinkName; } ///////////////////////////////////////////////////////////////////////////////// // private @@ -1205,7 +1205,7 @@ void AlsaPlayer::voc_write_silence(unsigned x) unsigned l; char *buf; - QByteArray buffer(chunk_bytes); + TQByteArray buffer(chunk_bytes); // buf = (char *) malloc(chunk_bytes); buf = buffer.data(); if (buf == NULL) { @@ -1259,7 +1259,7 @@ void AlsaPlayer::voc_play(int fd, int ofs, const char* name) #define COUNT(x) nextblock -= x; in_buffer -= x; data += x #define COUNT1(x) in_buffer -= x; data += x - QByteArray buffer(64 * 1024); + TQByteArray buffer(64 * 1024); // data = buf = (u_char *)malloc(64 * 1024); data = buf = (u_char*)buffer.data(); buffer_pos = 0; @@ -1490,13 +1490,13 @@ void AlsaPlayer::header(int /*rtype*/, const char* /*name*/) // (stream == SND_PCM_STREAM_PLAYBACK) ? "Playing" : "Recording", // fmt_rec_table[rtype].what, // name); - QString channels; + TQString channels; if (hwdata.channels == 1) channels = "Mono"; else if (hwdata.channels == 2) channels = "Stereo"; else - channels = QString("Channels %1").arg(hwdata.channels); + channels = TQString("Channels %1").arg(hwdata.channels); DBG("Format: %s, Rate %d Hz, %s", snd_pcm_format_description(hwdata.format), hwdata.rate, diff --git a/kttsd/players/alsaplayer/alsaplayer.h b/kttsd/players/alsaplayer/alsaplayer.h index acd465c..d307060 100644 --- a/kttsd/players/alsaplayer/alsaplayer.h +++ b/kttsd/players/alsaplayer/alsaplayer.h @@ -29,11 +29,11 @@ #include <sys/poll.h> // Qt includes. -#include <qstring.h> -#include <qobject.h> -#include <qthread.h> -#include <qfile.h> -#include <qmutex.h> +#include <tqstring.h> +#include <tqobject.h> +#include <tqthread.h> +#include <tqfile.h> +#include <tqmutex.h> // KDE includes. #include <config.h> @@ -68,10 +68,10 @@ class KDE_EXPORT AlsaPlayer : public Player, QThread Q_OBJECT public: - AlsaPlayer(QObject* parent = 0, const char* name = 0, const QStringList& args=QStringList()); + AlsaPlayer(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList()); ~AlsaPlayer(); - virtual void startPlay(const QString& file); + virtual void startPlay(const TQString& file); virtual void pause(); virtual void stop(); @@ -88,8 +88,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 void setDebugLevel(uint level) { m_debugLevel = level; } virtual void setPeriodSize(uint periodSize) { m_defPeriodSize = periodSize; } @@ -106,7 +106,7 @@ private: void stopAndExit(); int wait_for_poll(int draining); - QString timestamp() const; + TQString timestamp() const; ssize_t safe_read(int fd, void *buf, size_t count); int test_vocfile(void *buffer); @@ -130,12 +130,12 @@ private: KURL m_currentURL; float m_currentVolume; - QString m_pcmName; + TQString m_pcmName; char* pcm_name; - mutable QMutex m_mutex; + mutable TQMutex m_mutex; - QFile audiofile; - QString name; + TQFile audiofile; + TQString name; bool canPause; snd_pcm_t *handle; @@ -151,7 +151,7 @@ private: snd_pcm_stream_t stream; int mmap_flag; int interleaved; - QByteArray audioBuffer; + TQByteArray audioBuffer; char *audiobuf; snd_pcm_uframes_t chunk_size; snd_pcm_uframes_t period_frames; @@ -174,7 +174,7 @@ private: int alsa_stop_pipe[2]; /* Pipe for communication about stop requests*/ int alsa_fd_count; /* Counter of descriptors to poll */ - QByteArray alsa_poll_fds_barray; + TQByteArray alsa_poll_fds_barray; struct pollfd *alsa_poll_fds; /* Descriptors to poll */ unsigned int m_defPeriodSize; unsigned int m_defPeriods; diff --git a/kttsd/players/artsplayer/artsplayer.cpp b/kttsd/players/artsplayer/artsplayer.cpp index 512765a..9e6e771 100644 --- a/kttsd/players/artsplayer/artsplayer.cpp +++ b/kttsd/players/artsplayer/artsplayer.cpp @@ -22,8 +22,8 @@ #include <kconfig.h> #include <kstandarddirs.h> -#include <qdir.h> -#include <qapplication.h> +#include <tqdir.h> +#include <tqapplication.h> #include <kartsserver.h> #include <kartsdispatcher.h> @@ -40,7 +40,7 @@ // public methods //////////////////////////////////////////////////////////////////////////////// -ArtsPlayer::ArtsPlayer(QObject* parent, const char* name, const QStringList& args) : +ArtsPlayer::ArtsPlayer(TQObject* parent, const char* name, const TQStringList& args) : Player(parent, name, args), m_dispatcher(0), m_server(0), @@ -62,7 +62,7 @@ ArtsPlayer::~ArtsPlayer() } //void ArtsPlayer::play(const FileHandle &file) -void ArtsPlayer::startPlay(const QString &file) +void ArtsPlayer::startPlay(const TQString &file) { if (!m_dispatcher) setupPlayer(); @@ -87,7 +87,7 @@ void ArtsPlayer::startPlay(const QString &file) m_playobject = m_factory->createPlayObject(m_currentURL, false); if(m_playobject->object().isNull()) - connect(m_playobject, SIGNAL(playObjectCreated()), SLOT(playObjectCreated())); + connect(m_playobject, TQT_SIGNAL(playObjectCreated()), TQT_SLOT(playObjectCreated())); else playObjectCreated(); } @@ -254,7 +254,7 @@ void ArtsPlayer::setupPlayer() m_dispatcher = new KArtsDispatcher; m_server = new KArtsServer; setupArtsObjects(); - connect(m_server, SIGNAL(restartedServer()), SLOT(setupArtsObjects())); + connect(m_server, TQT_SIGNAL(restartedServer()), TQT_SLOT(setupArtsObjects())); } void ArtsPlayer::setupVolumeControl() diff --git a/kttsd/players/artsplayer/artsplayer.h b/kttsd/players/artsplayer/artsplayer.h index 96d62f6..879dccc 100644 --- a/kttsd/players/artsplayer/artsplayer.h +++ b/kttsd/players/artsplayer/artsplayer.h @@ -27,8 +27,8 @@ #include <kurl.h> -#include <qstring.h> -#include <qobject.h> +#include <tqstring.h> +#include <tqobject.h> #include <artsflow.h> class KArtsDispatcher; @@ -45,11 +45,11 @@ class KDE_EXPORT ArtsPlayer : public Player Q_OBJECT public: - ArtsPlayer(QObject* parent = 0, const char* name = 0, const QStringList& args=QStringList()); + ArtsPlayer(TQObject* parent = 0, const char* name = 0, const TQStringList& args=TQStringList()); ~ArtsPlayer(); // virtual void play(const FileHandle &file = FileHandle::null()); - virtual void startPlay(const QString& file); + virtual void startPlay(const TQString& file); virtual void pause(); virtual void stop(); 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; |