summaryrefslogtreecommitdiffstats
path: root/libemailfunctions/email.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libemailfunctions/email.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libemailfunctions/email.h')
-rw-r--r--libemailfunctions/email.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/libemailfunctions/email.h b/libemailfunctions/email.h
index 493fa087c..5e5e665b9 100644
--- a/libemailfunctions/email.h
+++ b/libemailfunctions/email.h
@@ -22,8 +22,8 @@
#ifndef EMAIL_H
#define EMAIL_H
-#include <qstringlist.h>
-#include <qcstring.h>
+#include <tqstringlist.h>
+#include <tqcstring.h>
#include <kdepimmacros.h>
@@ -51,7 +51,7 @@ enum EmailParseResult { AddressOk, AddressEmpty, UnexpectedEnd,
// Helper functions
/** Split a comma separated list of email addresses. */
-KDE_EXPORT QStringList splitEmailAddrList(const QString& aStr);
+KDE_EXPORT TQStringList splitEmailAddrList(const TQString& aStr);
/** Splits the given address into display name, email address and comment.
Returns AddressOk if no error was encountered. Otherwise an appropriate
@@ -72,10 +72,10 @@ KDE_EXPORT QStringList splitEmailAddrList(const QString& aStr);
@return AddressOk if no error was encountered. Otherwise an
appropriate error code is returned.
*/
-KDE_EXPORT EmailParseResult splitAddress( const QCString & address,
- QCString & displayName,
- QCString & addrSpec,
- QCString & comment );
+KDE_EXPORT EmailParseResult splitAddress( const TQCString & address,
+ TQCString & displayName,
+ TQCString & addrSpec,
+ TQCString & comment );
/** This is an overloaded member function, provided for convenience. It behaves
essentially like the above function.
@@ -99,10 +99,10 @@ KDE_EXPORT EmailParseResult splitAddress( const QCString & address,
@return AddressOk if no error was encountered. Otherwise an
appropriate error code is returned.
*/
-KDE_EXPORT EmailParseResult splitAddress( const QString & address,
- QString & displayName,
- QString & addrSpec,
- QString & comment );
+KDE_EXPORT EmailParseResult splitAddress( const TQString & address,
+ TQString & displayName,
+ TQString & addrSpec,
+ TQString & comment );
/** Validates an email address in the form of "Joe User" <[email protected]>.
Returns AddressOk if no error was encountered. Otherwise an appropriate
@@ -113,7 +113,7 @@ KDE_EXPORT EmailParseResult splitAddress( const QString & address,
@return AddressOk if no error was encountered. Otherwise an
appropriate error code is returned.
*/
-KDE_EXPORT EmailParseResult isValidEmailAddress( const QString& aStr );
+KDE_EXPORT EmailParseResult isValidEmailAddress( const TQString& aStr );
/** Translate the enum errorcodes from emailParseResult
into i18n'd strings that can be used for msg boxes.
@@ -122,7 +122,7 @@ KDE_EXPORT EmailParseResult isValidEmailAddress( const QString& aStr );
@return An i18n ready string for use in msgboxes.
*/
-KDE_EXPORT QString emailParseResultToString( EmailParseResult errorCode );
+KDE_EXPORT TQString emailParseResultToString( EmailParseResult errorCode );
/** Validates an email address in the form of [email protected].
Returns true if no error was encountered.
@@ -134,7 +134,7 @@ KDE_EXPORT QString emailParseResultToString( EmailParseResult errorCode );
@return true if no error was encountered.
*/
-KDE_EXPORT bool isValidSimpleEmailAddress( const QString& aStr );
+KDE_EXPORT bool isValidSimpleEmailAddress( const TQString& aStr );
/** Returns a i18n string to be used in msgboxes
this allows for error messages to be the same
@@ -143,7 +143,7 @@ KDE_EXPORT bool isValidSimpleEmailAddress( const QString& aStr );
@return An i18n ready string for use in msgboxes.
*/
-KDE_EXPORT QString simpleEmailAddressErrorMsg();
+KDE_EXPORT TQString simpleEmailAddressErrorMsg();
/** Returns the pure email address (addr-spec in RFC2822) of the given address
(mailbox in RFC2822).
@@ -152,7 +152,7 @@ KDE_EXPORT QString simpleEmailAddressErrorMsg();
@return the addr-spec of @a address, i.e. [email protected] in the
example
*/
-KDE_EXPORT QCString getEmailAddress( const QCString & address );
+KDE_EXPORT TQCString getEmailAddress( const TQCString & address );
/** This is an overloaded member function, provided for convenience. It behaves
essentially like the above function.
@@ -164,7 +164,7 @@ KDE_EXPORT QCString getEmailAddress( const QCString & address );
@return the addr-spec of @a address, i.e. [email protected] in the
example
*/
-KDE_EXPORT QString getEmailAddress( const QString & address );
+KDE_EXPORT TQString getEmailAddress( const TQString & address );
/** Returns the pure email address (addr-spec in RFC2822) of the first
email address of a list of addresses.
@@ -173,7 +173,7 @@ KDE_EXPORT QString getEmailAddress( const QString & address );
@return the addr-spec of @a addresses, i.e. [email protected] in the
example
*/
-KDE_EXPORT QCString getFirstEmailAddress( const QCString & addresses );
+KDE_EXPORT TQCString getFirstEmailAddress( const TQCString & addresses );
/** This is an overloaded member function, provided for convenience. It behaves
essentially like the above function.
@@ -185,7 +185,7 @@ KDE_EXPORT QCString getFirstEmailAddress( const QCString & addresses );
@return the addr-spec of @a addresses, i.e. [email protected] in the
example
*/
-KDE_EXPORT QString getFirstEmailAddress( const QString & addresses );
+KDE_EXPORT TQString getFirstEmailAddress( const TQString & addresses );
/** Return email address and name from string. Examples:
* "Stefan Taferner <[email protected]>" returns "[email protected]"
@@ -195,14 +195,14 @@ KDE_EXPORT QString getFirstEmailAddress( const QString & addresses );
* mail are not empty: this does NOT tell you if mail contains a
* valid email address or just some rubbish.
*/
-KDE_EXPORT bool getNameAndMail(const QString& aStr, QString& name, QString& mail);
+KDE_EXPORT bool getNameAndMail(const TQString& aStr, TQString& name, TQString& mail);
/**
* Compare two email addresses. If matchName is false, it just checks
* the email address, and returns true if this matches. If matchName
* is true, both the name and the email must be the same.
*/
-KDE_EXPORT bool compareEmail( const QString& email1, const QString& email2,
+KDE_EXPORT bool compareEmail( const TQString& email1, const TQString& email2,
bool matchName );
/** Returns a normalized address built from the given parts. The normalized
@@ -217,16 +217,16 @@ KDE_EXPORT bool compareEmail( const QString& email1, const QString& email2,
@param comment a comment
@return a normalized address built from the given parts
*/
-KDE_EXPORT QString normalizedAddress( const QString & displayName,
- const QString & addrSpec,
- const QString & comment );
+KDE_EXPORT TQString normalizedAddress( const TQString & displayName,
+ const TQString & addrSpec,
+ const TQString & comment );
/** Decodes the punycode domain part of the given addr-spec if it's an IDN.
@param addrSpec a pure 7-bit email address (addr-spec in RFC2822)
@return the email address with Unicode domain
*/
-KDE_EXPORT QString decodeIDN( const QString & addrSpec );
+KDE_EXPORT TQString decodeIDN( const TQString & addrSpec );
/** Encodes the domain part of the given addr-spec in punycode if it's an
IDN.
@@ -234,7 +234,7 @@ KDE_EXPORT QString decodeIDN( const QString & addrSpec );
@param addrSpec a pure email address with Unicode domain
@return the email address with domain in punycode
*/
-KDE_EXPORT QString encodeIDN( const QString & addrSpec );
+KDE_EXPORT TQString encodeIDN( const TQString & addrSpec );
/** Normalizes all email addresses in the given list and decodes all IDNs.
@@ -242,17 +242,17 @@ KDE_EXPORT QString encodeIDN( const QString & addrSpec );
@return the email addresses in normalized form with Unicode IDNs
*/
-KDE_EXPORT QString normalizeAddressesAndDecodeIDNs( const QString & addresses );
+KDE_EXPORT TQString normalizeAddressesAndDecodeIDNs( const TQString & addresses );
/** Normalizes all email addresses in the given list and encodes all IDNs
in punycode.
*/
-KDE_EXPORT QString normalizeAddressesAndEncodeIDNs( const QString & str );
+KDE_EXPORT TQString normalizeAddressesAndEncodeIDNs( const TQString & str );
/** Add quote characters around the given string if it contains a
* character that makes that necessary, in an email name, such as ",".
*/
-KDE_EXPORT QString quoteNameIfNecessary( const QString& str );
+KDE_EXPORT TQString quoteNameIfNecessary( const TQString& str );
} // namespace