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 --- kmail/kmsearchpattern.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kmail/kmsearchpattern.cpp') diff --git a/kmail/kmsearchpattern.cpp b/kmail/kmsearchpattern.cpp index 3d97a2b31..dc2cc4a1c 100644 --- a/kmail/kmsearchpattern.cpp +++ b/kmail/kmsearchpattern.cpp @@ -33,7 +33,7 @@ using KMail::FilterLog; #include static const char* funcConfigNames[] = - { "contains", "contains-not", "equals", "not-equal", "regexp", + { "tqcontains", "tqcontains-not", "equals", "not-equal", "regexp", "not-regexp", "greater", "less-or-equal", "less", "greater-or-equal", "is-in-addressbook", "is-not-in-addressbook" , "is-in-category", "is-not-in-category", "has-attachment", "has-no-attachment"}; @@ -294,11 +294,11 @@ bool KMSearchRuleString::matches( const DwString & aStr, KMMessage & msg, static const DwBoyerMoore to("\nTo: "); static const DwBoyerMoore cc("\nCc: "); static const DwBoyerMoore bcc("\nBcc: "); - // "contains" "foo" is true if any of the fields contains + // "tqcontains" "foo" is true if any of the fields tqcontains // "foo", while "does not contain" "foo" is true if none - // of the fields contains "foo" + // of the fields tqcontains "foo" if ( ( function() & 1 ) == 0 ) { - // positive function, e.g. "contains" + // positive function, e.g. "tqcontains" rc = ( matches( aStr, msg, &to, 2 ) || matches( aStr, msg, &cc, 2 ) || matches( aStr, msg, &bcc, 3 ) ); @@ -357,7 +357,7 @@ bool KMSearchRuleString::matches( const KMMessage * msg ) const msgContents = msg->headerAsString(); logContents = false; } else if ( field() == "" ) { - // (mmutz 2001-11-05) hack to fix " !contains foo" to + // (mmutz 2001-11-05) hack to fix " !tqcontains foo" to // meet user's expectations. See FAQ entry in KDE 2.2.2's KMail // handbook if ( function() == FuncEquals || function() == FuncNotEqual ) @@ -455,7 +455,7 @@ bool KMSearchRuleString::matchesInternal( const TQString & msgContents ) const for( TQStringList::ConstIterator it = addressList.begin(); ( it != addressList.end() ); ++it ) { - if ( !stdAb->findByEmail( KPIM::getEmailAddress( *it ) ).isEmpty() ) + if ( !stdAb->tqfindByEmail( KPIM::getEmailAddress( *it ) ).isEmpty() ) return true; } return false; @@ -468,7 +468,7 @@ bool KMSearchRuleString::matchesInternal( const TQString & msgContents ) const for( TQStringList::ConstIterator it = addressList.begin(); ( it != addressList.end() ); ++it ) { - if ( stdAb->findByEmail( KPIM::getEmailAddress( *it ) ).isEmpty() ) + if ( stdAb->tqfindByEmail( KPIM::getEmailAddress( *it ) ).isEmpty() ) return true; } return false; @@ -481,7 +481,7 @@ bool KMSearchRuleString::matchesInternal( const TQString & msgContents ) const for( TQStringList::ConstIterator it = addressList.begin(); it != addressList.end(); ++it ) { - KABC::Addressee::List addresses = stdAb->findByEmail( KPIM::getEmailAddress( *it ) ); + KABC::Addressee::List addresses = stdAb->tqfindByEmail( KPIM::getEmailAddress( *it ) ); for ( KABC::Addressee::List::Iterator itAd = addresses.begin(); itAd != addresses.end(); ++itAd ) if ( (*itAd).hasCategory(category) ) @@ -498,7 +498,7 @@ bool KMSearchRuleString::matchesInternal( const TQString & msgContents ) const for( TQStringList::ConstIterator it = addressList.begin(); it != addressList.end(); ++it ) { - KABC::Addressee::List addresses = stdAb->findByEmail( KPIM::getEmailAddress( *it ) ); + KABC::Addressee::List addresses = stdAb->tqfindByEmail( KPIM::getEmailAddress( *it ) ); for ( KABC::Addressee::List::Iterator itAd = addresses.begin(); itAd != addresses.end(); ++itAd ) if ( (*itAd).hasCategory(category) ) @@ -550,7 +550,7 @@ bool KMSearchRuleNumerical::matches( const KMMessage * msg ) const } else if ( field() == "" ) { TQDateTime msgDateTime; msgDateTime.setTime_t( msg->date() ); - numericalMsgContents = msgDateTime.daysTo( TQDateTime::currentDateTime() ); + numericalMsgContents = msgDateTime.daysTo( TQDateTime::tqcurrentDateTime() ); numericalValue = contents().toInt(); msgContents.setNum( numericalMsgContents ); } @@ -775,7 +775,7 @@ bool KMSearchPattern::matches( const DwString & aStr, bool ignoreBody ) const } } -bool KMSearchPattern::matches( Q_UINT32 serNum, bool ignoreBody ) const +bool KMSearchPattern::matches( TQ_UINT32 serNum, bool ignoreBody ) const { if ( isEmpty() ) return true; -- cgit v1.2.1