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/ksslutils.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/ksslutils.cc')
-rw-r--r-- | kio/kssl/ksslutils.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kio/kssl/ksslutils.cc b/kio/kssl/ksslutils.cc index d5186b852..cf024347c 100644 --- a/kio/kssl/ksslutils.cc +++ b/kio/kssl/ksslutils.cc @@ -21,24 +21,24 @@ #include "ksslutils.h" -#include <qstring.h> +#include <tqstring.h> #include <kglobal.h> #include <klocale.h> -#include <qdatetime.h> +#include <tqdatetime.h> #include "kopenssl.h" #ifdef KSSL_HAVE_SSL // This code is mostly taken from OpenSSL v0.9.5a // by Eric Young -QDateTime ASN1_UTCTIME_QDateTime(ASN1_UTCTIME *tm, int *isGmt) { -QDateTime qdt; +TQDateTime ASN1_UTCTIME_QDateTime(ASN1_UTCTIME *tm, int *isGmt) { +TQDateTime qdt; char *v; int gmt=0; int i; int y=0,M=0,d=0,h=0,m=0,s=0; -QDate qdate; -QTime qtime; +TQDate qdate; +TQTime qtime; i = tm->length; v = (char *)tm->data; @@ -68,10 +68,10 @@ return qdt; } -QString ASN1_UTCTIME_QString(ASN1_UTCTIME *tm) { - QString qstr; +TQString ASN1_UTCTIME_QString(ASN1_UTCTIME *tm) { + TQString qstr; int gmt; - QDateTime qdt = ASN1_UTCTIME_QDateTime(tm, &gmt); + TQDateTime qdt = ASN1_UTCTIME_QDateTime(tm, &gmt); qstr = KGlobal::locale()->formatDateTime(qdt, false, true); if (gmt) { @@ -82,9 +82,9 @@ QString ASN1_UTCTIME_QString(ASN1_UTCTIME *tm) { } -QString ASN1_INTEGER_QString(ASN1_INTEGER *aint) { +TQString ASN1_INTEGER_QString(ASN1_INTEGER *aint) { char *rep = KOSSL::self()->i2s_ASN1_INTEGER(NULL, aint); -QString yy = rep; +TQString yy = rep; KOSSL::self()->OPENSSL_free(rep); return yy; } |