Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4

pull/21/head
Timothy Pearson 12 years ago
parent d29a9ff582
commit 32b66c9ae7

@ -59,11 +59,11 @@ void Tester::slotLoadingComplete( Loader *loader, Document doc, Status status )
int main( int argc, char **argv )
{
KAboutData aboutData( "testlibrss", "testlibrss", "0.1" );
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();
if ( args->count() != 1 ) args->usage();
Tester tester;

@ -53,7 +53,7 @@ int Application::newInstance()
{
DCOPRef akr("akregator", "AkregatorIface");
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( !mMainWindow ) {
mMainWindow = new Akregator::MainWindow();
@ -88,8 +88,8 @@ int Application::newInstance()
int main(int argc, char **argv)
{
Akregator::AboutData about;
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( Akregator::akregator_options );
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( Akregator::akregator_options );
KUniqueApplication::addCmdLineOptions();
Akregator::Application app;

@ -78,11 +78,11 @@ int main( int argc, char** argv )
{
AboutData aboutData;
KCmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::init(argc, argv, &aboutData);
static const KCmdLineOptions options[] = {
KCmdLineLastOption// End of options.
};
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KWatchGnuPGApplication::addCmdLineOptions();
#if 0

@ -43,7 +43,7 @@ using namespace std;
int main( int argc, char** argv ) {
KAboutData aboutData( "test_cryptoconfig", "CryptoConfig Test", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app( false, false );
Kleo::CryptoConfig * config = new QGpgMECryptoConfig();

@ -120,7 +120,7 @@ int main( int argc, char** argv ) {
return 1;
}
KAboutData aboutData( "test_gnupgprocessbase", "GnuPGProcessBase Test", "0.1" );
KCmdLineArgs::init( &aboutData );
TDECmdLineArgs::init( &aboutData );
KApplication app;
Kleo::GnuPGProcessBase gpg;

@ -101,7 +101,7 @@ int main( int argc, char** argv ) {
argc = 1; // hide from KDE
}
KAboutData aboutData( "test_jobs", "Signing Job Test", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
testSign();

@ -147,7 +147,7 @@ int main( int argc, char** argv ) {
argc = 1; // hide from KDE
}
KAboutData aboutData( "test_keygen", "KeyGenerationJob Test", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
KeyGenerator * keygen = new KeyGenerator( 0, "KeyGenerator top-level" );

@ -131,7 +131,7 @@ void CertListView::slotStart() {
int main( int argc, char** argv ) {
KAboutData aboutData( "test_keylister", "KeyLister Test", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
CertListView * clv = new CertListView( 0, "CertListView top-level" );

@ -45,7 +45,7 @@
int main( int argc, char ** argv ) {
KAboutData aboutData( "test_keyselectiondialog", "KeySelectionDialog Test", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
KGlobal::iconLoader()->addAppDir( "libkleopatra" );

@ -54,7 +54,7 @@ int main( int argc, char **argv )
setenv("TDEHOME", TQFile::encodeName( TQDir::homeDirPath() + "/.tde-unit-test" ), 1);
KAboutData aboutData( "test_verify", "verify job test", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app( false, false );
const TQString sigFileName = TDESRCDIR "/test.data.sig";

@ -50,18 +50,18 @@ int main( int argc, char** argv )
{
AboutData aboutData;
KCmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::init(argc, argv, &aboutData);
static const KCmdLineOptions 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.
};
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KGlobal::locale()->insertCatalogue( "libkleopatra" );
KGlobal::iconLoader()->addAppDir( "libkleopatra" );

@ -9,7 +9,7 @@
int main( int argc, char ** argv )
{
KAboutData aboutData("testkabc",I18N_NOOP("TestKabc"),"0.1");
KCmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;

@ -44,12 +44,12 @@ static KCmdLineOptions k2moptions[] =
int main( int argc, char **argv )
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init( argc, argv, appName, programName, description, version );
KCmdLineArgs::addCmdLineOptions( k2moptions );
TDECmdLineArgs::init( argc, argv, appName, programName, description, version );
TDECmdLineArgs::addCmdLineOptions( k2moptions );
KApplication app( false, false );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KABC2Mutt *object = new KABC2Mutt( 0 );

@ -75,12 +75,12 @@ int main( int argc, char **argv )
KAboutData aboutData( "kabcdistlistupdater", "Converter tool for distribution lists", "0.1" );
aboutData.addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
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->isSet( "disable-autostart" ) ) {
kdDebug() << "Disable autostart." << endl;

@ -1566,7 +1566,7 @@ void KABCore::slotContactsUpdated()
bool KABCore::handleCommandLine( KAddressBookIface* iface )
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQCString addrStr = args->getOption( "addr" );
TQCString uidStr = args->getOption( "uid" );

@ -63,7 +63,7 @@ int KAddressBookApp::newInstance()
mMainWin->restore( 1 );
}
} else {
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->isSet( "editor-only" ) ) {
if ( !mMainWin ) {
@ -113,8 +113,8 @@ int main( int argc, char *argv[] )
{
KLocale::setMainCatalogue( "kaddressbook" );
KCmdLineArgs::init( argc, argv, KABCore::createAboutData() );
KCmdLineArgs::addCmdLineOptions( kaddressbook_options );
TDECmdLineArgs::init( argc, argv, KABCore::createAboutData() );
TDECmdLineArgs::addCmdLineOptions( kaddressbook_options );
KUniqueApplication::addCmdLineOptions();
if ( !KAddressBookApp::start() )

@ -262,7 +262,7 @@ int KAlarmApp::newInstance()
if (!firstInstance || !isRestored())
{
TQString usage;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
// Use a 'do' loop which is executed only once to allow easy error exits.
// Errors use 'break' to skip to the end of the function.

@ -60,7 +60,7 @@ int AlarmDaemonApp::newInstance()
restored = true; // make sure we restore only once
else
{
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
autostart = args->isSet("autostart");
args->clear(); // free up memory
}

@ -47,8 +47,8 @@ int main(int argc, char** argv)
aboutData.addAuthor("Cornelius Schumacher", I18N_NOOP("Author"), "schumacher@kde.org");
aboutData.addAuthor("Preston Brown", I18N_NOOP("Original Author"), "pbrown@kde.org");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication::addCmdLineOptions();
KStartupInfo::disableAutoAppStartedSending();

@ -113,8 +113,8 @@ int main(int argc, char *argv[])
"Copyright 2001-2007, David Jarvie", 0, "http://www.astrojar.org.uk/kalarm");
aboutData.addAuthor("David Jarvie", 0, "software@astrojar.org.uk");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication::addCmdLineOptions();
if (!KAlarmApp::start())

@ -92,11 +92,11 @@ int main(int argc, char **argv)
"http://kandy.kde.org/");
about.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" );
about.addAuthor( "Heiko Falk", 0, "hf2@ls12.cs.uni-dortmund.de" );
KCmdLineArgs::init(argc,argv,&about);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc,argv,&about);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// register ourselves as a dcop client
app.dcopClient()->registerAs(app.name(),false);

@ -47,11 +47,11 @@ int main( int argc, char *argv[] )
aboutData.addAuthor( "Tomas Pospisek", 0, "tpo_deb@sourcepole.ch" );
aboutData.addAuthor( "Willi Richert", 0, "w.richert@gmx.net" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication myApp;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
MainWindow *mainWindow;
if ( args->count() > 0 )
@ -68,7 +68,7 @@ int main( int argc, char *argv[] )
}
else
{
icsfile = KCmdLineArgs::cwd() + "/" + icsfile;
icsfile = TDECmdLineArgs::cwd() + "/" + icsfile;
}
mainWindow = new MainWindow( icsfile );
}

@ -138,7 +138,7 @@ int main( int argc, char *argv[] )
// Copied from Till's test in libkcal. Not sure what this is for.
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc,argv,"testresourcelocking", 0, 0, 0, 0);
TDECmdLineArgs::init(argc,argv,"testresourcelocking", 0, 0, 0, 0);
KApplication app( false, false );

@ -36,8 +36,8 @@ int main( int argc, char **argv )
{
KAboutData *about = MainWidget::aboutData();
KCmdLineArgs::init( argc, argv, about );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, about );
TDECmdLineArgs::addCmdLineOptions( options );
KUniqueApplication::addCmdLineOptions();
KUniqueApplication::addCmdLineOptions();

@ -17,7 +17,7 @@ int main(int argc,char **argv)
KAboutData aboutData( "testKMailDCOP",
"Test for KMail DCOP interface", "0.0" );
KCmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::init(argc, argv, &aboutData);
KApplication app;
app.dcopClient()->attach();

@ -206,7 +206,7 @@ bool KMKernel::handleCommandLine( bool noArgsOpensReader )
bool calledWithSession = false; // for ignoring '-session foo'
// process args:
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (!args->getOption("subject").isNull())
{
subj = TQString::fromLocal8Bit(args->getOption("subject"));

@ -73,8 +73,8 @@ int main(int argc, char *argv[])
KMail::AboutData about;
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( kmail_options ); // Add kmail options
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( kmail_options ); // Add kmail options
if (!KMailApplication::start())
return 0;

@ -92,7 +92,7 @@ int main( int argc, char **argv )
{
KAboutData aboutData( "testrecipienteditor",
"Test Recipient Editor", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;

@ -38,8 +38,8 @@ int main(int argc, char *argv[])
aboutData.addAuthor("Laurence Anderson", I18N_NOOP("New GUI & cleanups"), "l.d.anderson@warwick.ac.uk");
aboutData.addCredit("Daniel Molkentin", I18N_NOOP("New GUI & cleanups"), "molkentin@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication a;
KMailCVT *kmailcvt = new KMailCVT();

@ -40,14 +40,14 @@ int main(int argc, char **argv)
KAboutData about("kmobile", I18N_NOOP("KMobile"), version, description,
KAboutData::License_GPL, "(C) 2003-2005 Helge Deller", 0, 0, "deller@kde.org");
about.addAuthor( "Helge Deller", 0, "deller@kde.org" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication app;
// register ourselves as a dcop client
app.dcopClient()->registerAs(app.name(), false);
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// see if we are starting with session management
if (app.isRestored())

@ -2199,7 +2199,7 @@ void KNMainWidget::editArticle()
bool KNMainWidget::handleCommandLine()
{
bool doneSomething = false;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->count()>0) {
KURL url=args->url(0); // we take only one URL
openURL(url);

@ -29,8 +29,8 @@ int main(int argc, char* argv[])
{
AboutData aboutData;
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( knode_options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( knode_options );
KUniqueApplication::addCmdLineOptions();
if (!KNApplication::start())

@ -117,7 +117,7 @@ int main( int argc, char* argv[] )
aboutData.addCredit("Harri Porten", 0, "porten@kde.org");
aboutData.addCredit("Espen Sand", 0, "espen@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KUniqueApplication::addCmdLineOptions();

@ -121,7 +121,7 @@ void addPropertyVariable( TQString &out, const TQString &type,
}
// FIXME: Put addProperty in PropertyAdder class and add endReadAhead function.
int addProperty( KCmdLineArgs *args )
int addProperty( TDECmdLineArgs *args )
{
if ( args->count() != 3 ) {
std::cerr << "Usage: kode --add-property <class> <proprerty-type> "
@ -291,7 +291,7 @@ int addProperty( KCmdLineArgs *args )
return 0;
}
int codify( KCmdLineArgs *args )
int codify( TDECmdLineArgs *args )
{
if ( args->count() != 1 ) {
std::cerr << "Usage: kode --codify <sourcecodefile>" << std::endl;
@ -320,7 +320,7 @@ int codify( KCmdLineArgs *args )
return 0;
}
int create( KCmdLineArgs *args )
int create( TDECmdLineArgs *args )
{
KODE::Printer p;
if ( args->isSet( "warning" ) ) p.setCreationWarning( true );
@ -416,12 +416,12 @@ int create( KCmdLineArgs *args )
code.clear();
code += "KAboutData aboutData(\"test\",\"Test\",\"0.1\");";
code += "KCmdLineArgs::init(argc,argv,&aboutData);";
code += "KCmdLineArgs::addCmdLineOptions( options );";
code += "TDECmdLineArgs::init(argc,argv,&aboutData);";
code += "TDECmdLineArgs::addCmdLineOptions( options );";
code += "";
code += "KApplication app;";
code += "";
code += "KCmdLineArgs *args = KCmdLineArgs::parsedArgs();";
code += "TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();";
code += "";
code += "Q_UNUSED( args );";
main.setBody( code );
@ -612,12 +612,12 @@ int main(int argc,char **argv)
KAboutData aboutData( "kode", I18N_NOOP("TDE Code Generator"), "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();
if ( args->isSet( "create-class" ) || args->isSet( "create-dialog" ) ||
args->isSet( "create-kioslave" ) || args->isSet( "create-main" ) ) {

@ -43,10 +43,10 @@ int main( int argc, char **argv )
aboutData.addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() == 0 ) {
kdError() << "No WSDL file given." << endl;

@ -49,10 +49,10 @@ int main( int argc, char **argv )
aboutData.addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() < 1 || args->count() > 1 ) {
tqDebug( "Invalid arguments, try --help." );

@ -10,7 +10,7 @@ int main( int argc, char **argv )
KAboutData aboutData( "kgooglesearch", "TDE Google Search", "0.1", "", KAboutData::License_GPL );
aboutData.addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app( false, false );

@ -61,12 +61,12 @@ int main( int argc, char **argv )
I18N_NOOP("TDE XML Compiler") , KAboutData::License_LGPL );
aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KInstance app( &aboutData );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() < 1 ) {
kdError() << "Too few arguments." << endl;

@ -193,15 +193,15 @@ int main( int argc, char *argv[] )
);
//TODO: KDE 4.0, add the StdCmdLineArgs option to init()
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app(
false, //do not allowstyles - disable the loading on plugin based styles
false //GUI is not enabled - disable all GUI stuff
);
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// Default values for start date/time (today at 07:00)
TQDate startdate = TQDate::currentDate();

@ -96,12 +96,12 @@ bool UniqueAppHandler::process( const TQCString &fun, const TQByteArray &data,
if ( fun == "newInstance()" ) {
replyType = "int";
KCmdLineArgs::reset(); // forget options defined by other "applications"
TDECmdLineArgs::reset(); // forget options defined by other "applications"
loadCommandLineOptions(); // implemented by plugin
// This bit is duplicated from KUniqueApplication::processDelayed()
TQDataStream ds( data, IO_ReadOnly );
KCmdLineArgs::loadAppArgs( ds );
TDECmdLineArgs::loadAppArgs( ds );
if ( !ds.atEnd() ) { // backwards compatibility
TQCString asn_id;
ds >> asn_id;
@ -114,7 +114,7 @@ bool UniqueAppHandler::process( const TQCString &fun, const TQByteArray &data,
// OK, we're done, reload the initial kontact command line options,
// so that "kontact --module foo" keeps working (#103775).
KCmdLineArgs::reset(); // forget options defined above
TDECmdLineArgs::reset(); // forget options defined above
loadKontactCommandLineOptions();
} else if ( fun == "load()" ) {
@ -195,7 +195,7 @@ static KCmdLineOptions options[] =
void Kontact::UniqueAppHandler::loadKontactCommandLineOptions()
{
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KUniqueApplication::addCmdLineOptions();
KApplication::addCmdLineOptions();
}

@ -133,7 +133,7 @@ void Plugin::saveProperties( KConfig *config )
void UniqueAppHandler::loadCommandLineOptions()
{
KCmdLineArgs::addCmdLineOptions( akregator_options );
TDECmdLineArgs::addCmdLineOptions( akregator_options );
}
int UniqueAppHandler::newInstance()

@ -193,7 +193,7 @@ void KAddressbookPlugin::saveToProfile( const TQString& directory ) const
void KABUniqueAppHandler::loadCommandLineOptions()
{
KCmdLineArgs::addCmdLineOptions( kaddressbook_options );
TDECmdLineArgs::addCmdLineOptions( kaddressbook_options );
}
int KABUniqueAppHandler::newInstance()

@ -184,7 +184,7 @@ Kontact::Summary *KMailPlugin::createSummaryWidget( TQWidget *parent )
#include "../../../kmail/kmail_options.h"
void KMailUniqueAppHandler::loadCommandLineOptions()
{
KCmdLineArgs::addCmdLineOptions( kmail_options );
TDECmdLineArgs::addCmdLineOptions( kmail_options );
}
int KMailUniqueAppHandler::newInstance()

@ -97,7 +97,7 @@ KParts::ReadOnlyPart* KNodePlugin::createPart()
#include "../../../knode/knode_options.h"
void KNodeUniqueAppHandler::loadCommandLineOptions()
{
KCmdLineArgs::addCmdLineOptions( knode_options );
TDECmdLineArgs::addCmdLineOptions( knode_options );
}
int KNodeUniqueAppHandler::newInstance()

@ -30,7 +30,7 @@
void KOrganizerUniqueAppHandler::loadCommandLineOptions()
{
KCmdLineArgs::addCmdLineOptions( korganizer_options );
TDECmdLineArgs::addCmdLineOptions( korganizer_options );
}
int KOrganizerUniqueAppHandler::newInstance()

@ -98,7 +98,7 @@ static void listProfiles()
int KontactApp::newInstance()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQString moduleName;
if ( Kontact::Prefs::self()->forceStartupPlugin() ) {
moduleName = Kontact::Prefs::self()->forcedStartupPlugin();
@ -156,10 +156,10 @@ int main( int argc, char **argv )
about.addAuthor( "Zack Rusin", 0, "zack@kde.org" );
about.addAuthor( "Matthias Hoelzer-Kluepfel", I18N_NOOP("Original Author"), "mhk@kde.org" );
KCmdLineArgs::init( argc, argv, &about );
TDECmdLineArgs::init( argc, argv, &about );
Kontact::UniqueAppHandler::loadKontactCommandLineOptions();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->isSet( "list" ) ) {
listPlugins();
return 0;

@ -2094,7 +2094,7 @@ void ActionManager::saveToProfile( const TQString & path ) const
bool ActionManager::handleCommandLine()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KOrg::MainWindow *mainWindow = ActionManager::findInstance( KURL() );
bool ret = true;

@ -80,7 +80,7 @@ int KOrganizerApp::newInstance()
}
first = false;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KOGlobals::self()->alarmClient()->startDaemon();

@ -72,8 +72,8 @@ int main( int argc, char **argv )
aboutData.addAuthor( "Reinhold Kainhofer", I18N_NOOP("Maintainer"),
"kainhofer@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KUniqueApplication::addCmdLineOptions();
if ( !MyApp::start() ) exit( 0 );

@ -37,7 +37,7 @@
int main(int argc,char **argv)
{
KAboutData aboutData("testkabc",I18N_NOOP("TestKabc"),"0.1");
KCmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;

@ -35,7 +35,7 @@
int main(int argc,char **argv)
{
KAboutData aboutData("korgplugins",I18N_NOOP("KOrgPlugins"),"0.1");
KCmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;

@ -39,8 +39,8 @@ int main ( int argc, char **argv )
{
KOrg::AboutData aboutData;
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( korganizer_options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( korganizer_options );
KUniqueApplication::addCmdLineOptions();
if ( !KOrganizerApp::start() ) return 0;

@ -37,7 +37,7 @@
int main(int argc,char **argv)
{
KAboutData aboutData("timezone",I18N_NOOP("KOrganizer Timezone Test"),"0.1");
KCmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;

@ -27,7 +27,7 @@ int main(int argc, char *argv[])
aboutData.addAuthor("Preview by Heiner Eichmann",0, "h.eichmann@gmx.de");
aboutData.addAuthor("Mart Kelder",0,"mart@kelder31.nl");
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KUniqueApplication::addCmdLineOptions();
if( !KUniqueApplication::start() ) {

@ -72,12 +72,12 @@ int main( int argc, char **argv )
KAboutData aboutData( "benchmarkfeaturelist",
"Benchmark for feature list XML parser",
"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." );

@ -71,12 +71,12 @@ int main( int argc, char **argv )
{
KAboutData aboutData( "dumpfeaturelist", "Dump XML feature list to stdout",
"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." );

@ -49,12 +49,12 @@ int main( int argc, char **argv )
KAboutData aboutData( "soapdebug", I18N_NOOP("Groupwise Soap Debug"), "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();
TQString user = args->getOption( "user" );
TQString pass = args->getOption( "password" );

@ -51,11 +51,11 @@ int kdemain( int argc, char **argv )
putenv( strdup( "SESSION_MANAGER=" ) );
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init( argc, argv, "kio_scalix", 0, 0, 0, 0 );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, "kio_scalix", 0, 0, 0, 0 );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, false );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
Scalix slave( args->arg( 0 ), args->arg( 1 ), args->arg( 2 ) );
slave.dispatchLoop();

@ -37,8 +37,8 @@ int main( int argc, char **argv )
KAboutData aboutData( "scalixadmin", I18N_NOOP("ScalixAdmin"), "1.0", description,
KAboutData::License_GPL, "(c) 2007, Tobias Koenig" );
aboutData.addAuthor( "Tobias Koenig",0, "tokoe@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;

@ -38,12 +38,12 @@ int main(int argc,char **argv)
KAboutData aboutData( "textsloxaccounts",
"SUSE LINUX Openexchange Server Configuration Wizard",
"0.1" );
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 verbose = false;
if ( args->isSet( "verbose" ) ) verbose = true;

@ -40,8 +40,8 @@ int main(int argc, char *argv[])
"1.0", description, KAboutData::License_GPL,
"(c) 2000, Michael Goffioul");
aboutData.addAuthor("Michael Goffioul",0, "tdeprint@swing.be");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication::addCmdLineOptions();
KApplication a;
@ -49,7 +49,7 @@ int main(int argc, char *argv[])
a.setMainWidget(tnef);
tnef->show();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->count() > 0)
tnef->loadFile(args->arg(0));

@ -162,7 +162,7 @@ static bool checkQuoteIfNecessary( const TQString& input, const TQString& expRes
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init( argc, argv, "testemail", 0, 0, 0, 0 );
TDECmdLineArgs::init( argc, argv, "testemail", 0, 0, 0, 0 );
KApplication app( false, false );
// Empty input

@ -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 );

@ -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." );

@ -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 );

@ -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;

@ -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)

@ -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;

@ -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." );

@ -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." );

@ -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." );

@ -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." );

@ -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" ) );

@ -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." );

@ -41,7 +41,7 @@ int main( int argc, char **argv )
KAboutData aboutData( "example", I18N_NOOP("autoconfig example"), "0.1" );
aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;

@ -37,7 +37,7 @@ int main( int argc, char **argv )
KAboutData aboutData( "example", I18N_NOOP("cfgc example"), "0.1" );
aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;

@ -39,12 +39,12 @@ static const KCmdLineOptions options[] =
int main( int argc, char** argv )
{
KAboutData aboutData( "tests","Test","0.1" );
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();
Q_UNUSED( args );
TestFactory t;

@ -7,7 +7,7 @@
int main( int argc, char **argv )
{
KCmdLineArgs::init( argc, argv, "test", "test", "test", "0.1" );
TDECmdLineArgs::init( argc, argv, "test", "test", "test", "0.1" );
KApplication app;
Komposer::Core *core = new Komposer::Core();

@ -44,7 +44,7 @@ void TestManager::slotPluginLoaded( Plugin *plugin )
int main( int argc, char **argv )
{
KCmdLineArgs::init( argc, argv, "test", "test", "test", "0.1" );
TDECmdLineArgs::init( argc, argv, "test", "test", "test", "0.1" );
KApplication app;
TestManager manager( &app );

@ -40,7 +40,7 @@ int main(int argc, char **argv)
KAboutData::License_GPL, "(C) 2001-2003 The Kontact developers", 0, "http://kontact.kde.org", "zack@kde.org" );
about.addAuthor( "Zack Rusin", 0, "zack@kde.org" );
KCmdLineArgs::init( argc, argv, &about );
TDECmdLineArgs::init( argc, argv, &about );
KUniqueApplication app;
// see if we are starting with session management

@ -30,7 +30,7 @@
int main(int argc, char* argv[])
{
KAboutData aboutData("testaddresseelineedit","Test AddresseeLineEdit","0.1");
KCmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;

@ -31,7 +31,7 @@
int main( int argc, char **argv )
{
KAboutData aboutData( "testaddresseeseletor", "Test AddresseeSelector", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;

@ -54,7 +54,7 @@ void DateEdit::dateChanged( const TQDate &date )
int main(int argc,char **argv)
{
KAboutData aboutData( "testdateedit", "Test KDateEdit", "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;

@ -47,7 +47,7 @@ int main(int argc, char *argv[])
setenv( "TDE_FORK_SLAVES", "yes", true ); // simpler, for the final cleanup
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc,argv,"testdistrlist", 0, 0, 0, 0);
TDECmdLineArgs::init(argc,argv,"testdistrlist", 0, 0, 0, 0);
KApplication app( false, false );
TestDistrList test;

@ -29,7 +29,7 @@ using namespace KPIM;
int main( int argc, char **argv )
{
KCmdLineArgs::init( argc, argv, "testkincidencechooser", 0,
TDECmdLineArgs::init( argc, argv, "testkincidencechooser", 0,
"KIncidenceChooserTest", "1.0",
"kincidencechooser test app" );
KApplication app;

@ -60,7 +60,7 @@ static bool checkGetEmailAddress( const TQString & input,
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init( argc, argv, "testlinklocator", 0, 0, 0, 0 );
TDECmdLineArgs::init( argc, argv, "testlinklocator", 0, 0, 0, 0 );
KApplication app( false, false );
// empty input

@ -84,12 +84,12 @@ static const KCmdLineOptions options[] =
int main(int argc,char **argv)
{
KAboutData aboutData("testwizard","Test KConfigWizard","0.1");
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 verbose = false;
if ( args->isSet( "verbose" ) ) verbose = true;

@ -39,14 +39,14 @@ int main(int argc,char **argv)
KAboutData aboutData( "egroupwarewizard",
"eGroupware Server Configuration Wizard",
"0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool verbose = false;
if ( args->isSet( "verbose" ) ) verbose = true;

@ -39,14 +39,14 @@ int main(int argc,char **argv)
KAboutData aboutData( "exchangewizard",
I18N_NOOP( "Microsoft Exchange Server Configuration Wizard" ),
"0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool verbose = false;
if ( args->isSet( "verbose" ) ) verbose = true;

@ -40,14 +40,14 @@ int main(int argc,char **argv)
KAboutData aboutData( "groupwisewizard",
I18N_NOOP( "Novell GroupWise Configuration Wizard" ),
"0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool verbose = false;
if ( args->isSet( "verbose" ) ) verbose = true;

@ -39,14 +39,14 @@ int main(int argc,char **argv)
KLocale::setMainCatalogue( "tdepimwizards" );
KAboutData aboutData( "kolabwizard", I18N_NOOP( "Kolab Configuration Wizard" ), "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool verbose = false;
if ( args->isSet( "verbose" ) ) verbose = true;

@ -18,14 +18,14 @@ int main( int argc, char **argv )
KAboutData aboutData( "groupwarewizard",
I18N_NOOP( "TDE-PIM Groupware Configuration Wizard" ), "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQString serverType;
if ( args->isSet( "serverType" ) )

@ -39,14 +39,14 @@ int main(int argc,char **argv)
KLocale::setMainCatalogue( "tdepimwizards" );
KAboutData aboutData( "scalixwizard", I18N_NOOP( "Scalix Configuration Wizard" ), "0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool verbose = false;
if ( args->isSet( "verbose" ) ) verbose = true;

@ -39,14 +39,14 @@ int main(int argc,char **argv)
KAboutData aboutData( "sloxwizard",
I18N_NOOP( "SUSE LINUX Openexchange Server Configuration Wizard" ),
"0.1" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool verbose = false;
if ( args->isSet( "verbose" ) ) verbose = true;

Loading…
Cancel
Save