summaryrefslogtreecommitdiffstats
path: root/libkpimidentities/identity.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkpimidentities/identity.h')
-rw-r--r--libkpimidentities/identity.h160
1 files changed, 80 insertions, 80 deletions
diff --git a/libkpimidentities/identity.h b/libkpimidentities/identity.h
index 6b06e9a9d..0493a3864 100644
--- a/libkpimidentities/identity.h
+++ b/libkpimidentities/identity.h
@@ -11,9 +11,9 @@
#include <kdepimmacros.h>
-#include <qstring.h>
-#include <qcstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqcstring.h>
+#include <tqstringlist.h>
class KProcess;
namespace KPIM {
@@ -33,8 +33,8 @@ namespace KPIM {
class KDE_EXPORT Signature {
friend class Identity;
- friend QDataStream & KPIM::operator<<( QDataStream & stream, const Signature & sig );
- friend QDataStream & KPIM::operator>>( QDataStream & stream, Signature & sig );
+ friend TQDataStream & KPIM::operator<<( TQDataStream & stream, const Signature & sig );
+ friend TQDataStream & KPIM::operator>>( TQDataStream & stream, Signature & sig );
public:
/** Type of signature (ie. way to obtain the signature text) */
@@ -46,26 +46,26 @@ public:
/** Constructor for disabled signature */
Signature();
/** Constructor for inline text */
- Signature( const QString & text );
+ Signature( const TQString & text );
/** Constructor for text from a file or from output of a command */
- Signature( const QString & url, bool isExecutable );
+ Signature( const TQString & url, bool isExecutable );
/** @return the raw signature text as entered resp. read from file. */
- QString rawText( bool * ok=0 ) const;
+ TQString rawText( bool * ok=0 ) const;
/** @return the signature text with a "-- " separator added, if
necessary. */
- QString withSeparator( bool * ok=0 ) const;
+ TQString withSeparator( bool * ok=0 ) const;
/** Set the signature text and mark this signature as being of
"inline text" type. */
- void setText( const QString & text ) { mText = text; }
- QString text() const { return mText; }
+ void setText( const TQString & text ) { mText = text; }
+ TQString text() const { return mText; }
/** Set the signature URL and mark this signature as being of
"from file" resp. "from output of command" type. */
- void setUrl( const QString & url, bool isExecutable=false );
- QString url() const { return mUrl; }
+ void setUrl( const TQString & url, bool isExecutable=false );
+ TQString url() const { return mUrl; }
/// @return the type of signature (ie. way to obtain the signature text)
Type type() const { return mType; }
@@ -76,12 +76,12 @@ protected:
void readConfig( const KConfigBase * config );
private:
- QString textFromFile( bool * ok ) const;
- QString textFromCommand( bool * ok ) const;
+ TQString textFromFile( bool * ok ) const;
+ TQString textFromCommand( bool * ok ) const;
private:
- QString mUrl;
- QString mText;
+ TQString mUrl;
+ TQString mText;
Type mType;
};
@@ -90,14 +90,14 @@ class KDE_EXPORT Identity
{
// only the identity manager should be able to construct and
// destruct us, but then we get into problems with using
- // QValueList<Identity> and especially qHeapSort().
+ // TQValueList<Identity> and especially qHeapSort().
friend class IdentityManager;
- friend QDataStream & operator<<( QDataStream & stream, const KPIM::Identity & ident );
- friend QDataStream & operator>>( QDataStream & stream, KPIM::Identity & ident );
+ friend TQDataStream & operator<<( TQDataStream & stream, const KPIM::Identity & ident );
+ friend TQDataStream & operator>>( TQDataStream & stream, KPIM::Identity & ident );
public:
- typedef QValueList<Identity> List;
+ typedef TQValueList<Identity> List;
/** used for comparison */
bool operator==( const Identity & other ) const;
@@ -125,11 +125,11 @@ public:
}
/** Constructor */
- explicit Identity( const QString & id=QString::null,
- const QString & realName=QString::null,
- const QString & emailAddr=QString::null,
- const QString & organization=QString::null,
- const QString & replyToAddress=QString::null );
+ explicit Identity( const TQString & id=TQString::null,
+ const TQString & realName=TQString::null,
+ const TQString & emailAddr=TQString::null,
+ const TQString & organization=TQString::null,
+ const TQString & replyToAddress=TQString::null );
/** Destructor */
~Identity();
@@ -148,8 +148,8 @@ public:
bool mailingAllowed() const;
/** Identity/nickname for this collection */
- QString identityName() const { return mIdentity; }
- void setIdentityName( const QString & name );
+ TQString identityName() const { return mIdentity; }
+ void setIdentityName( const TQString & name );
/** @return whether this identity is the default identity */
bool isDefault() const { return mIsDefault; }
@@ -173,57 +173,57 @@ protected:
public:
/** Full name of the user */
- QString fullName() const { return mFullName; }
- void setFullName(const QString&);
+ TQString fullName() const { return mFullName; }
+ void setFullName(const TQString&);
/** The user's organization (optional) */
- QString organization() const { return mOrganization; }
- void setOrganization(const QString&);
+ TQString organization() const { return mOrganization; }
+ void setOrganization(const TQString&);
- KDE_DEPRECATED QCString pgpIdentity() const { return pgpEncryptionKey(); }
- KDE_DEPRECATED void setPgpIdentity( const QCString & key ) {
+ KDE_DEPRECATED TQCString pgpIdentity() const { return pgpEncryptionKey(); }
+ KDE_DEPRECATED void setPgpIdentity( const TQCString & key ) {
setPGPEncryptionKey( key );
setPGPSigningKey( key );
}
/** The user's OpenPGP encryption key */
- QCString pgpEncryptionKey() const { return mPGPEncryptionKey; }
- void setPGPEncryptionKey( const QCString & key );
+ TQCString pgpEncryptionKey() const { return mPGPEncryptionKey; }
+ void setPGPEncryptionKey( const TQCString & key );
/** The user's OpenPGP signing key */
- QCString pgpSigningKey() const { return mPGPSigningKey; }
- void setPGPSigningKey( const QCString & key );
+ TQCString pgpSigningKey() const { return mPGPSigningKey; }
+ void setPGPSigningKey( const TQCString & key );
/** The user's S/MIME encryption key */
- QCString smimeEncryptionKey() const { return mSMIMEEncryptionKey; }
- void setSMIMEEncryptionKey( const QCString & key );
+ TQCString smimeEncryptionKey() const { return mSMIMEEncryptionKey; }
+ void setSMIMEEncryptionKey( const TQCString & key );
/** The user's S/MIME signing key */
- QCString smimeSigningKey() const { return mSMIMESigningKey; }
- void setSMIMESigningKey( const QCString & key );
+ TQCString smimeSigningKey() const { return mSMIMESigningKey; }
+ void setSMIMESigningKey( const TQCString & key );
Kleo::CryptoMessageFormat preferredCryptoMessageFormat() const { return mPreferredCryptoMessageFormat; }
void setPreferredCryptoMessageFormat( Kleo::CryptoMessageFormat format ) { mPreferredCryptoMessageFormat = format; }
/** email address (without the user name - only name\@host) */
- QString emailAddr() const { return mEmailAddr; }
- void setEmailAddr(const QString&);
+ TQString emailAddr() const { return mEmailAddr; }
+ void setEmailAddr(const TQString&);
/** vCard to attach to outgoing emails */
- QString vCardFile() const { return mVCardFile; }
- void setVCardFile(const QString&);
+ TQString vCardFile() const { return mVCardFile; }
+ void setVCardFile(const TQString&);
/** email address in the format "username <name@host>" suitable
for the "From:" field of email messages. */
- QString fullEmailAddr() const;
+ TQString fullEmailAddr() const;
/** email address for the ReplyTo: field */
- QString replyToAddr() const { return mReplyToAddr; }
- void setReplyToAddr(const QString&);
+ TQString replyToAddr() const { return mReplyToAddr; }
+ void setReplyToAddr(const TQString&);
/** email addresses for the BCC: field */
- QString bcc() const { return mBcc; }
- void setBcc(const QString& aBcc) { mBcc = aBcc; }
+ TQString bcc() const { return mBcc; }
+ void setBcc(const TQString& aBcc) { mBcc = aBcc; }
void setSignature( const Signature & sig ) { mSignature = sig; }
Signature & signature() /* _not_ const! */ { return mSignature; }
@@ -238,12 +238,12 @@ protected:
bool signatureIsInline() const { return mSignature.type() == Signature::Inlined; }
/** name of the signature file (with path) */
- QString signatureFile() const { return mSignature.url(); }
- void setSignatureFile(const QString&);
+ TQString signatureFile() const { return mSignature.url(); }
+ void setSignatureFile(const TQString&);
/** inline signature */
- QString signatureInlineText() const { return mSignature.text();}
- void setSignatureInlineText(const QString&);
+ TQString signatureInlineText() const { return mSignature.text();}
+ void setSignatureInlineText(const TQString&);
/** Inline or signature from a file */
bool useSignatureFile() const { return signatureIsPlainFile() || signatureIsCommand(); }
@@ -254,35 +254,35 @@ public:
correct. So use this method to rectreive the contents of the
signature file. If @p prompt is false, no errors will be displayed
(useful for retries). */
- QString signatureText( bool * ok=0) const;
+ TQString signatureText( bool * ok=0) const;
/** The transport that is set for this identity. Used to link a
transport with an identity. */
- QString transport() const { return mTransport; }
- void setTransport(const QString&);
+ TQString transport() const { return mTransport; }
+ void setTransport(const TQString&);
/** The folder where sent messages from this identity will be
stored by default. */
- QString fcc() const { return mFcc; }
- void setFcc(const QString&);
+ TQString fcc() const { return mFcc; }
+ void setFcc(const TQString&);
/** The folder where draft messages from this identity will be
stored by default. */
- QString drafts() const { return mDrafts; }
- void setDrafts(const QString&);
+ TQString drafts() const { return mDrafts; }
+ void setDrafts(const TQString&);
/** The folder where template messages from this identity will be
stored by default. */
- QString templates() const { return mTemplates; }
- void setTemplates( const QString& );
+ TQString templates() const { return mTemplates; }
+ void setTemplates( const TQString& );
/** dictionary which should be used for spell checking */
- QString dictionary() const { return mDictionary; }
- void setDictionary( const QString& );
+ TQString dictionary() const { return mDictionary; }
+ void setDictionary( const TQString& );
/** a X-Face header for this identity */
- QString xface() const { return mXFace; }
- void setXFace( const QString& );
+ TQString xface() const { return mXFace; }
+ void setXFace( const TQString& );
bool isXFaceEnabled() const { return mXFaceEnabled; }
void setXFaceEnabled( const bool );
@@ -294,25 +294,25 @@ protected:
// isNull(), readConfig() and writeConfig() as well as operator<<
// and operator>> accordingly:
uint mUoid;
- QString mIdentity, mFullName, mEmailAddr, mOrganization;
- QString mReplyToAddr;
- QString mBcc;
- QString mVCardFile;
- QCString mPGPEncryptionKey, mPGPSigningKey, mSMIMEEncryptionKey, mSMIMESigningKey;
- QString mFcc, mDrafts, mTemplates, mTransport;
- QString mDictionary;
- QString mXFace;
+ TQString mIdentity, mFullName, mEmailAddr, mOrganization;
+ TQString mReplyToAddr;
+ TQString mBcc;
+ TQString mVCardFile;
+ TQCString mPGPEncryptionKey, mPGPSigningKey, mSMIMEEncryptionKey, mSMIMESigningKey;
+ TQString mFcc, mDrafts, mTemplates, mTransport;
+ TQString mDictionary;
+ TQString mXFace;
bool mXFaceEnabled;
Signature mSignature;
bool mIsDefault;
Kleo::CryptoMessageFormat mPreferredCryptoMessageFormat;
};
-KDE_EXPORT QDataStream & operator<<( QDataStream & stream, const KPIM::Signature & sig );
-KDE_EXPORT QDataStream & operator>>( QDataStream & stream, KPIM::Signature & sig );
+KDE_EXPORT TQDataStream & operator<<( TQDataStream & stream, const KPIM::Signature & sig );
+KDE_EXPORT TQDataStream & operator>>( TQDataStream & stream, KPIM::Signature & sig );
-KDE_EXPORT QDataStream & operator<<( QDataStream & stream, const KPIM::Identity & ident );
-KDE_EXPORT QDataStream & operator>>( QDataStream & stream, KPIM::Identity & ident );
+KDE_EXPORT TQDataStream & operator<<( TQDataStream & stream, const KPIM::Identity & ident );
+KDE_EXPORT TQDataStream & operator>>( TQDataStream & stream, KPIM::Identity & ident );
} // namespace KPIM