summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/cert
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /kfile-plugins/cert
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/cert')
-rw-r--r--kfile-plugins/cert/kfile_cert.cpp8
-rw-r--r--kfile-plugins/cert/kfile_cert.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/kfile-plugins/cert/kfile_cert.cpp b/kfile-plugins/cert/kfile_cert.cpp
index 8a711ba..4175240 100644
--- a/kfile-plugins/cert/kfile_cert.cpp
+++ b/kfile-plugins/cert/kfile_cert.cpp
@@ -39,8 +39,8 @@ typedef KGenericFactory<CertPlugin> CertFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_cert, CertFactory("kfile-cert"))
-CertPlugin::CertPlugin(TQObject *parent, const char *name, const TQStringList &args)
- : KFilePlugin(parent, name, args)
+CertPlugin::CertPlugin(TQObject *tqparent, const char *name, const TQStringList &args)
+ : KFilePlugin(tqparent, name, args)
{
//add the mimetype here - example:
//KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" );
@@ -110,10 +110,10 @@ static KSSLCertificate *readCertFromFile(const TQString &path)
KOSSL::self()->ERR_clear_error();
const char *begin_line = "-----BEGIN CERTIFICATE-----\n";
const char *end_line = "\n-----END CERTIFICATE-----";
- int begin_pos = file_string.find(begin_line);
+ int begin_pos = file_string.tqfind(begin_line);
if (begin_pos >= 0) {
begin_pos += strlen(begin_line);
- int end_pos = file_string.find(end_line, begin_pos);
+ int end_pos = file_string.tqfind(end_line, begin_pos);
if (end_pos >= 0) {
// read the data between begin and end lines
TQCString body = file_string.mid(begin_pos, end_pos - begin_pos);
diff --git a/kfile-plugins/cert/kfile_cert.h b/kfile-plugins/cert/kfile_cert.h
index 30607eb..2991674 100644
--- a/kfile-plugins/cert/kfile_cert.h
+++ b/kfile-plugins/cert/kfile_cert.h
@@ -31,10 +31,11 @@ class TQString;
class CertPlugin: public KFilePlugin {
Q_OBJECT
+ TQ_OBJECT
private:
void appendDNItems(KFileMetaInfoGroup &group, const TQString &DN);
public:
- CertPlugin(TQObject *parent, const char *name, const TQStringList& args);
+ CertPlugin(TQObject *tqparent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint what);
};