summaryrefslogtreecommitdiffstats
path: root/kttsd/filters/main.cpp
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 /kttsd/filters/main.cpp
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 'kttsd/filters/main.cpp')
-rw-r--r--kttsd/filters/main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kttsd/filters/main.cpp b/kttsd/filters/main.cpp
index d358da8..f33d771 100644
--- a/kttsd/filters/main.cpp
+++ b/kttsd/filters/main.cpp
@@ -21,11 +21,11 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
******************************************************************************/
-#include <qstring.h>
+#include <tqstring.h>
#include <iostream>
using namespace std;
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <klocale.h>
@@ -81,17 +81,17 @@ int main(int argc, char *argv[])
const int offersCount = offers.count();
for(int ndx=0; ndx < offersCount ; ++ndx)
{
- QString name = offers[ndx]->name();
+ TQString name = offers[ndx]->name();
cout << name.latin1() << endl;
}
return 0;
}
- QString filterName;
+ TQString filterName;
if (args->count() > 0) filterName = args->arg(0);
- QString talker = args->getOption("talker");
- QCString appId = args->getOption("appid");
- QString groupName = args->getOption("group");
+ TQString talker = args->getOption("talker");
+ TQCString appId = args->getOption("appid");
+ TQString groupName = args->getOption("group");
if (filterName.isEmpty()) kdError(1) << "No filter name given." << endl;
@@ -111,14 +111,14 @@ int main(int argc, char *argv[])
KttsFilterProc *plugIn =
KParts::ComponentFactory::createInstanceFromLibrary<KttsFilterProc>(
offers[ndx]->library().latin1(), NULL, offers[ndx]->library().latin1(),
- QStringList(), &errorNo);
+ TQStringList(), &errorNo);
if(plugIn)
{
KConfig* config = new KConfig("kttsdrc");
config->setGroup( "General" );
plugIn->init( config, groupName );
- QTextStream inp ( stdin, IO_ReadOnly );
- QString text;
+ TQTextStream inp ( stdin, IO_ReadOnly );
+ TQString text;
text = inp.read();
TalkerCode* talkerCode = new TalkerCode( talker );
text = plugIn->convert( text, talkerCode, appId );