summaryrefslogtreecommitdiffstats
path: root/libkpgp/kpgp.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkpgp/kpgp.h')
-rw-r--r--libkpgp/kpgp.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/libkpgp/kpgp.h b/libkpgp/kpgp.h
index 9b3ade727..b96bb62dc 100644
--- a/libkpgp/kpgp.h
+++ b/libkpgp/kpgp.h
@@ -20,18 +20,18 @@
#define KPGP_H
#include <stdio.h>
-#include <qstring.h>
-#include <qstrlist.h>
-#include <qdialog.h>
-#include <qwidget.h>
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qlistview.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qmultilineedit.h>
-#include <qcheckbox.h>
+#include <tqstring.h>
+#include <tqstrlist.h>
+#include <tqdialog.h>
+#include <tqwidget.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqlistview.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqmultilineedit.h>
+#include <tqcheckbox.h>
#include <kdialogbase.h>
@@ -112,7 +112,7 @@ public:
Ok if everything is o.k.
*/
Kpgp::Result clearsign( Block& block,
- const KeyID& keyId, const QCString& charset = 0 );
+ const KeyID& keyId, const TQCString& charset = 0 );
/** encrypts the given OpenPGP block for a list of persons. if sign is true
then the block is clearsigned with the key corresponding to the given
@@ -123,8 +123,8 @@ public:
Ok if everything is o.k.
*/
Kpgp::Result encrypt( Block& block,
- const QStringList& receivers, const KeyID& keyId,
- bool sign, const QCString& charset = 0 );
+ const TQStringList& receivers, const KeyID& keyId,
+ bool sign, const TQCString& charset = 0 );
/** Determines the keys which should be used for encrypting the message
to the given list of recipients.
@@ -134,7 +134,7 @@ public:
Ok if everything is o.k.
*/
Kpgp::Result getEncryptionKeys( KeyIDList& encryptionKeyIds,
- const QStringList& recipients,
+ const TQStringList& recipients,
const KeyID& keyId );
/** checks if encrypting to the given list of persons is possible and
@@ -146,7 +146,7 @@ public:
2 if encryption is possible, but the user wants to be asked and
-1 if there is a conflict which can't be automatically resolved.
*/
- int encryptionPossible( const QStringList& recipients );
+ int encryptionPossible( const TQStringList& recipients );
protected:
int doEncSign( Block& block, const KeyIDList& recipientKeyIds, bool sign );
@@ -170,7 +170,7 @@ public:
void readSecretKeys( bool reread = false );
/** try to get an ascii armored key block for the given public key */
- QCString getAsciiPublicKey( const KeyID& keyID );
+ TQCString getAsciiPublicKey( const KeyID& keyID );
/** Returns the public key with the given key ID or null if no matching
key is found.
@@ -180,7 +180,7 @@ public:
/** Returns the first public key with the given user ID or null if no
matching key is found.
*/
- Key* publicKey( const QString& userID );
+ Key* publicKey( const TQString& userID );
/** Returns the secret key with the given key ID or null if no matching
key is found.
@@ -196,7 +196,7 @@ public:
one key have this user id then the first key with this user id will be
chosen.
*/
- Validity keyTrust( const QString& userID );
+ Validity keyTrust( const TQString& userID );
/** Returns TRUE if the given key is at least trusted marginally. Otherwise
FALSE is returned.
@@ -234,7 +234,7 @@ public:
void clear(const bool erasePassPhrase = FALSE);
/** returns the last error that occurred */
- const QString lastErrorMsg(void) const;
+ const TQString lastErrorMsg(void) const;
// what version of PGP/GPG should we use
enum PGPType { tAuto, tGPG, tPGP2, tPGP5, tPGP6, tOff } pgpType;
@@ -257,8 +257,8 @@ public:
and the (optional) text. If <em>keyId</em> is given, then the
corresponding key is selected.
*/
- KeyID selectSecretKey( const QString& title,
- const QString& text = QString::null,
+ KeyID selectSecretKey( const TQString& title,
+ const TQString& text = TQString::null,
const KeyID& keyId = KeyID() );
/** Shows a key selection dialog with all public keys and the given title
@@ -267,10 +267,10 @@ public:
chosen key will be stored (if the user wants it to be stored).
<em>mode</em> specifies which keys can be selected.
*/
- KeyID selectPublicKey( const QString& title,
- const QString& text = QString::null,
+ KeyID selectPublicKey( const TQString& title,
+ const TQString& text = TQString::null,
const KeyID& oldKeyId = KeyID(),
- const QString& address = QString::null,
+ const TQString& address = TQString::null,
const unsigned int allowedKeys = AllKeys );
/** Shows a key selection dialog with all public keys and the given title
@@ -279,10 +279,10 @@ public:
chosen key will be stored (if the user wants it to be stored).
<em>mode</em> specifies which keys can be selected.
*/
- KeyIDList selectPublicKeys( const QString& title,
- const QString& text = QString::null,
+ KeyIDList selectPublicKeys( const TQString& title,
+ const TQString& text = TQString::null,
const KeyIDList& oldKeyIds = KeyIDList(),
- const QString& address = QString::null,
+ const TQString& address = TQString::null,
const unsigned int allowedKeys = AllKeys );
// FIXME: key management
@@ -290,12 +290,12 @@ public:
/** Reads the encryption preference for the given address
from the config file.
*/
- EncryptPref encryptionPreference( const QString& address );
+ EncryptPref encryptionPreference( const TQString& address );
/** Writes the given encryption preference for the given address
to the config file.
*/
- void setEncryptionPreference( const QString& address,
+ void setEncryptionPreference( const TQString& address,
const EncryptPref pref );
// -- static member functions --------------------------------------------
@@ -320,16 +320,16 @@ public:
(n+1)-th Non-OpenPGP block
</pre>
*/
- static bool prepareMessageForDecryption( const QCString& msg,
- QPtrList<Block>& pgpBlocks,
- QStrList& nonPgpBlocks );
+ static bool prepareMessageForDecryption( const TQCString& msg,
+ TQPtrList<Block>& pgpBlocks,
+ TQStrList& nonPgpBlocks );
private:
/** check if we have a trusted encryption key for the given person */
- bool haveTrustedEncryptionKey( const QString& person );
+ bool haveTrustedEncryptionKey( const TQString& person );
/** get a list of encryption keys to be used for the given recipient */
- KeyIDList getEncryptionKeys( const QString& person );
+ KeyIDList getEncryptionKeys( const TQString& person );
/** Set pass phrase */
bool setPassPhrase(const char* pass);
@@ -350,21 +350,21 @@ private:
void wipePassPhrase(bool free=false);
// transform an address into canonical form
- QString canonicalAddress( const QString& person );
+ TQString canonicalAddress( const TQString& person );
/** Shows a dialog to let the user select a key from the given list of keys
*/
KeyID selectKey( const KeyList& keys,
- const QString& title,
- const QString& text = QString::null,
+ const TQString& title,
+ const TQString& text = TQString::null,
const KeyID& keyId = KeyID(),
const unsigned int allowedKeys = AllKeys );
/** Shows a dialog to let the user select a key from the given list of keys
*/
KeyIDList selectKeys( const KeyList& keys,
- const QString& title,
- const QString& text = QString::null,
+ const TQString& title,
+ const TQString& text = TQString::null,
const KeyIDList& keyIds = KeyIDList(),
const unsigned int allowedKeys = AllKeys );
@@ -374,8 +374,8 @@ private:
*/
KeyID selectKey( bool& rememberChoice,
const KeyList& keys,
- const QString& title,
- const QString& text = QString::null,
+ const TQString& title,
+ const TQString& text = TQString::null,
const KeyID& keyId = KeyID(),
const unsigned int allowedKeys = AllKeys );
@@ -385,22 +385,22 @@ private:
*/
KeyIDList selectKeys( bool& rememberChoice,
const KeyList& keys,
- const QString& title,
- const QString& text = QString::null,
+ const TQString& title,
+ const TQString& text = TQString::null,
const KeyIDList& keyIds = KeyIDList(),
const unsigned int allowedKeys = AllKeys );
/** Returns the OpenPGP keys which should be used for encryption to the
given address.
*/
- KeyIDList keysForAddress( const QString& address );
+ KeyIDList keysForAddress( const TQString& address );
/** Set an email address -> list of OpenPGP keys association.
*/
- void setKeysForAddress( const QString& address, const KeyIDList& keyIDs );
+ void setKeysForAddress( const TQString& address, const KeyIDList& keyIDs );
/** Remove an email address -> OpenPGP key association. */
- void removeKeyForAddress( const QString& address );
+ void removeKeyForAddress( const TQString& address );
/** Reads the email address -> OpenPGP key associations from the config
file.
@@ -422,7 +422,7 @@ private:
KeyIDList keyIds;
EncryptPref encrPref;
};
- typedef QMap<QString, AddressData> AddressDataDict;
+ typedef TQMap<TQString, AddressData> AddressDataDict;
AddressDataDict addressDataDict;
KeyList mPublicKeys;
@@ -434,7 +434,7 @@ private:
char * passphrase;
size_t passphrase_buffer_len;
- QString errMsg;
+ TQString errMsg;
KeyID pgpUser; // the key ID which is used to sign/encrypt to self
bool flagEncryptToSelf : 1;