summaryrefslogtreecommitdiffstats
path: root/ksayit/KTTSD_Lib
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 /ksayit/KTTSD_Lib
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 'ksayit/KTTSD_Lib')
-rw-r--r--ksayit/KTTSD_Lib/kttsdlib.cpp32
-rw-r--r--ksayit/KTTSD_Lib/kttsdlib.h16
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp12
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibsetupimpl.h2
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibtalker2.cpp30
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibtalker2.h18
6 files changed, 55 insertions, 55 deletions
diff --git a/ksayit/KTTSD_Lib/kttsdlib.cpp b/ksayit/KTTSD_Lib/kttsdlib.cpp
index 224cd21..f41670b 100644
--- a/ksayit/KTTSD_Lib/kttsdlib.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlib.cpp
@@ -12,8 +12,8 @@
// #include <time.h> // nanosleep
// Qt includes
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
// KDE includes
#include <kglobal.h>
@@ -27,17 +27,17 @@
#include "kttsdlibsetupimpl.h"
-KTTSDLib::KTTSDLib(QObject *parent, const char *name, KApplication *Appl)
- : QObject(parent, name), m_Appl(Appl)
+KTTSDLib::KTTSDLib(TQObject *parent, const char *name, KApplication *Appl)
+ : TQObject(parent, name), m_Appl(Appl)
{
KGlobal::locale()->insertCatalogue("libKTTSD");
- m_talker = new kttsdlibtalker2(static_cast<QObject*>(this), "kttsdlibtalker");
- connect(m_talker, SIGNAL(signalTextFinished(const uint)),
- this, SLOT(slotTextFinished(const uint)) );
- connect(m_talker, SIGNAL(signalTextStopped(const uint)),
- this, SLOT(slotTextStopped(const uint)) );
- connect(m_talker, SIGNAL(signalTextStarted(const uint)),
- this, SLOT(slotTextStarted(const uint)) );
+ m_talker = new kttsdlibtalker2(static_cast<TQObject*>(this), "kttsdlibtalker");
+ connect(m_talker, TQT_SIGNAL(signalTextFinished(const uint)),
+ this, TQT_SLOT(slotTextFinished(const uint)) );
+ connect(m_talker, TQT_SIGNAL(signalTextStopped(const uint)),
+ this, TQT_SLOT(slotTextStopped(const uint)) );
+ connect(m_talker, TQT_SIGNAL(signalTextStarted(const uint)),
+ this, TQT_SLOT(slotTextStarted(const uint)) );
// reset list of currently processed jobs
while ( !jobList.empty() ){
@@ -59,15 +59,15 @@ KTTSDLib::~KTTSDLib()
}
-QString KTTSDLib::getName() const
+TQString KTTSDLib::getName() const
{
return "KDE KTTSD";
}
-QString KTTSDLib::getDescription() const
+TQString KTTSDLib::getDescription() const
{
- QString str;
+ TQString str;
str = i18n("<qt><big><u>Description:</u></big><br>");
str += i18n("This plugin uses the KDE TTS Daemon for speech output.");
@@ -87,7 +87,7 @@ int KTTSDLib::getStatus() const
}
-const QWidget* KTTSDLib::getGUI(QFrame *frame)
+const TQWidget* KTTSDLib::getGUI(TQFrame *frame)
{
kdDebug(100200) << "KTTSDLib::getGUI()" << endl;
@@ -111,7 +111,7 @@ bool KTTSDLib::saveWasClicked() const
}
-void KTTSDLib::setText(const QString &text)
+void KTTSDLib::setText(const TQString &text)
{
kdDebug(100200) << "KTTSDLib::setText()" << endl;
diff --git a/ksayit/KTTSD_Lib/kttsdlib.h b/ksayit/KTTSD_Lib/kttsdlib.h
index 6d8de9b..eb57912 100644
--- a/ksayit/KTTSD_Lib/kttsdlib.h
+++ b/ksayit/KTTSD_Lib/kttsdlib.h
@@ -17,9 +17,9 @@
using namespace std;
// QT includes
-#include <qobject.h>
-#include <qwidget.h>
-#include <qframe.h>
+#include <tqobject.h>
+#include <tqwidget.h>
+#include <tqframe.h>
#include <kdemacros.h>
#include "kdeexportfix.h"
@@ -70,25 +70,25 @@ public slots:
void slotTextStarted(const uint job);
public:
- KTTSDLib(QObject *parent=0, const char *name=0, KApplication *Appl=0);
+ KTTSDLib(TQObject *parent=0, const char *name=0, KApplication *Appl=0);
~KTTSDLib();
/** Reimplementations from the base class.
*/
- QString getName() const;
+ TQString getName() const;
- QString getDescription() const;
+ TQString getDescription() const;
int getActions();
- const QWidget* getGUI(QFrame *frame);
+ const TQWidget* getGUI(TQFrame *frame);
void reloadConfiguration();
bool saveWasClicked() const;
- void setText(const QString &text);
+ void setText(const TQString &text);
void sayText();
diff --git a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
index 0c7bc8f..1cb8bc9 100644
--- a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
@@ -13,7 +13,7 @@
#include <stdio.h>
// Qt includes
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
// KDE includes
#include <kdebug.h>
@@ -23,7 +23,7 @@
// App specific includes
#include "kttsdlibsetupimpl.h"
-KTTSDlibSetupImpl::KTTSDlibSetupImpl(QWidget *parent, const char *name)
+KTTSDlibSetupImpl::KTTSDlibSetupImpl(TQWidget *parent, const char *name)
: KTTSDlibSetup(parent, name)
{
}
@@ -47,16 +47,16 @@ void KTTSDlibSetupImpl::slotLaunchControlcenter()
fgets(cmdresult, 18, fp);
pclose(fp);
}
- if ( !QCString(cmdresult).contains("kcmkttsd") ){
- QString error = i18n("Control Center Module for KTTSD not found.");
+ if ( !TQCString(cmdresult).contains("kcmkttsd") ){
+ TQString error = i18n("Control Center Module for KTTSD not found.");
KMessageBox::sorry(this, error, i18n("Problem"));
return;
}
// invoke the Control Center Module
KProcess *kcmproc = new KProcess();
- connect(kcmproc, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotKCMProcessExited(KProcess*)) );
+ connect(kcmproc, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotKCMProcessExited(KProcess*)) );
(*kcmproc) << "kcmshell";
(*kcmproc) << "kcmkttsd";
kcmproc->start(KProcess::NotifyOnExit);
diff --git a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
index 1fcf585..cd36430 100644
--- a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
+++ b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
@@ -27,7 +27,7 @@ class KTTSDlibSetupImpl : public KTTSDlibSetup
{
Q_OBJECT
public:
- KTTSDlibSetupImpl(QWidget *parent = 0, const char *name = 0);
+ KTTSDlibSetupImpl(TQWidget *parent = 0, const char *name = 0);
~KTTSDlibSetupImpl();
diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp b/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
index 808f8f2..c88a96b 100644
--- a/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
@@ -13,7 +13,7 @@
#include <unistd.h> //sleep
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
// KDE includes
#include <kdebug.h>
@@ -21,22 +21,22 @@
// App specific includes
#include "kttsdlibtalker2.h"
-kttsdlibtalker2::kttsdlibtalker2(QObject *parent, const char *name)
- : QObject(parent, name), DCOPStub("kttsd", "KSpeech")
+kttsdlibtalker2::kttsdlibtalker2(TQObject *parent, const char *name)
+ : TQObject(parent, name), DCOPStub("kttsd", "KSpeech")
{
m_client = NULL;
connectDCOPSignal("kttsd", "KSpeech",
- "textStarted(QCString, uint)",
- "textStarted(QCString, uint)", false);
+ "textStarted(TQCString, uint)",
+ "textStarted(TQCString, uint)", false);
connectDCOPSignal("kttsd", "KSpeech",
- "textFinished(QCString, uint)",
- "textFinished(QCString, uint)", false);
+ "textFinished(TQCString, uint)",
+ "textFinished(TQCString, uint)", false);
connectDCOPSignal("kttsd", "KSpeech",
- "textStopped(QCString, uint)",
- "textStopped(QCString, uint)", false);
+ "textStopped(TQCString, uint)",
+ "textStopped(TQCString, uint)", false);
}
@@ -52,8 +52,8 @@ void kttsdlibtalker2::KTTSD_init(KApplication *Appl)
m_client = Appl->dcopClient();
if ( !m_client->isApplicationRegistered("kttsd")){
- QString error;
- if ( Appl->startServiceByDesktopName("kttsd", QStringList(), &error) ){
+ TQString error;
+ if ( Appl->startServiceByDesktopName("kttsd", TQStringList(), &error) ){
// throw(error);
kdDebug() << "Starting KTTSD failed with message " << error << endl;
}
@@ -64,7 +64,7 @@ void kttsdlibtalker2::KTTSD_init(KApplication *Appl)
}
-uint kttsdlibtalker2::KTTSD_setText(const QString &text, QString lang)
+uint kttsdlibtalker2::KTTSD_setText(const TQString &text, TQString lang)
{
kdDebug(100200) << "kttsdlibtalker2::KTTSD_setText()" << endl;
uint jobNum = setText(text, lang);
@@ -134,7 +134,7 @@ int kttsdlibtalker2::KTTSD_getCurrentTextJob()
// DCOP signals
////////////////////////////////////////////
-ASYNC kttsdlibtalker2::textStarted(const QCString &appID,
+ASYNC kttsdlibtalker2::textStarted(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textStarted()" << endl;
@@ -144,7 +144,7 @@ ASYNC kttsdlibtalker2::textStarted(const QCString &appID,
}
-ASYNC kttsdlibtalker2::textFinished(const QCString &appID,
+ASYNC kttsdlibtalker2::textFinished(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textFinished()" << endl;
@@ -154,7 +154,7 @@ ASYNC kttsdlibtalker2::textFinished(const QCString &appID,
}
-ASYNC kttsdlibtalker2::textStopped(const QCString &appID,
+ASYNC kttsdlibtalker2::textStopped(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textStopped()" << endl;
diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.h b/ksayit/KTTSD_Lib/kttsdlibtalker2.h
index e39f1c8..29b6371 100644
--- a/ksayit/KTTSD_Lib/kttsdlibtalker2.h
+++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.h
@@ -13,8 +13,8 @@
#define KTTSDLIBTALKER2_H
// Qt includes
-#include <qobject.h>
-#include <qcstring.h>
+#include <tqobject.h>
+#include <tqcstring.h>
#include <kspeech_stub.h>
#include <kspeechsink.h>
@@ -26,7 +26,7 @@
/**
@author Robert Vogl
*/
-class kttsdlibtalker2 : public QObject, public KSpeech_stub, virtual public KSpeechSink
+class kttsdlibtalker2 : public TQObject, public KSpeech_stub, virtual public KSpeechSink
{
Q_OBJECT
@@ -36,7 +36,7 @@ signals:
void signalTextStopped(const uint);
public:
- kttsdlibtalker2(QObject *parent = 0, const char *name = 0);
+ kttsdlibtalker2(TQObject *parent = 0, const char *name = 0);
~kttsdlibtalker2();
@@ -46,7 +46,7 @@ public:
/** See \p KSpeech Class Reference. Returns the job number.
*/
- uint KTTSD_setText(const QString &text, QString lang);
+ uint KTTSD_setText(const TQString &text, TQString lang);
/** See \p KSpeech Class Reference.
*/
@@ -85,12 +85,12 @@ protected:
////////////////////////////////////////////
// Slots for DCOP signals
////////////////////////////////////////////
- ASYNC textStarted(const QCString &appID, const uint jobNum);
- ASYNC textFinished(const QCString &appID, const uint jobNum);
- ASYNC textStopped(const QCString &appID, const uint jobNum);
+ ASYNC textStarted(const TQCString &appID, const uint jobNum);
+ ASYNC textFinished(const TQCString &appID, const uint jobNum);
+ ASYNC textStopped(const TQCString &appID, const uint jobNum);
private:
- QCString m_objID;
+ TQCString m_objID;
KApplication *m_Appl;
DCOPClient *m_client;
uint m_jobNum;