more files

svn path=/trunk/kdesupport/qca/; revision=251146
This commit is contained in:
Justin Karneges 2003-09-15 01:39:31 +00:00
parent 5952e5967c
commit f15d7ac70b
4 changed files with 68 additions and 0 deletions

16
plugins/qca-tls/README Normal file
View File

@ -0,0 +1,16 @@
QCA TLS Plugin v1.0
-------------------
Author: Justin Karneges <justin@affinix.com>
Date: September 15th, 2003
This is a plugin to provide SSL/TLS capability to programs that
utilize the Qt Cryptographic Architecture (QCA).
Requirements:
OpenSSL Library (http://www.openssl.org/)
Installation procedure:
./configure
make
su -c "make install"

View File

@ -99,6 +99,29 @@ gen_files() {
cat >$1/modules.cpp <<EOT
/*
-----BEGIN QCMOD-----
name: Qt
-----END QCMOD-----
*/
//----------------------------------------------------------------------------
// qc_qt
//----------------------------------------------------------------------------
class qc_qt : public ConfObj
{
public:
qc_qt(Conf *c) : ConfObj(c) {}
QString name() const { return "Qt (Multithreaded) >= 3.0"; }
QString shortname() const { return "qt"; }
bool exec()
{
if(QT_VERSION >= 0x030000 && QT_THREAD_SUPPORT)
return true;
else
return false;
}
};
/*
-----BEGIN QCMOD-----
name: openssl
arg: with-openssl-inc=[path],Path to OpenSSL include files
arg: with-openssl-lib=[path],Path to OpenSSL library files
@ -172,6 +195,9 @@ public:
EOT
cat >$1/modules_new.cpp <<EOT
o = new qc_qt(conf);
o->required = true;
o->disabled = false;
o = new qc_openssl(conf);
o->required = true;
o->disabled = false;

23
plugins/qca-tls/qc_qt.cpp Normal file
View File

@ -0,0 +1,23 @@
/*
-----BEGIN QCMOD-----
name: Qt
-----END QCMOD-----
*/
//----------------------------------------------------------------------------
// qc_qt
//----------------------------------------------------------------------------
class qc_qt : public ConfObj
{
public:
qc_qt(Conf *c) : ConfObj(c) {}
QString name() const { return "Qt (Multithreaded) >= 3.0"; }
QString shortname() const { return "qt"; }
bool exec()
{
if(QT_VERSION >= 0x030000 && QT_THREAD_SUPPORT)
return true;
else
return false;
}
};

View File

@ -2,6 +2,9 @@
<name>qca-tls</name>
<profile>qca-tls.pro</profile>
<noprefix/>
<dep type='qt'>
<required/>
</dep>
<dep type='openssl'>
<required/>
</dep>