diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kio/kssl/ksslcertificatecache.cc | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/kssl/ksslcertificatecache.cc')
-rw-r--r-- | kio/kssl/ksslcertificatecache.cc | 192 |
1 files changed, 96 insertions, 96 deletions
diff --git a/kio/kssl/ksslcertificatecache.cc b/kio/kssl/ksslcertificatecache.cc index 3a784ed14..eb4ff2d86 100644 --- a/kio/kssl/ksslcertificatecache.cc +++ b/kio/kssl/ksslcertificatecache.cc @@ -66,9 +66,9 @@ void KSSLCertificateCache::loadDefaultPolicies() { void KSSLCertificateCache::reload() { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); d->dcc->call("kded", "kssld", "cacheReload()", data, rettype, retval); @@ -77,9 +77,9 @@ void KSSLCertificateCache::reload() { void KSSLCertificateCache::addCertificate(KSSLCertificate& cert, KSSLCertificatePolicy policy, bool permanent) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert; arg << policy; arg << permanent; @@ -89,18 +89,18 @@ void KSSLCertificateCache::addCertificate(KSSLCertificate& cert, } -// KDE 4: Make it const QString & -KSSLCertificateCache::KSSLCertificatePolicy KSSLCertificateCache::getPolicyByCN(QString& cn) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +// KDE 4: Make it const TQString & +KSSLCertificateCache::KSSLCertificatePolicy KSSLCertificateCache::getPolicyByCN(TQString& cn) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cn; bool rc = d->dcc->call("kded", "kssld", - "cacheGetPolicyByCN(QString)", + "cacheGetPolicyByCN(TQString)", data, rettype, retval); if (rc && rettype == "KSSLCertificateCache::KSSLCertificatePolicy") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); KSSLCertificateCache::KSSLCertificatePolicy drc; retStream >> drc; return drc; @@ -110,16 +110,16 @@ return KSSLCertificateCache::Ambiguous; KSSLCertificateCache::KSSLCertificatePolicy KSSLCertificateCache::getPolicyByCertificate(KSSLCertificate& cert) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert; bool rc = d->dcc->call("kded", "kssld", "cacheGetPolicyByCertificate(KSSLCertificate)", data, rettype, retval); if (rc && rettype == "KSSLCertificateCache::KSSLCertificatePolicy") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); KSSLCertificateCache::KSSLCertificatePolicy drc; retStream >> drc; return drc; @@ -128,18 +128,18 @@ return KSSLCertificateCache::Ambiguous; } -// KDE 4: Make it const QString & -bool KSSLCertificateCache::seenCN(QString& cn) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +// KDE 4: Make it const TQString & +bool KSSLCertificateCache::seenCN(TQString& cn) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cn; bool rc = d->dcc->call("kded", "kssld", - "cacheSeenCN(QString)", + "cacheSeenCN(TQString)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -150,16 +150,16 @@ return false; bool KSSLCertificateCache::seenCertificate(KSSLCertificate& cert) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert; bool rc = d->dcc->call("kded", "kssld", "cacheSeenCertificate(KSSLCertificate)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -170,16 +170,16 @@ return false; bool KSSLCertificateCache::isPermanent(KSSLCertificate& cert) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert; bool rc = d->dcc->call("kded", "kssld", "cacheIsPermanent(KSSLCertificate)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -189,18 +189,18 @@ return false; } -// KDE 4: Make it const QString & -bool KSSLCertificateCache::removeByCN(QString& cn) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +// KDE 4: Make it const TQString & +bool KSSLCertificateCache::removeByCN(TQString& cn) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cn; bool rc = d->dcc->call("kded", "kssld", - "cacheRemoveByCN(QString)", + "cacheRemoveByCN(TQString)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -211,16 +211,16 @@ return false; bool KSSLCertificateCache::removeByCertificate(KSSLCertificate& cert) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert; bool rc = d->dcc->call("kded", "kssld", "cacheRemoveByCertificate(KSSLCertificate)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -230,21 +230,21 @@ return false; } -// KDE 4: Make it const QString & -bool KSSLCertificateCache::modifyByCN(QString& cn, +// KDE 4: Make it const TQString & +bool KSSLCertificateCache::modifyByCN(TQString& cn, KSSLCertificateCache::KSSLCertificatePolicy policy, bool permanent, - QDateTime& expires) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQDateTime& expires) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cn << policy << permanent << expires; bool rc = d->dcc->call("kded", "kssld", - "cacheModifyByCN(QString,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)", + "cacheModifyByCN(TQString,KSSLCertificateCache::KSSLCertificatePolicy,bool,TQDateTime)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -257,17 +257,17 @@ return false; bool KSSLCertificateCache::modifyByCertificate(KSSLCertificate& cert, KSSLCertificateCache::KSSLCertificatePolicy policy, bool permanent, - QDateTime& expires) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); + TQDateTime& expires) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert << policy << permanent << expires; bool rc = d->dcc->call("kded", "kssld", - "cacheModifyByCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)", + "cacheModifyByCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool,TQDateTime)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -277,37 +277,37 @@ return false; } -QStringList KSSLCertificateCache::getHostList(KSSLCertificate& cert) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +TQStringList KSSLCertificateCache::getHostList(KSSLCertificate& cert) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert; bool rc = d->dcc->call("kded", "kssld", "cacheGetHostList(KSSLCertificate)", data, rettype, retval); - if (rc && rettype == "QStringList") { - QDataStream retStream(retval, IO_ReadOnly); - QStringList drc; + if (rc && rettype == "TQStringList") { + TQDataStream retStream(retval, IO_ReadOnly); + TQStringList drc; retStream >> drc; return drc; } -return QStringList(); +return TQStringList(); } -// KDE 4: Make it const QString & -bool KSSLCertificateCache::addHost(KSSLCertificate& cert, QString& host) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +// KDE 4: Make it const TQString & +bool KSSLCertificateCache::addHost(KSSLCertificate& cert, TQString& host) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert << host; bool rc = d->dcc->call("kded", "kssld", - "cacheAddHost(KSSLCertificate,QString)", + "cacheAddHost(KSSLCertificate,TQString)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -317,18 +317,18 @@ return false; } -// KDE 4: Make it const QString & -bool KSSLCertificateCache::removeHost(KSSLCertificate& cert, QString& host) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +// KDE 4: Make it const TQString & +bool KSSLCertificateCache::removeHost(KSSLCertificate& cert, TQString& host) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << cert << host; bool rc = d->dcc->call("kded", "kssld", - "cacheRemoveHost(KSSLCertificate,QString)", + "cacheRemoveHost(KSSLCertificate,TQString)", data, rettype, retval); if (rc && rettype == "bool") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); bool drc; retStream >> drc; return drc; @@ -338,37 +338,37 @@ return false; } -QStringList KSSLCertificateCache::getKDEKeyByEmail(const QString &email) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +TQStringList KSSLCertificateCache::getKDEKeyByEmail(const TQString &email) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << email; bool rc = d->dcc->call("kded", "kssld", - "getKDEKeyByEmail(QString)", + "getKDEKeyByEmail(TQString)", data, rettype, retval); - if (rc && rettype == "QStringList") { - QDataStream retStream(retval, IO_ReadOnly); - QStringList drc; + if (rc && rettype == "TQStringList") { + TQDataStream retStream(retval, IO_ReadOnly); + TQStringList drc; retStream >> drc; return drc; } - return QStringList(); + return TQStringList(); } -KSSLCertificate *KSSLCertificateCache::getCertByMD5Digest(const QString &key) { - QByteArray data, retval; - QCString rettype; - QDataStream arg(data, IO_WriteOnly); +KSSLCertificate *KSSLCertificateCache::getCertByMD5Digest(const TQString &key) { + TQByteArray data, retval; + TQCString rettype; + TQDataStream arg(data, IO_WriteOnly); arg << key; bool rc = d->dcc->call("kded", "kssld", - "getCertByMD5Digest(QString)", + "getCertByMD5Digest(TQString)", data, rettype, retval); if (rc && rettype == "KSSLCertificate") { - QDataStream retStream(retval, IO_ReadOnly); + TQDataStream retStream(retval, IO_ReadOnly); KSSLCertificate *drc = new KSSLCertificate; retStream >> *drc; if (drc->getCert()) @@ -380,13 +380,13 @@ KSSLCertificate *KSSLCertificateCache::getCertByMD5Digest(const QString &key) { } -QDataStream& operator<<(QDataStream& s, const KSSLCertificateCache::KSSLCertificatePolicy& p) { +TQDataStream& operator<<(TQDataStream& s, const KSSLCertificateCache::KSSLCertificatePolicy& p) { s << (Q_UINT32)p; return s; } -QDataStream& operator>>(QDataStream& s, KSSLCertificateCache::KSSLCertificatePolicy& p) { +TQDataStream& operator>>(TQDataStream& s, KSSLCertificateCache::KSSLCertificatePolicy& p) { Q_UINT32 pd; s >> pd; p = (KSSLCertificateCache::KSSLCertificatePolicy) pd; |