diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/speechclient.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/speechclient.cpp')
-rw-r--r-- | akregator/src/speechclient.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/akregator/src/speechclient.cpp b/akregator/src/speechclient.cpp index ffa42119c..4f98df2c1 100644 --- a/akregator/src/speechclient.cpp +++ b/akregator/src/speechclient.cpp @@ -34,8 +34,8 @@ #include <kstaticdeleter.h> #include <ktrader.h> -#include <qstring.h> -#include <qvaluelist.h> +#include <tqstring.h> +#include <tqvaluelist.h> namespace Akregator { @@ -45,7 +45,7 @@ class SpeechClient::SpeechClientPrivate public: bool isTextSpeechInstalled; - QValueList<uint> pendingJobs; + TQValueList<uint> pendingJobs; }; SpeechClient* SpeechClient::m_self = 0; @@ -60,7 +60,7 @@ SpeechClient* SpeechClient::self() } -SpeechClient::SpeechClient() : DCOPStub("kttsd", "KSpeech"), DCOPObject("akregatorpart_kspeechsink"), QObject(), d(new SpeechClientPrivate) +SpeechClient::SpeechClient() : DCOPStub("kttsd", "KSpeech"), DCOPObject("akregatorpart_kspeechsink"), TQObject(), d(new SpeechClientPrivate) { d->isTextSpeechInstalled = false; setupSpeechSystem(); @@ -72,7 +72,7 @@ SpeechClient::~SpeechClient() d = 0; } -void SpeechClient::slotSpeak(const QString& text, const QString& language) +void SpeechClient::slotSpeak(const TQString& text, const TQString& language) { if (!isTextToSpeechInstalled() || text.isEmpty()) return; @@ -91,21 +91,21 @@ void SpeechClient::slotSpeak(const Article& article) if (!isTextToSpeechInstalled() || article.isNull()) return; - QString speakMe; + TQString speakMe; speakMe += KCharsets::resolveEntities(Utils::stripTags((article).title())) + ". . . . " + KCharsets::resolveEntities(Utils::stripTags((article).description())); slotSpeak(speakMe, "en"); } -void SpeechClient::slotSpeak(const QValueList<Article>& articles) +void SpeechClient::slotSpeak(const TQValueList<Article>& articles) { if (!isTextToSpeechInstalled() || articles.isEmpty()) return; - QString speakMe; + TQString speakMe; - for (QValueList<Article>::ConstIterator it = articles.begin(); it != articles.end(); ++it) + for (TQValueList<Article>::ConstIterator it = articles.begin(); it != articles.end(); ++it) { if (!speakMe.isEmpty()) speakMe += ". . . . . . " + i18n("Next Article: "); @@ -121,7 +121,7 @@ void SpeechClient::slotAbortJobs() { if (!d->pendingJobs.isEmpty()) { - for (QValueList<uint>::ConstIterator it = d->pendingJobs.begin(); it != d->pendingJobs.end(); ++it) + for (TQValueList<uint>::ConstIterator it = d->pendingJobs.begin(); it != d->pendingJobs.end(); ++it) { removeText(*it); } @@ -132,7 +132,7 @@ void SpeechClient::slotAbortJobs() } } -ASYNC SpeechClient::textRemoved(const QCString& /*appId*/, uint jobNum) +ASYNC SpeechClient::textRemoved(const TQCString& /*appId*/, uint jobNum) { kdDebug() << "SpeechClient::textRemoved() called" << endl; if (d->pendingJobs.contains(jobNum)) @@ -169,8 +169,8 @@ void SpeechClient::setupSpeechSystem() } else { - QString error; - if (KApplication::startServiceByDesktopName("kttsd", QStringList(), &error)) + TQString error; + if (KApplication::startServiceByDesktopName("kttsd", TQStringList(), &error)) { kdDebug() << "Starting KTTSD failed with message " << error << endl; d->isTextSpeechInstalled = false; @@ -185,14 +185,14 @@ void SpeechClient::setupSpeechSystem() { bool c = connectDCOPSignal("kttsd", "KSpeech", - "textRemoved(QCString, uint)", - "textRemoved(QCString, uint)", + "textRemoved(TQCString, uint)", + "textRemoved(TQCString, uint)", false); if (!c) kdDebug() << "SpeechClient::setupSpeechSystem(): connecting signals failed" << endl; c = connectDCOPSignal("kttsd", "KSpeech", - "textFinished(QCString, uint)", - "textRemoved(QCString, uint)", + "textFinished(TQCString, uint)", + "textRemoved(TQCString, uint)", false); } } |