Rename KCmd to avoid conflicts with KDE4

pull/21/head
Timothy Pearson 11 years ago
parent 28bf0c14b5
commit 02fa17d6dd

@ -30,14 +30,14 @@
namespace Akregator {
static KCmdLineOptions akregator_options[] =
static TDECmdLineOptions akregator_options[] =
{
{ "a", 0, 0 },
{ "addfeed <url>", I18N_NOOP( "Add a feed with the given URL" ), 0},
{ "g", 0, 0 },
{ "group <groupname>", I18N_NOOP( "When adding feeds, place them in this group" ), I18N_NOOP("Imported") },
{ "hide-mainwindow", I18N_NOOP( "Hide main window on startup" ), 0},
KCmdLineLastOption
TDECmdLineLastOption
};
}

@ -9,10 +9,10 @@
using namespace RSS;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+url", I18N_NOOP("URL of feed"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -79,8 +79,8 @@ int main( int argc, char** argv )
AboutData aboutData;
TDECmdLineArgs::init(argc, argv, &aboutData);
static const KCmdLineOptions options[] = {
KCmdLineLastOption// End of options.
static const TDECmdLineOptions options[] = {
TDECmdLineLastOption// End of options.
};
TDECmdLineArgs::addCmdLineOptions( options );
KWatchGnuPGApplication::addCmdLineOptions();

@ -51,11 +51,11 @@ int main( int argc, char** argv )
AboutData aboutData;
TDECmdLineArgs::init(argc, argv, &aboutData);
static const KCmdLineOptions options[] = {
static const TDECmdLineOptions options[] = {
{ "external" , I18N_NOOP("Search for external certificates initially"), 0 },
{ "query " , I18N_NOOP("Initial query string"), 0 },
{ "import-certificate ", I18N_NOOP("Name of certificate file to import"), 0 },
KCmdLineLastOption// End of options.
TDECmdLineLastOption// End of options.
};
TDECmdLineArgs::addCmdLineOptions( options );

@ -30,14 +30,14 @@ static const char appName[] = "kabc2mutt";
static const char programName[] = I18N_NOOP( "kabc2mutt" );
static const char description[] = I18N_NOOP( "kabc - mutt converter" );
static KCmdLineOptions k2moptions[] =
static TDECmdLineOptions k2moptions[] =
{
{ "query <substring>", I18N_NOOP( "Only show contacts where name or address matches <substring>" ), 0 },
{ "format <format>", I18N_NOOP( "Default format is 'alias'. 'query' returns email<tab>name<tab>, as needed by mutt's query_command" ), "alias" },
{ "alternate-key-format", I18N_NOOP( "Default key format is 'JohDoe', this option turns it into 'jdoe'" ), 0 },
{ "ignore-case", I18N_NOOP( "Make queries case insensitive" ), 0 },
{ "all-addresses", I18N_NOOP( "Return all mail addresses, not just the preferred one" ), 0},
KCmdLineLastOption
TDECmdLineLastOption
};

@ -30,10 +30,10 @@
#include <kabc/stdaddressbook.h>
#include <libtdepim/distributionlist.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "disable-autostart", "Disable automatic startup on login", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
void convertDistributionLists()

@ -27,7 +27,7 @@
#include <kcmdlineargs.h>
#include <klocale.h>
static KCmdLineOptions kaddressbook_options[] =
static TDECmdLineOptions kaddressbook_options[] =
{
{ "a", 0 , 0 },
{ "addr <email>", I18N_NOOP( "Shows contact editor with given email address" ), 0 },
@ -36,7 +36,7 @@ static KCmdLineOptions kaddressbook_options[] =
{ "new-contact", I18N_NOOP( "Launches editor for the new contact" ), 0 },
{ "document <file>", I18N_NOOP( "Work on given file" ), 0 },
{ "+[URL]", I18N_NOOP( "Import the given vCard" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
#endif /* KADDRESSBOOK_OPTIONS_H */

@ -31,10 +31,10 @@
#include "adapp.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "autostart", "", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char** argv)

@ -31,7 +31,7 @@
#define PROGRAM_NAME "kalarm"
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "a", 0, 0 },
{ "ack-confirm", I18N_NOOP("Prompt for confirmation when alarm is acknowledged"), 0 },
@ -101,7 +101,7 @@ static KCmdLineOptions options[] =
{ "volume <percent>", I18N_NOOP("Volume to play audio file"), 0 },
#endif
{ "+[message]", I18N_NOOP("Message text to display"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -44,13 +44,13 @@ static const char description[] =
static const char version[] = "0.5.1";
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "terminal", I18N_NOOP("Show terminal window"), 0 },
{ "mobilegui", I18N_NOOP("Show mobile GUI"), 0 },
{ "nogui", I18N_NOOP("Do not show GUI"), 0 },
{ "+[profile]", I18N_NOOP("Filename of command profile file"), 0 },
KCmdLineLastOption // End of options.
TDECmdLineLastOption // End of options.
};
void initModem(Modem *modem)

@ -19,10 +19,10 @@ namespace
}
}
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+file", I18N_NOOP( "The iCalendar file to open" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char *argv[] )

@ -27,9 +27,9 @@
#include "mainwidget.h"
#include "mainwindow.h"
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -5,7 +5,7 @@
#include <kcmdlineargs.h>
#include <klocale.h>
KCmdLineOptions kmail_options[] =
TDECmdLineOptions kmail_options[] =
{
{ "s", 0 , 0 },
{ "subject <subject>", I18N_NOOP("Set subject of message"), 0 },
@ -25,7 +25,7 @@ KCmdLineOptions kmail_options[] =
"attach the file the 'URL' points "
"to"), 0 },
// { "+[file]", I18N_NOOP("Show message from 'file'"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
#endif

@ -21,9 +21,9 @@
#include "kmailcvt.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char *argv[])

@ -29,10 +29,10 @@ static const char description[] =
static const char version[] = "0.1";
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "minimized", I18N_NOOP( "Minimize on startup to system tray" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char **argv)

@ -20,10 +20,10 @@
#include <kcmdlineargs.h>
#include <klocale.h>
static KCmdLineOptions knode_options[] =
static TDECmdLineOptions knode_options[] =
{
{ "+[url]", I18N_NOOP("A 'news://server/group' URL"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
#endif /* KNODE_OPTIONS_H */

@ -46,7 +46,7 @@
#include <iostream>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "c", 0, 0 },
{ "create-class", I18N_NOOP("Create class"), 0 },
@ -70,7 +70,7 @@ static const KCmdLineOptions options[] =
{ "singleton", I18N_NOOP("Create a singleton class"), 0 },
{ "protocol", I18N_NOOP("tdeioslave protocol"), 0 },
{ "+[filename]", I18N_NOOP("Source code file name"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
void addPropertyFunctions( TQString &out, const TQString &type,
@ -403,10 +403,10 @@ int create( TDECmdLineArgs *args )
file.addInclude( "kcmdlineargs" );
KODE::Code code;
code += "static const KCmdLineOptions options[] =";
code += "static const TDECmdLineOptions options[] =";
code += "{";
code += " { \"verbose\", \"Verbose output\", 0 },";
code += " KCmdLineLastOption";
code += " TDECmdLineLastOption";
code += "};";
file.addFileCode( code );

@ -29,10 +29,10 @@
#include "loader.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+wsdl", I18N_NOOP( "Location of WSDL file" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -31,14 +31,14 @@
#include <tqfile.h>
#include <tqtimer.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "d", 0, 0 },
{ "directory <dir>", I18N_NOOP( "Directory to generate files in" ), "." },
{ "n", 0, 0 },
{ "namespace <namespace>", I18N_NOOP( "Namespace of the created classes" ), "." },
{ "+wsdl", I18N_NOOP( "WSDL file" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -44,7 +44,7 @@
#include <iostream>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "d", 0, 0 },
{ "directory <dir>", I18N_NOOP("Directory to generate files in"), "." },
@ -52,7 +52,7 @@ static const KCmdLineOptions options[] =
{ "external-parser", I18N_NOOP("Generate parser in separate source file"),
0 },
{ "custom-parser", I18N_NOOP("Generate parser customized for schema"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -80,7 +80,7 @@ static const char progDesc[] = "A command line interface to KDE calendars";
static const char progURL[] = "pim.kde.org/components/konsolekalendar.php";
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "verbose",
I18N_NOOP( "Print helpful runtime messages" ), 0 },
@ -162,7 +162,7 @@ static KCmdLineOptions options[] =
I18N_NOOP( "For more information visit the program home page at:\n"
" http://pim.kde.org/components/konsolekalendar.php" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char *argv[] )

@ -183,14 +183,14 @@ void UniqueAppWatcher::unregisteredFromDCOP( const TQCString& appId )
}
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "module <module>", I18N_NOOP( "Start with a specific Kontact module" ), 0 },
{ "iconify", I18N_NOOP( "Start in iconified (minimized) mode" ), 0 },
{ "list", I18N_NOOP( "List all possible modules and exit" ), 0 },
{ "listprofiles", I18N_NOOP( "List all possible profiles and exit" ), 0 },
{ "profile <profile>", I18N_NOOP( "Start with a specific Kontact profile" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
void Kontact::UniqueAppHandler::loadKontactCommandLineOptions()

@ -54,7 +54,7 @@ class MyApp : public KUniqueApplication
static const char korgacVersion[] = "0.9";
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ 0, 0, 0 }
};

@ -29,7 +29,7 @@
#include <kcmdlineargs.h>
#include <klocale.h>
static const KCmdLineOptions korganizer_options[] =
static const TDECmdLineOptions korganizer_options[] =
{
{ "i", 0, 0 },
{ "import", I18N_NOOP("Import the given calendars as new resources into the default calendar"), 0 },
@ -38,7 +38,7 @@ static const KCmdLineOptions korganizer_options[] =
{ "o", 0, 0 },
{ "open", I18N_NOOP("Open the given calendars in a new window"), 0 },
{ "+[calendars]", I18N_NOOP("Calendar files or urls. Unless -i, -o or -m is explicitly specified, the user will be asked whether to import, merge or open in a separate window."), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
#endif /* KORGANIZER_OPTIONS_H */

@ -26,10 +26,10 @@ static const char description[] =
I18N_NOOP("Viewer for mail attachments using TNEF format");
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+[file]", I18N_NOOP("An optional argument 'file'"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
// INSERT YOUR COMMANDLINE OPTIONS HERE
};

@ -36,7 +36,7 @@
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"q", 0, 0 },
{"qtopia2icalendar", I18N_NOOP("Convert TQtopia calendar file to iCalendar"), 0 },
@ -45,7 +45,7 @@ static const KCmdLineOptions options[] =
{"o", 0, 0},
{"output <file>", I18N_NOOP("Output file"), 0 },
{"+input", I18N_NOOP("Input file"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -36,12 +36,12 @@ extern "C" {
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "verbose", "Verbose output", 0 },
{ "+input", "Name of input file", 0 },
{ "+output", "Name of output file", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -29,10 +29,10 @@
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -31,10 +31,10 @@
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -31,10 +31,10 @@
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -38,12 +38,12 @@ extern "C" {
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "verbose", "Verbose output", 0 },
{ "+input", "Name of input file", 0 },
{ "[+output]", "optional name of output file for the recurrence dates", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -38,12 +38,12 @@ extern "C" {
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "verbose", "Verbose output", 0 },
{ "+input", "Name of input file", 0 },
{ "[+output]", "optional name of output file for the recurrence dates", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -38,12 +38,12 @@ extern "C" {
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "verbose", "Verbose output", 0 },
{ "+input", "Name of input file", 0 },
{ "[+output]", "optional name of output file for the recurrence dates", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -38,12 +38,12 @@ extern "C" {
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "verbose", "Verbose output", 0 },
{ "+input", "Name of input file", 0 },
{ "[+output]", "optional name of output file for the recurrence dates", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -45,11 +45,11 @@
#include "icalformat.h"
#include "event.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "resource <type>", "The resource to test", 0 },
{ "configfile <file>", "Location of a config file for the resource", 0 },
KCmdLineLastOption // End of options
TDECmdLineLastOption // End of options
};
int main(int argc, char *argv[])

@ -40,12 +40,12 @@ extern "C" {
using namespace KCal;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "verbose", "Verbose output", 0 },
{ "+input", "Name of input file", 0 },
{ "+output", "Name of output file", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -31,10 +31,10 @@
#include <fcntl.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char** argv )
{

@ -75,10 +75,10 @@ class TestConfigWizard : public TDEConfigWizard
TQCheckBox *mBreakKMailCheckBox;
};
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -32,10 +32,10 @@
#include <iostream>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+featurelist", "Name of featurelist XML file", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
void displayFeature( Feature *f )

@ -32,10 +32,10 @@
#include <iostream>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+featurelist", "Name of featurelist XML file", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
void displayFeature( Feature *f )

@ -30,7 +30,7 @@ class ResourceMemory : public ResourceCached
}
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "s", 0, 0 },
{ "server <hostname>", I18N_NOOP("Server"), 0 },
@ -41,7 +41,7 @@ static const KCmdLineOptions options[] =
{ "f", 0, 0 },
{ "freebusy-user <string>", I18N_NOOP("Free/Busy user name"), 0 },
{ "addressbook-id <string>", I18N_NOOP("Addressbook identifier"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -27,9 +27,9 @@
static const char description[] = I18N_NOOP("Configuration Tool for Scalix Groupware Konnector");
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -38,12 +38,12 @@ extern "C" {
KDE_EXPORT int kdemain( int argc, char **argv );
}
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+protocol", I18N_NOOP( "Protocol name" ), 0 },
{ "+pool", I18N_NOOP( "Socket name" ), 0 },
{ "+app", I18N_NOOP( "Socket name" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int kdemain( int argc, char **argv )

@ -27,10 +27,10 @@
#include <tqpushbutton.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -26,10 +26,10 @@
#include <kcmdlineargs.h>
#include <kglobal.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -27,10 +27,10 @@
#include <kglobal.h>
#include <klocale.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -27,10 +27,10 @@
#include <kglobal.h>
#include <klocale.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -28,10 +28,10 @@
#include <kglobal.h>
#include <klocale.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -6,10 +6,10 @@
#include "groupwarewizard.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "serverType <type>", "The server type", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -28,10 +28,10 @@
#include <kglobal.h>
#include <klocale.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

@ -27,10 +27,10 @@
#include <kglobal.h>
#include <klocale.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"verbose", "Verbose output", 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc,char **argv)

Loading…
Cancel
Save