diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-19 18:46:47 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-19 18:46:47 -0600 |
commit | 32b66c9ae78f439199a6d281cc33218e57c5106d (patch) | |
tree | e92cf1651596c736188317c75eeb1ce5662d57bd /libkcal | |
parent | d29a9ff5829fa930c466b98cb93a4cbdd24b1fa2 (diff) | |
download | tdepim-32b66c9ae78f439199a6d281cc33218e57c5106d.tar.gz tdepim-32b66c9ae78f439199a6d281cc33218e57c5106d.zip |
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
Diffstat (limited to 'libkcal')
-rw-r--r-- | libkcal/convertqtopia.cpp | 12 | ||||
-rw-r--r-- | libkcal/tests/readandwrite.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testcalendar.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testcalselectdialog.cpp | 2 | ||||
-rw-r--r-- | libkcal/tests/testfields.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testincidence.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testrecurprevious.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testrecurrence.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testrecurrencetype.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testrecurson.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testresource.cpp | 6 | ||||
-rw-r--r-- | libkcal/tests/testvcalexport.cpp | 6 |
12 files changed, 37 insertions, 37 deletions
diff --git a/libkcal/convertqtopia.cpp b/libkcal/convertqtopia.cpp index 0e4b4352c..b1af7f8c2 100644 --- a/libkcal/convertqtopia.cpp +++ b/libkcal/convertqtopia.cpp @@ -53,12 +53,12 @@ int main(int argc,char **argv) KAboutData aboutData("convertqtopia",I18N_NOOP("TQtopia calendar file converter"),"0.1"); aboutData.addAuthor("Cornelius Schumacher", 0, "schumacher@kde.org"); - KCmdLineArgs::init(argc,argv,&aboutData); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init(argc,argv,&aboutData); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app; - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); bool sourceTQtopia = false; bool sourceIcalendar = false; @@ -72,16 +72,16 @@ int main(int argc,char **argv) } if ( sourceTQtopia && sourceIcalendar ) { - KCmdLineArgs::usage( + TDECmdLineArgs::usage( i18n("Please specify only one of the conversion options.") ); } if ( !sourceTQtopia && !sourceIcalendar ) { - KCmdLineArgs::usage( + TDECmdLineArgs::usage( i18n("You have to specify one conversion option.") ); } if ( args->count() != 1 ) { - KCmdLineArgs::usage( i18n("Error: No input file.") ); + TDECmdLineArgs::usage( i18n("Error: No input file.") ); } TQString inputFile = args->arg( 0 ); diff --git a/libkcal/tests/readandwrite.cpp b/libkcal/tests/readandwrite.cpp index 076f55cbf..1f53a450d 100644 --- a/libkcal/tests/readandwrite.cpp +++ b/libkcal/tests/readandwrite.cpp @@ -47,12 +47,12 @@ static const KCmdLineOptions options[] = int main( int argc, char **argv ) { KAboutData aboutData( "readandwrite", "Read and Write Calendar", "0.1" ); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app( false, false ); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if ( args->count() != 2 ) { args->usage( "Wrong number of arguments." ); diff --git a/libkcal/tests/testcalendar.cpp b/libkcal/tests/testcalendar.cpp index 7d781fc54..e6eb6973b 100644 --- a/libkcal/tests/testcalendar.cpp +++ b/libkcal/tests/testcalendar.cpp @@ -38,13 +38,13 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { KAboutData aboutData("testcalendar","Test Calendar","0.1"); - KCmdLineArgs::init(argc,argv,&aboutData); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init(argc,argv,&aboutData); + TDECmdLineArgs::addCmdLineOptions( options ); // KApplication app( false, false ); KApplication app; - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); Q_UNUSED( args ); diff --git a/libkcal/tests/testcalselectdialog.cpp b/libkcal/tests/testcalselectdialog.cpp index 5c5130450..65004d34f 100644 --- a/libkcal/tests/testcalselectdialog.cpp +++ b/libkcal/tests/testcalselectdialog.cpp @@ -27,7 +27,7 @@ using namespace KCal; int main( int argc, char **argv ) { - KCmdLineArgs::init( argc, argv, "testcalselectdialog", 0, + TDECmdLineArgs::init( argc, argv, "testcalselectdialog", 0, "KCalSelectDialogTest", "1.0", "kcalselectedialog test app" ); KApplication app; diff --git a/libkcal/tests/testfields.cpp b/libkcal/tests/testfields.cpp index 6e63faa98..e24baec54 100644 --- a/libkcal/tests/testfields.cpp +++ b/libkcal/tests/testfields.cpp @@ -40,13 +40,13 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { KAboutData aboutData("testfields","Test calendar fields read/write","0.1"); - KCmdLineArgs::init(argc,argv,&aboutData); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init(argc,argv,&aboutData); + TDECmdLineArgs::addCmdLineOptions( options ); // KApplication app( false, false ); KApplication app; - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); Q_UNUSED(args) diff --git a/libkcal/tests/testincidence.cpp b/libkcal/tests/testincidence.cpp index 9f84cc28c..c6a5ef572 100644 --- a/libkcal/tests/testincidence.cpp +++ b/libkcal/tests/testincidence.cpp @@ -40,12 +40,12 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { KAboutData aboutData("testincidence","Test Incidence","0.1"); - KCmdLineArgs::init(argc,argv,&aboutData); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init(argc,argv,&aboutData); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app( false, false ); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); bool verbose = false; if ( args->isSet( "verbose" ) ) verbose = true; diff --git a/libkcal/tests/testrecurprevious.cpp b/libkcal/tests/testrecurprevious.cpp index 4fc87b9ea..3d2216b7e 100644 --- a/libkcal/tests/testrecurprevious.cpp +++ b/libkcal/tests/testrecurprevious.cpp @@ -50,12 +50,12 @@ static const KCmdLineOptions options[] = int main( int argc, char **argv ) { KAboutData aboutData( "testrecurrencenew", "Load recurrence rules with the new class and print out debug messages", "0.1" ); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app( false, false ); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if ( args->count() < 1 ) { args->usage( "Wrong number of arguments." ); diff --git a/libkcal/tests/testrecurrence.cpp b/libkcal/tests/testrecurrence.cpp index 6499abfc0..14d470cf3 100644 --- a/libkcal/tests/testrecurrence.cpp +++ b/libkcal/tests/testrecurrence.cpp @@ -50,12 +50,12 @@ static const KCmdLineOptions options[] = int main( int argc, char **argv ) { KAboutData aboutData( "testrecurrencenew", "Load recurrence rules with the new class and print out debug messages", "0.1" ); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app( false, false ); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if ( args->count() < 1 ) { args->usage( "Wrong number of arguments." ); diff --git a/libkcal/tests/testrecurrencetype.cpp b/libkcal/tests/testrecurrencetype.cpp index 6499abfc0..14d470cf3 100644 --- a/libkcal/tests/testrecurrencetype.cpp +++ b/libkcal/tests/testrecurrencetype.cpp @@ -50,12 +50,12 @@ static const KCmdLineOptions options[] = int main( int argc, char **argv ) { KAboutData aboutData( "testrecurrencenew", "Load recurrence rules with the new class and print out debug messages", "0.1" ); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app( false, false ); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if ( args->count() < 1 ) { args->usage( "Wrong number of arguments." ); diff --git a/libkcal/tests/testrecurson.cpp b/libkcal/tests/testrecurson.cpp index e8e33e2b4..cd5edf76b 100644 --- a/libkcal/tests/testrecurson.cpp +++ b/libkcal/tests/testrecurson.cpp @@ -50,12 +50,12 @@ static const KCmdLineOptions options[] = int main( int argc, char **argv ) { KAboutData aboutData( "testrecurson", "Tests all dates from 2002 to 2010 to test if the event recurs on each individual date. This is meant to test the Recurrence::recursOn method for errors.", "0.1" ); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app( false, false ); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if ( args->count() < 1 ) { args->usage( "Wrong number of arguments." ); diff --git a/libkcal/tests/testresource.cpp b/libkcal/tests/testresource.cpp index bab2cf017..6fc8fc2a4 100644 --- a/libkcal/tests/testresource.cpp +++ b/libkcal/tests/testresource.cpp @@ -60,11 +60,11 @@ int main(int argc, char *argv[]) setenv( "TDE_FORK_SLAVES", "yes", true ); // simpler, for the final cleanup KApplication::disableAutoDcopRegistration(); - KCmdLineArgs::init(argc,argv,"testresource", 0, 0, 0, 0); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init(argc,argv,"testresource", 0, 0, 0, 0); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app; - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TQString type = TQString(); if ( args->getOption( "resource" ) ) type = TQString::fromLocal8Bit( args->getOption( "resource" ) ); diff --git a/libkcal/tests/testvcalexport.cpp b/libkcal/tests/testvcalexport.cpp index 7f8b61c09..16a15afaf 100644 --- a/libkcal/tests/testvcalexport.cpp +++ b/libkcal/tests/testvcalexport.cpp @@ -51,12 +51,12 @@ static const KCmdLineOptions options[] = int main( int argc, char **argv ) { KAboutData aboutData("testvcalexport", "Part of LibKCal's test suite. Checks if export to vCalendar still works correctly.", "0.1"); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app( false, false ); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if ( args->count() != 2 ) { args->usage( "Wrong number of arguments." ); |