diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libkmime/tests/test_mdn.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkmime/tests/test_mdn.cpp')
-rw-r--r-- | libkmime/tests/test_mdn.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libkmime/tests/test_mdn.cpp b/libkmime/tests/test_mdn.cpp index fa9290f20..dd1702bb1 100644 --- a/libkmime/tests/test_mdn.cpp +++ b/libkmime/tests/test_mdn.cpp @@ -52,31 +52,31 @@ int main( int argc, char * argv[] ) { long_options, &option_index ); if ( c == -1 ) break; -#define EQUALS(x) !qstricmp( optarg, x ) +#define ETQUALS(x) !qstricmp( optarg, x ) switch ( c ) { case 'a': // --action-mode - if ( EQUALS( "manual-action" ) ) + if ( ETQUALS( "manual-action" ) ) actionMode = ManualAction; - else if ( EQUALS( "automatic-action" ) ) + else if ( ETQUALS( "automatic-action" ) ) actionMode = AutomaticAction; else usage( "unknown action mode!" ); break; case 'd': // --disposition-type - if ( EQUALS( "displayed" ) ) + if ( ETQUALS( "displayed" ) ) dispositionType = Displayed; - else if ( EQUALS( "deleted" ) ) + else if ( ETQUALS( "deleted" ) ) dispositionType = Deleted; - else if ( EQUALS( "dispatched" ) ) + else if ( ETQUALS( "dispatched" ) ) dispositionType = Dispatched; - else if ( EQUALS( "processed" ) ) + else if ( ETQUALS( "processed" ) ) dispositionType = Processed; - else if ( EQUALS( "denied" ) ) + else if ( ETQUALS( "denied" ) ) dispositionType = Denied; - else if ( EQUALS( "failed" ) ) + else if ( ETQUALS( "failed" ) ) dispositionType = Failed; else usage( "unknown disposition type!" ); @@ -97,15 +97,15 @@ int main( int argc, char * argv[] ) { break; case 'm': // --disposition-modifier - if ( EQUALS( "error" ) ) + if ( ETQUALS( "error" ) ) dispositionModifiers << Error; - else if ( EQUALS( "warning" ) ) + else if ( ETQUALS( "warning" ) ) dispositionModifiers << Warning; - else if ( EQUALS( "superseded" ) ) + else if ( ETQUALS( "superseded" ) ) dispositionModifiers << Superseded; - else if ( EQUALS( "expired" ) ) + else if ( ETQUALS( "expired" ) ) dispositionModifiers << Expired; - else if ( EQUALS( "mailbox-terminated" ) ) + else if ( ETQUALS( "mailbox-terminated" ) ) dispositionModifiers << MailboxTerminated; else usage( "unknwon disposition modifier!" ); @@ -119,9 +119,9 @@ int main( int argc, char * argv[] ) { break; case 's': // --sending-mode - if ( EQUALS( "MDN-sent-manually" ) ) + if ( ETQUALS( "MDN-sent-manually" ) ) sendingMode = SentManually; - else if ( EQUALS( "MDN-sent-automatically" ) ) + else if ( ETQUALS( "MDN-sent-automatically" ) ) sendingMode = SentAutomatically; else usage( "unknown sending mode" ); |