From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kio/kssl/ksslsigners.cc | 114 ++++++++++++++++++++++++------------------------ 1 file changed, 57 insertions(+), 57 deletions(-) (limited to 'kio/kssl/ksslsigners.cc') diff --git a/kio/kssl/ksslsigners.cc b/kio/kssl/ksslsigners.cc index 91e9f1755..2392f4a36 100644 --- a/kio/kssl/ksslsigners.cc +++ b/kio/kssl/ksslsigners.cc @@ -19,8 +19,8 @@ */ -#include -#include +#include +#include #include "ksslcertificate.h" #include "ksslsigners.h" #include @@ -47,21 +47,21 @@ bool KSSLSigners::addCA(KSSLCertificate& cert, } -bool KSSLSigners::addCA(QString cert, +bool KSSLSigners::addCA(TQString cert, bool ssl, bool email, bool code) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert; arg << ssl << email << code; bool rc = dcc->call("kded", "kssld", - "caAdd(QString,bool,bool,bool)", + "caAdd(TQString,bool,bool,bool)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -72,15 +72,15 @@ return false; bool KSSLSigners::regenerate() { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); bool rc = dcc->call("kded", "kssld", "caRegenerate()", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -95,17 +95,17 @@ bool KSSLSigners::useForSSL(KSSLCertificate& cert) { } -bool KSSLSigners::useForSSL(QString subject) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +bool KSSLSigners::useForSSL(TQString subject) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << subject; bool rc = dcc->call("kded", "kssld", - "caUseForSSL(QString)", + "caUseForSSL(TQString)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -120,17 +120,17 @@ bool KSSLSigners::useForEmail(KSSLCertificate& cert) { } -bool KSSLSigners::useForEmail(QString subject) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +bool KSSLSigners::useForEmail(TQString subject) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << subject; bool rc = dcc->call("kded", "kssld", - "caUseForEmail(QString)", + "caUseForEmail(TQString)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -145,17 +145,17 @@ bool KSSLSigners::useForCode(KSSLCertificate& cert) { } -bool KSSLSigners::useForCode(QString subject) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +bool KSSLSigners::useForCode(TQString subject) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << subject; bool rc = dcc->call("kded", "kssld", - "caUseForCode(QString)", + "caUseForCode(TQString)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -170,17 +170,17 @@ bool KSSLSigners::remove(KSSLCertificate& cert) { } -bool KSSLSigners::remove(QString subject) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +bool KSSLSigners::remove(TQString subject) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << subject; bool rc = dcc->call("kded", "kssld", - "caRemove(QString)", + "caRemove(TQString)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -190,17 +190,17 @@ return false; } -QStringList KSSLSigners::list() { - QStringList drc; - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +TQStringList KSSLSigners::list() { + TQStringList drc; + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); bool rc = dcc->call("kded", "kssld", "caList()", data, rettype, retval); - if (rc && rettype == "QStringList") { - QDataStream retStream(retval, IO_ReadOnly); + if (rc && rettype == "TQStringList") { + TQDataStream retStream(retval, IO_ReadOnly); retStream >> drc; } @@ -208,18 +208,18 @@ return drc; } -QString KSSLSigners::getCert(QString subject) { - QString drc; - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +TQString KSSLSigners::getCert(TQString subject) { + TQString drc; + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << subject; bool rc = dcc->call("kded", "kssld", - "caGetCert(QString)", + "caGetCert(TQString)", data, rettype, retval); - if (rc && rettype == "QString") { - QDataStream retStream(retval, IO_ReadOnly); + if (rc && rettype == "TQString") { + TQDataStream retStream(retval, IO_ReadOnly); retStream >> drc; } @@ -227,17 +227,17 @@ return drc; } -bool KSSLSigners::setUse(QString subject, bool ssl, bool email, bool code) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +bool KSSLSigners::setUse(TQString subject, bool ssl, bool email, bool code) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << subject << ssl << email << code; bool rc = dcc->call("kded", "kssld", - "caSetUse(QString,bool,bool,bool)", + "caSetUse(TQString,bool,bool,bool)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; -- cgit v1.2.1