summaryrefslogtreecommitdiffstats
path: root/akregator/src/speechclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/speechclient.cpp')
-rw-r--r--akregator/src/speechclient.cpp34
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);
}
}