summaryrefslogtreecommitdiffstats
path: root/knewstuff/security.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
commitf7e71d47719ab6094cf4a9fafffa5ea351973522 (patch)
tree30834aa632d442019e14f88685001d94657d060b /knewstuff/security.cpp
parentb31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff)
downloadtdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz
tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewstuff/security.cpp')
-rw-r--r--knewstuff/security.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/knewstuff/security.cpp b/knewstuff/security.cpp
index 8ef377b78..7db2ccfe7 100644
--- a/knewstuff/security.cpp
+++ b/knewstuff/security.cpp
@@ -125,19 +125,19 @@ void Security::slotDataArrived(KProcIO *procIO)
key.mail=data.section('<', -1, -1);
key.mail.truncate(key.mail.length() - 1);
key.name=data.section('<',0,0);
- if (key.name.find("(")!=-1)
+ if (key.name.tqfind("(")!=-1)
key.name=key.name.section('(',0,0);
m_keys[shortId] = key;
}
break;
case Verify:
- data = data.section("]",1,-1).stripWhiteSpace();
+ data = TQString(data.section("]",1,-1)).stripWhiteSpace();
if (data.startsWith("GOODSIG"))
{
m_result &= SIGNED_BAD_CLEAR;
m_result |= SIGNED_OK;
TQString id = data.section(" ", 1 , 1).right(8);
- if (!m_keys.contains(id))
+ if (!m_keys.tqcontains(id))
{
m_result |= UNKNOWN;
} else
@@ -154,7 +154,7 @@ void Security::slotDataArrived(KProcIO *procIO)
{
m_result |= SIGNED_BAD;
TQString id = data.section(" ", 1 , 1).right(8);
- if (!m_keys.contains(id))
+ if (!m_keys.tqcontains(id))
{
m_result |= UNKNOWN;
} else
@@ -170,7 +170,7 @@ void Security::slotDataArrived(KProcIO *procIO)
break;
case Sign:
- if (data.find("passphrase.enter") != -1)
+ if (data.tqfind("passphrase.enter") != -1)
{
TQCString password;
KeyStruct key = m_keys[m_secretKey];
@@ -187,7 +187,7 @@ void Security::slotDataArrived(KProcIO *procIO)
return;
}
} else
- if (data.find("BAD_PASSPHRASE") != -1)
+ if (data.tqfind("BAD_PASSPHRASE") != -1)
{
m_result |= BAD_PASSPHRASE;
}
@@ -226,7 +226,7 @@ void Security::slotCheckValidity()
if (file.open(IO_ReadOnly))
{
context.reset();
- context.update(file);
+ context.update(TQT_TQIODEVICE_OBJECT(file));
md5sum = context.hexDigest();
file.close();
}
@@ -298,7 +298,7 @@ void Security::slotSignFile()
if (file.open(IO_ReadOnly))
{
context.reset();
- context.update(file);
+ context.update(TQT_TQIODEVICE_OBJECT(file));
md5sum = context.hexDigest();
file.close();
}