From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- akregator/src/speechclient.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'akregator/src/speechclient.cpp') 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 #include -#include -#include +#include +#include namespace Akregator { @@ -45,7 +45,7 @@ class SpeechClient::SpeechClientPrivate public: bool isTextSpeechInstalled; - QValueList pendingJobs; + TQValueList 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
& articles) +void SpeechClient::slotSpeak(const TQValueList
& articles) { if (!isTextToSpeechInstalled() || articles.isEmpty()) return; - QString speakMe; + TQString speakMe; - for (QValueList
::ConstIterator it = articles.begin(); it != articles.end(); ++it) + for (TQValueList
::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::ConstIterator it = d->pendingJobs.begin(); it != d->pendingJobs.end(); ++it) + for (TQValueList::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); } } -- cgit v1.2.1