summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/chiasmus
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /certmanager/lib/backends/chiasmus
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'certmanager/lib/backends/chiasmus')
-rw-r--r--certmanager/lib/backends/chiasmus/chiasmusbackend.cpp8
-rw-r--r--certmanager/lib/backends/chiasmus/chiasmusbackend.h6
-rw-r--r--certmanager/lib/backends/chiasmus/chiasmusjob.cpp14
-rw-r--r--certmanager/lib/backends/chiasmus/chiasmusjob.h17
-rw-r--r--certmanager/lib/backends/chiasmus/chiasmuslibrary.cpp6
-rw-r--r--certmanager/lib/backends/chiasmus/chiasmuslibrary.h6
-rw-r--r--certmanager/lib/backends/chiasmus/config_data.c6
-rw-r--r--certmanager/lib/backends/chiasmus/obtainkeysjob.cpp14
-rw-r--r--certmanager/lib/backends/chiasmus/obtainkeysjob.h9
-rw-r--r--certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp10
-rw-r--r--certmanager/lib/backends/chiasmus/symcryptrunprocessbase.h9
11 files changed, 54 insertions, 51 deletions
diff --git a/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp b/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp
index 2804cca1f..5ce7f617f 100644
--- a/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp
+++ b/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -106,7 +106,7 @@ namespace {
KURL::List m;
public:
to( const TQVariant & v ) {
- // wow, KURL::List is broken... it lacks conversion from and to QVL<KURL>...
+ // wow, KURL::List is broken... it lacks conversion from and to TQVL<KURL>...
m += to< TQValueList<KURL> >( v );
}
operator KURL::List() const { return m; }
diff --git a/certmanager/lib/backends/chiasmus/chiasmusbackend.h b/certmanager/lib/backends/chiasmus/chiasmusbackend.h
index 96eda06e7..1619f9ea1 100644
--- a/certmanager/lib/backends/chiasmus/chiasmusbackend.h
+++ b/certmanager/lib/backends/chiasmus/chiasmusbackend.h
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
diff --git a/certmanager/lib/backends/chiasmus/chiasmusjob.cpp b/certmanager/lib/backends/chiasmus/chiasmusjob.cpp
index 99fdda015..c6b718ca8 100644
--- a/certmanager/lib/backends/chiasmus/chiasmusjob.cpp
+++ b/certmanager/lib/backends/chiasmus/chiasmusjob.cpp
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -163,7 +163,7 @@ void Kleo::ChiasmusJob::showChiasmusOutput() {
kdDebug() << k_funcinfo << endl;
if ( mStderr.isEmpty() )
return;
- KMessageBox::information( 0 /*how to get a parent widget?*/,
+ KMessageBox::information( 0 /*how to get a tqparent widget?*/,
mStderr,
i18n( "Output from chiasmus" ) );
}
@@ -200,7 +200,7 @@ void Kleo::ChiasmusJob::slotTimeout() {
}
-void Kleo::ChiasmusJob::showErrorDialog( TQWidget * parent, const TQString & caption ) const {
+void Kleo::ChiasmusJob::showErrorDialog( TQWidget * tqparent, const TQString & caption ) const {
if ( !mError )
return;
if ( mError.isCanceled() )
@@ -211,9 +211,9 @@ void Kleo::ChiasmusJob::showErrorDialog( TQWidget * parent, const TQString & cap
.arg( TQString::fromLocal8Bit( mError.asString() ) );
if ( !mStderr.isEmpty() ) {
const TQString details = i18n( "The following was received on stderr:\n%1" ).arg( mStderr );
- KMessageBox::detailedError( parent, msg, details, caption );
+ KMessageBox::detailedError( tqparent, msg, details, caption );
} else {
- KMessageBox::error( parent, msg, caption );
+ KMessageBox::error( tqparent, msg, caption );
}
}
diff --git a/certmanager/lib/backends/chiasmus/chiasmusjob.h b/certmanager/lib/backends/chiasmus/chiasmusjob.h
index 54b3763c2..08b3ec1d1 100644
--- a/certmanager/lib/backends/chiasmus/chiasmusjob.h
+++ b/certmanager/lib/backends/chiasmus/chiasmusjob.h
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -51,12 +51,13 @@ namespace Kleo {
*/
class ChiasmusJob : public Kleo::SpecialJob {
Q_OBJECT
+ TQ_OBJECT
Q_ENUMS( Mode )
- Q_PROPERTY( Mode mode READ mode )
- Q_PROPERTY( TQString key READ key WRITE setKey )
- Q_PROPERTY( TQString options READ options WRITE setOptions )
- Q_PROPERTY( TQByteArray input READ input WRITE setInput )
- Q_PROPERTY( TQByteArray result READ result )
+ TQ_PROPERTY( Mode mode READ mode )
+ TQ_PROPERTY( TQString key READ key WRITE setKey )
+ TQ_PROPERTY( TQString options READ options WRITE setOptions )
+ TQ_PROPERTY( TQByteArray input READ input WRITE setInput )
+ TQ_PROPERTY( TQByteArray result READ result )
public:
enum Mode {
Encrypt, Decrypt
diff --git a/certmanager/lib/backends/chiasmus/chiasmuslibrary.cpp b/certmanager/lib/backends/chiasmus/chiasmuslibrary.cpp
index de1a01e10..002bf0182 100644
--- a/certmanager/lib/backends/chiasmus/chiasmuslibrary.cpp
+++ b/certmanager/lib/backends/chiasmus/chiasmuslibrary.cpp
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
diff --git a/certmanager/lib/backends/chiasmus/chiasmuslibrary.h b/certmanager/lib/backends/chiasmus/chiasmuslibrary.h
index 1b15e86e1..fa1adc737 100644
--- a/certmanager/lib/backends/chiasmus/chiasmuslibrary.h
+++ b/certmanager/lib/backends/chiasmus/chiasmuslibrary.h
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
diff --git a/certmanager/lib/backends/chiasmus/config_data.c b/certmanager/lib/backends/chiasmus/config_data.c
index bb3f33916..a9bd14514 100644
--- a/certmanager/lib/backends/chiasmus/config_data.c
+++ b/certmanager/lib/backends/chiasmus/config_data.c
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
diff --git a/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp b/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
index 4a79a1956..fe0b19b1e 100644
--- a/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
+++ b/certmanager/lib/backends/chiasmus/obtainkeysjob.cpp
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -101,8 +101,8 @@ void Kleo::ObtainKeysJob::slotPerform( bool async ) {
const TQDir dir( KShell::tildeExpand( mKeyPaths[mIndex] ) );
- if ( const QFileInfoList * xisFiles = dir.entryInfoList( "*.xis;*.XIS", TQDir::Files ) )
- for ( QFileInfoList::const_iterator it = xisFiles->begin(), end = xisFiles->end() ; it != end ; ++it )
+ if ( const TQFileInfoList * xisFiles = dir.entryInfoList( "*.xis;*.XIS", TQDir::Files ) )
+ for ( TQFileInfoList::const_iterator it = xisFiles->begin(), end = xisFiles->end() ; it != end ; ++it )
if ( (*it)->isReadable() )
mResult.push_back( (*it)->absFilePath() );
@@ -114,13 +114,13 @@ void Kleo::ObtainKeysJob::slotPerform( bool async ) {
slotPerform( false );
}
-void Kleo::ObtainKeysJob::showErrorDialog( TQWidget * parent, const TQString & caption ) const {
+void Kleo::ObtainKeysJob::showErrorDialog( TQWidget * tqparent, const TQString & caption ) const {
if ( !mError )
return;
if ( mError.isCanceled() )
return;
const TQString msg = TQString::fromUtf8( mError.asString() );
- KMessageBox::error( parent, msg, caption );
+ KMessageBox::error( tqparent, msg, caption );
}
#include "obtainkeysjob.moc"
diff --git a/certmanager/lib/backends/chiasmus/obtainkeysjob.h b/certmanager/lib/backends/chiasmus/obtainkeysjob.h
index 4e3f8f7e2..6803bd7f8 100644
--- a/certmanager/lib/backends/chiasmus/obtainkeysjob.h
+++ b/certmanager/lib/backends/chiasmus/obtainkeysjob.h
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -64,7 +64,8 @@ namespace Kleo {
*/
class ObtainKeysJob : public Kleo::SpecialJob {
Q_OBJECT
- Q_PROPERTY( TQStringList result READ result )
+ TQ_OBJECT
+ TQ_PROPERTY( TQStringList result READ result )
public:
ObtainKeysJob();
~ObtainKeysJob();
diff --git a/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp b/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp
index 3dc3b9370..a2408a734 100644
--- a/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp
+++ b/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -44,8 +44,8 @@
Kleo::SymCryptRunProcessBase::SymCryptRunProcessBase( const TQString & class_, const TQString & program,
const TQString & keyFile, const TQString & options,
Operation mode,
- TQObject * parent, const char * name )
- : KProcess( parent, name ),
+ TQObject * tqparent, const char * name )
+ : KProcess( tqparent, name ),
mOperation( mode ), mOptions( options )
{
*this << "symcryptrun"
diff --git a/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.h b/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.h
index 3c3690ae6..2fb136fb1 100644
--- a/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.h
+++ b/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.h
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -43,6 +43,7 @@ namespace Kleo {
class SymCryptRunProcessBase : public KProcess {
Q_OBJECT
+ TQ_OBJECT
public:
enum Operation {
Encrypt, Decrypt
@@ -50,7 +51,7 @@ public:
SymCryptRunProcessBase( const TQString & class_, const TQString & program,
const TQString & keyFile, const TQString& options,
Operation op,
- TQObject * parent=0, const char * name=0 );
+ TQObject * tqparent=0, const char * name=0 );
~SymCryptRunProcessBase();
bool launch( const TQByteArray & input, RunMode rm=NotifyOnExit );