From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libemailfunctions/email.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libemailfunctions/email.cpp') diff --git a/libemailfunctions/email.cpp b/libemailfunctions/email.cpp index 0f6b8361..8390431c 100644 --- a/libemailfunctions/email.cpp +++ b/libemailfunctions/email.cpp @@ -300,7 +300,7 @@ KPIM::EmailParseResult KPIM::isValidEmailAddress( const TQString& aStr ) bool tooManyAtsFlag = false; - int atCount = aStr.contains('@'); + int atCount = aStr.tqcontains('@'); if ( atCount > 1 ) { tooManyAtsFlag = true;; } else if ( atCount == 0 ) { @@ -463,7 +463,7 @@ TQString KPIM::emailParseResultToString( EmailParseResult errorCode ) switch ( errorCode ) { case TooManyAts : return i18n("The email address you entered is not valid because it " - "contains more than one @. " + "tqcontains more than one @. " "You will not create valid messages if you do not " "change your address."); case TooFewAts : @@ -481,18 +481,18 @@ TQString KPIM::emailParseResultToString( EmailParseResult errorCode ) "does not contain a domain part."); case UnbalancedParens : return i18n("The email address you entered is not valid because it " - "contains unclosed comments/brackets."); + "tqcontains unclosed comments/brackets."); case AddressOk : return i18n("The email address you entered is valid."); case UnclosedAngleAddr : return i18n("The email address you entered is not valid because it " - "contains an unclosed anglebracket."); + "tqcontains an unclosed anglebracket."); case UnopenedAngleAddr : return i18n("The email address you entered is not valid because it " - "contains an unopened anglebracket."); + "tqcontains an unopened anglebracket."); case UnexpectedComma : return i18n("The email address you have entered is not valid because it " - "contains an unexpected comma."); + "tqcontains an unexpected comma."); case UnexpectedEnd : return i18n("The email address you entered is not valid because it ended " "unexpectedly, this probably means you have used an escaping type " @@ -500,17 +500,17 @@ TQString KPIM::emailParseResultToString( EmailParseResult errorCode ) "address."); case UnbalancedQuote : return i18n("The email address you entered is not valid because it " - "contains quoted text which does not end."); + "tqcontains quoted text which does not end."); case NoAddressSpec : return i18n("The email address you entered is not valid because it " "does not seem to contain an actual email address, i.e. " "something of the form joe@kde.org."); case DisallowedChar : return i18n("The email address you entered is not valid because it " - "contains an illegal character."); + "tqcontains an illegal character."); case InvalidDisplayName : return i18n("The email address you have entered is not valid because it " - "contains an invalid displayname."); + "tqcontains an invalid displayname."); } return i18n("Unknown problem with email address"); } @@ -529,7 +529,7 @@ bool KPIM::isValidSimpleEmailAddress( const TQString& aStr ) TQString localPart = aStr.left( atChar ); bool tooManyAtsFlag = false; bool inQuotedString = false; - int atCount = localPart.contains( '@' ); + int atCount = localPart.tqcontains( '@' ); unsigned int strlen = localPart.length(); for ( unsigned int index=0; index < strlen; index++ ) { -- cgit v1.2.3