Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4

pull/2/head
Timothy Pearson 11 years ago
parent c16d0f2191
commit d41050ea3f

@ -16,7 +16,7 @@ enum CrashType { Crash, Malloc, Div0, Assert };
void do_crash()
{
KCmdLineArgs *args = 0;
TDECmdLineArgs *args = 0;
TQCString type = args->arg(0);
printf("result = %s\n", type.data());
}
@ -74,11 +74,11 @@ int main(int argc, char *argv[])
KAboutData::License_GPL,
"(c) 2000-2002 David Faure, Waldo Bastian");
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();
TQCString type = args->count() ? args->arg(0) : "";
int crashtype = Crash;
if (type == "malloc")

@ -60,7 +60,7 @@ void KrashConfig :: acceptDebuggingApp()
void KrashConfig :: readConfig()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
m_signalnum = args->getOption( "signal" ).toInt();
m_pid = args->getOption( "pid" ).toInt();
m_startedByKdeinit = args->isSet("tdeinit");

@ -77,8 +77,8 @@ int main( int argc, char* argv[] )
aboutData.addAuthor("Timothy Pearson", 0, "kb9vqf@pearsoncomputing.net");
aboutData.addAuthor("Hans Petter Bieker", 0, "bieker@kde.org");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication::disableAutoDcopRegistration();

@ -39,9 +39,9 @@ int main( int argc, char *argv[] )
aboutData.addAuthor( "Matthias Hoelzer-Kluepfel", 0, "hoelzer@kde.org" );
aboutData.addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KApplication app;

@ -51,7 +51,7 @@
#include <unistd.h>
#include <sys/types.h>
KateApp::KateApp (KCmdLineArgs *args)
KateApp::KateApp (TDECmdLineArgs *args)
: KApplication ()
, m_args (args)
, m_shouldExit (false)
@ -192,7 +192,7 @@ bool KateApp::startupKate ()
TQTextCodec *codec = m_args->isSet("encoding") ? TQTextCodec::codecForName(m_args->getOption("encoding")) : 0;
bool tempfileSet = KCmdLineArgs::isTempFileSet();
bool tempfileSet = TDECmdLineArgs::isTempFileSet();
Kate::Document::setOpenErrorDialogsActivated (false);
uint id = 0;

@ -33,7 +33,7 @@ namespace Kate {
class Application;
}
class KCmdLineArgs;
class TDECmdLineArgs;
/**
* Kate Application
@ -51,7 +51,7 @@ class KDE_EXPORT KateApp : public KApplication
* application constructor
* @param args parsed command line args
*/
KateApp (KCmdLineArgs *args);
KateApp (TDECmdLineArgs *args);
/**
* application destructor
@ -202,7 +202,7 @@ class KDE_EXPORT KateApp : public KApplication
/**
* kate's command line args
*/
KCmdLineArgs *m_args;
TDECmdLineArgs *m_args;
/**
* plugin interface

@ -99,13 +99,13 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
aboutData.setTranslator(I18N_NOOP2("NAME OF TRANSLATORS","Your names"), I18N_NOOP2("EMAIL OF TRANSLATORS","Your emails"));
// command line args init and co
KCmdLineArgs::init (argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions (options);
KCmdLineArgs::addTempFileOption();
TDECmdLineArgs::init (argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions (options);
TDECmdLineArgs::addTempFileOption();
KateApp::addCmdLineOptions ();
// get our command line args ;)
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
// now, first try to contact running kate instance if needed
if ( args->isSet("use") || (::getenv("KATE_PID")!=0) )
@ -172,7 +172,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
TQString enc = args->isSet("encoding") ? args->getOption("encoding") : TQCString("");
bool tempfileSet = KCmdLineArgs::isTempFileSet();
bool tempfileSet = TDECmdLineArgs::isTempFileSet();
for (int z=0; z<args->count(); z++)
kRef.call( "openURL", args->url(z), enc, tempfileSet );

@ -588,8 +588,8 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
aboutData.setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names"), I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails"));
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication a;
@ -602,7 +602,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
client->registerAs("kwrite");
}
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (kapp->isRestored())
{

@ -126,7 +126,7 @@ void KCMInit::runModules( int phase )
}
}
KCMInit::KCMInit( KCmdLineArgs* args )
KCMInit::KCMInit( TDECmdLineArgs* args )
: DCOPObject( "kcminit" )
{
TQCString arg;
@ -238,13 +238,13 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
"",
I18N_NOOP("KCMInit - runs startups initialization for Control Modules."));
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;
app.dcopClient()->registerAs( "kcminit", false );
KLocale::setMainCatalogue(0);
KCMInit kcminit( KCmdLineArgs::parsedArgs());
KCMInit kcminit( TDECmdLineArgs::parsedArgs());
return 0;
}

@ -23,7 +23,7 @@
#include <dcopobject.h>
#include <kservice.h>
class KCmdLineArgs;
class TDECmdLineArgs;
class KCMInit : public TQObject, public DCOPObject
{
@ -33,7 +33,7 @@ class KCMInit : public TQObject, public DCOPObject
void runPhase1();
void runPhase2();
public:
KCMInit( KCmdLineArgs* args );
KCMInit( TDECmdLineArgs* args );
virtual ~KCMInit();
private:
bool runModule(const TQString &libName, KService::Ptr service);

@ -12,7 +12,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char * argv[] )
about.addAuthor("Matthias Hoelzer-Kluepfel", I18N_NOOP("Author") , "hoelzer@kde.org");
KCmdLineArgs::init( argc, argv, &about );
TDECmdLineArgs::init( argc, argv, &about );
if (!KAccessApp::start())
return 0;

@ -118,13 +118,13 @@ int main(int argc, char ** argv)
aboutData.addAuthor("Preston Brown",0, "pbrown@kde.org");
aboutData.addAuthor("David Faure",0, "faure@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 app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->count() == 0)
KCmdLineArgs::usage();
TDECmdLineArgs::usage();
TQString arg = args->arg(0);

@ -134,7 +134,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
aboutData->addAuthor("Matthias Ettrich",0, "ettrich@kde.org");
aboutData->addAuthor("Waldo Bastian",0, "bastian@kde.org");
KCmdLineArgs::init( argc, argv, aboutData );
TDECmdLineArgs::init( argc, argv, aboutData );
KUniqueApplication::addCmdLineOptions();
KCGlobal::init();

@ -93,10 +93,10 @@ CKCmFontInst::CKCmFontInst(TQWidget *parent, const char *, const TQStringList&)
about->addAuthor("Craig Drummond", I18N_NOOP("Developer and maintainer"), "craig@kde.org");
setAboutData(about);
const char *appName=KCmdLineArgs::appName();
const char *appName=TDECmdLineArgs::appName();
itsEmbeddedAdmin=Misc::root() && (NULL==appName || strcmp("kcontrol", appName) &&
KCmdLineArgs::parsedArgs()->isSet("embed"));
TDECmdLineArgs::parsedArgs()->isSet("embed"));
itsStatusLabel = new TQLabel(this);
itsStatusLabel->setFrameShape(TQFrame::Panel);

@ -54,7 +54,7 @@ CFontViewerAppMainWindow::CFontViewerAppMainWindow()
itsPreview=(KParts::ReadOnlyPart *)factory->create(TQT_TQOBJECT(this), "fontvier", "KParts::ReadOnlyPart");
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KURL openURL;
if(args->count() > 0)
@ -118,8 +118,8 @@ static KAboutData aboutData("kfontview", I18N_NOOP("Font Viewer"), 0, I18N_NOOP(
int main(int argc, char **argv)
{
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KFI::CFontViewerApp::addCmdLineOptions();
KFI::CFontViewerApp app;

@ -42,8 +42,8 @@ int main(int argc, char **argv)
aboutData.setProductName("krandr/krandrtray");
KGlobal::locale()->setMainCatalogue("krandr");
KCmdLineArgs::init(argc,argv,&aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication::addCmdLineOptions();
KRandRApp app;

@ -24,8 +24,8 @@ int main( int argc, char ** argv )
aboutData.addAuthor("Matthias Kalle Dalheimer",0, "kalle@kde.org");
aboutData.addAuthor("Rik Hemsley",0, "rik@kde.org");
aboutData.addAuthor("Ian Reinhart Geiser",0,"geiseri@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication a;

@ -82,11 +82,11 @@ int main(int argc, char ** argv)
KAboutData::License_GPL, "(c) 2009,2010, Timothy Pearson <kb9vqf@pearsoncomputing.net>");
data.addAuthor("Timothy Pearson", I18N_NOOP("Maintainer"), "kb9vqf@pearsoncomputing.net");
data.addAuthor("David Faure", I18N_NOOP("Original maintainer/developer"), "faure@kde.org");
KCmdLineArgs::init( argc, argv, &data );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &data );
TDECmdLineArgs::addCmdLineOptions( options );
KUniqueApplication::addCmdLineOptions();
KUniqueApplication app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQStringList areaList ( readAreaList() );
KAbstractDebugDialog * dialog;

@ -34,8 +34,8 @@ int main(int argc, char **argv)
aboutData.addAuthor("Geert Jansen", I18N_NOOP("Maintainer"),
"jansen@kde.org", "http://www.stack.nl/~geertj/");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication::addCmdLineOptions();
@ -49,7 +49,7 @@ int main(int argc, char **argv)
KUser ku;
TQCString user;
bool bRoot = ku.isSuperUser();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->count())
user = args->arg(0);

@ -93,13 +93,13 @@ int main( int argc, char **argv )
"(c) 2000, David Faure <faure@kde.org>" );
data.addAuthor( "David Faure", I18N_NOOP("developer and maintainer"), "faure@kde.org" );
KCmdLineArgs::init( argc, argv, &data );
TDECmdLineArgs::init( argc, argv, &data );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() != 3 && args->count() != 4 )
{
args->usage();

@ -90,9 +90,9 @@ static KCmdLineOptions options[] =
int main( int argc, char **argv)
{
KCmdLineArgs::init( argc, argv, "kxdglauncher", I18N_NOOP("TDE XDG File Browser Launcher and Prompter"), I18N_NOOP("Prompts if directory does not exist, otherwise launches"), "1.0" );
KCmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs::init( argc, argv, "kxdglauncher", I18N_NOOP("TDE XDG File Browser Launcher and Prompter"), I18N_NOOP("Prompts if directory does not exist, otherwise launches"), "1.0" );
TDECmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KApplication app;
app.disableSessionManagement();

@ -207,9 +207,9 @@ int main( int argc, char **argv )
{
KLocale::setMainCatalogue("kdesktop");
KCmdLineArgs::init( argc, argv, "kdesktop_lock", I18N_NOOP("KDesktop Locker"), I18N_NOOP("Session Locker for KDesktop"), "2.1" );
KCmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs::init( argc, argv, "kdesktop_lock", I18N_NOOP("KDesktop Locker"), I18N_NOOP("Session Locker for KDesktop"), "2.1" );
TDECmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
putenv(strdup("SESSION_MANAGER="));

@ -181,8 +181,8 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
aboutData.addAuthor("Torben Weis", 0, "weis@kde.org");
aboutData.addAuthor("Matthias Ettrich", 0, "ettrich@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
if (!KUniqueApplication::start()) {
fprintf(stderr, "kdesktop is already running!\n");
@ -195,11 +195,11 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
r.send( "suspendStartup", TQCString( "kdesktop" ));
delete cl;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
#ifdef COMPOSITE
KCmdLineArgs *qtargs = KCmdLineArgs::parsedArgs("qt");
TDECmdLineArgs *qtargs = TDECmdLineArgs::parsedArgs("qt");
if ( args->isSet("bg-transparency")) {
char *display = 0;

@ -152,7 +152,7 @@ static void outputStringList(TQStringList list, bool separateOutput)
}
}
static int directCommand(KCmdLineArgs *args)
static int directCommand(TDECmdLineArgs *args)
{
TQString title;
bool separateOutput = FALSE;
@ -161,7 +161,7 @@ static int directCommand(KCmdLineArgs *args)
TQString defaultEntry;
// --title text
KCmdLineArgs *qtargs = KCmdLineArgs::parsedArgs("qt"); // --title is a qt option
TDECmdLineArgs *qtargs = TDECmdLineArgs::parsedArgs("qt"); // --title is a qt option
if(qtargs->isSet("title")) {
title = TQFile::decodeName(qtargs->getOption("title"));
}
@ -669,7 +669,7 @@ static int directCommand(KCmdLineArgs *args)
return Widgets::progressBar(0, title, text, totalsteps) ? 1 : 0;
}
KCmdLineArgs::usage();
TDECmdLineArgs::usage();
return -2; // NOTREACHED
}
@ -688,12 +688,12 @@ int main(int argc, char *argv[])
aboutData.addAuthor("Richard Moore",0,"rich@kde.org");
aboutData.addAuthor("Dawit Alemayehu",0,"adawit@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 app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// execute direct kdialog command
return directCommand(args);

@ -42,12 +42,12 @@ int main( int argc, char ** argv )
aboutData.addAuthor("Alexander Neundorf", 0, "neundorf@kde.org");
aboutData.addAuthor("Clarence Dang", 0, "dang@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();
KURL url;
if (args->count() > 0)

@ -35,7 +35,7 @@ int Application::newInstance()
{
if (restoringSession()) return 0;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KURL url;
if ( args->count() )
@ -74,8 +74,8 @@ extern "C" int KDE_EXPORT kdemain( int argc, char **argv )
aboutData.addAuthor( "Wojciech Smigaj", I18N_NOOP("Info page support"),
"achu@klub.chip.pl" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication::addCmdLineOptions();
KHC::Application app;

@ -19,13 +19,13 @@ int main(int argc, char *argv[])
"",
I18N_NOOP("TDE Index generator for help files."));
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
KGlobal::locale()->setMainCatalogue("htmlsearch");
KApplication app;
HTMLSearch search;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
search.generateIndex(args->getOption("lang"));
}

@ -179,13 +179,13 @@ int main( int argc, char **argv )
aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KUniqueApplication::addCmdLineOptions();
KApplication app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() != 2 ) {
kdDebug(1402) << "Wrong number of arguments." << endl;

@ -89,7 +89,7 @@ class AsyncTraverser : public DocEntryTraverser
int main(int argc,char **argv)
{
KAboutData aboutData("testmetainfo","TestDocMetaInfo","0.1");
KCmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;

@ -144,7 +144,7 @@ int KDE_EXPORT kdemain( int argc, char** argv )
appname.sprintf("khotkeys-screen-%d", khotkeys_screen_number);
// no need to i18n these, no GUI
KCmdLineArgs::init( argc, argv, appname, I18N_NOOP( "KHotKeys" ),
TDECmdLineArgs::init( argc, argv, appname, I18N_NOOP( "KHotKeys" ),
I18N_NOOP( "KHotKeys daemon" ), KHOTKEYS_VERSION );
KUniqueApplication::addCmdLineOptions();
if( !KHotKeysApp::start()) // already running

@ -34,11 +34,11 @@ static const KCmdLineOptions options[] =
int main( int argc, char* argv[] )
{
KCmdLineArgs::init( argc, argv, "khotkeys_update", "KHotKeys Update",
TDECmdLineArgs::init( argc, argv, "khotkeys_update", "KHotKeys Update",
"KHotKeys update utility", "1.0" );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, true ); // X11 connection is necessary for KKey* stuff :-/
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
TQCString id = args->getOption( "id" );
TQString file = locate( "data", "khotkeys/" + id + ".khotkeys" );
if( file.isEmpty())

@ -75,11 +75,11 @@ static KCmdLineOptions options[] =
int main( int argc, char **argv )
{
KCmdLineArgs::init( argc, argv, "kasbar", "KasBar", I18N_NOOP( "An alternative task manager" ), VERSION_STRING );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, "kasbar", "KasBar", I18N_NOOP( "An alternative task manager" ), VERSION_STRING );
TDECmdLineArgs::addCmdLineOptions( options );
KGlobal::locale()->setMainCatalogue( "kasbarextension" );
KApplication app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
kdDebug(1345) << "Kasbar starting..." << endl;

@ -125,7 +125,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )
aboutData.addCredit("Jessica Hall", /* I18N_NOOP("KConfigXT") */ 0, "jes.hall@kdemail.net");
aboutData.addCredit("Stefan Nikolaus", /* I18N_NOOP("Bug fixes") */ 0, "stefan.nikolaus@kdemail.net");
aboutData.addCredit("Benoît Minisini", /* I18N_NOOP("Bug fixes") */ 0, "gambas@users.sourceforge.net");
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
if (!Kicker::start()) {
kdError() << "kicker is already running!" << endl;

@ -22,7 +22,7 @@ typedef TQMap<TQString, AppletInfo> AppletInfoMap;
int main(int argc, char** argv)
{
// We must disguise as Kicker in order to obtain the correct reverseLayout setting.
KCmdLineArgs::init(argc, argv, "kicker", "", "", "", false);
TDECmdLineArgs::init(argc, argv, "kicker", "", "", "", false);
KApplication app(false, false);
TQStringList stretchableApplets;

@ -75,11 +75,11 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )
,I18N_NOOP("Panel applet proxy.")
, KAboutData::License_BSD
, "(c) 2000, The KDE Developers");
KCmdLineArgs::init(argc, argv, &aboutData );
TDECmdLineArgs::init(argc, argv, &aboutData );
aboutData.addAuthor("Matthias Elter",0, "elter@kde.org");
aboutData.addAuthor("Matthias Ettrich",0, "ettrich@kde.org");
KApplication::addCmdLineOptions();
KCmdLineArgs::addCmdLineOptions(options); // Add our own options.
TDECmdLineArgs::addCmdLineOptions(options); // Add our own options.
KApplication a;
a.disableSessionManagement();
@ -91,10 +91,10 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )
AppletProxy proxy(0, "appletproxywidget");
// parse cmdline args
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() == 0 )
KCmdLineArgs::usage(i18n("No desktop file specified") );
TDECmdLineArgs::usage(i18n("No desktop file specified") );
// Perhaps we should use a konsole-like solution here (shell, list of args...)
TQString desktopfile( args->arg(0) );

@ -79,11 +79,11 @@ int main( int argc, char ** argv )
,I18N_NOOP("Panel extension proxy.")
, KAboutData::License_BSD
, "(c) 2000, The KDE Developers");
KCmdLineArgs::init(argc, argv, &aboutData );
TDECmdLineArgs::init(argc, argv, &aboutData );
aboutData.addAuthor("Matthias Elter",0, "elter@kde.org");
aboutData.addAuthor("Matthias Ettrich",0, "ettrich@kde.org");
KApplication::addCmdLineOptions();
KCmdLineArgs::addCmdLineOptions(options); // Add our own options.
TDECmdLineArgs::addCmdLineOptions(options); // Add our own options.
KApplication a;
a.disableSessionManagement();
@ -94,11 +94,11 @@ int main( int argc, char ** argv )
TQString df;
// parse cmdline args
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// sanity check
if ( args->count() == 0 )
KCmdLineArgs::usage(i18n("No desktop file specified") );
TDECmdLineArgs::usage(i18n("No desktop file specified") );
TQCString desktopFile = TQCString( args->arg(0) );

@ -61,11 +61,11 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )
,I18N_NOOP("Panel extension proxy")
, KAboutData::License_BSD
, "(c) 2000, The KDE Developers");
KCmdLineArgs::init(argc, argv, &aboutData );
TDECmdLineArgs::init(argc, argv, &aboutData );
aboutData.addAuthor("Matthias Elter",0, "elter@kde.org");
aboutData.addAuthor("Matthias Ettrich",0, "ettrich@kde.org");
KApplication::addCmdLineOptions();
KCmdLineArgs::addCmdLineOptions(options); // Add our own options.
TDECmdLineArgs::addCmdLineOptions(options); // Add our own options.
KApplication a;
a.disableSessionManagement();
@ -77,11 +77,11 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )
ExtensionProxy proxy(0, "extensionproxywidget");
// parse cmdline args
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// sanity check
if ( args->count() == 0 )
KCmdLineArgs::usage(i18n("No desktop file specified") );
TDECmdLineArgs::usage(i18n("No desktop file specified") );
// do we have a callback id?
if (args->getOption("callbackid").isNull()) {

@ -42,13 +42,13 @@ extern "C" {
{
// KApplication is necessary to use other ioslaves
putenv(strdup("SESSION_MANAGER="));
KCmdLineArgs::init(argc, argv, "kio_home", 0, 0, 0, 0);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, "kio_home", 0, 0, 0, 0);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, false );
// We want to be anonymous even if we use DCOP
app.dcopClient()->attach();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
HomeProtocol slave( args->arg(0), args->arg(1), args->arg(2) );
slave.dispatchLoop();
return 0;

@ -47,7 +47,7 @@ static bool check(const TQString& txt, TQString a, TQString b)
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc,argv,"testhome", 0, 0, 0, 0);
TDECmdLineArgs::init(argc,argv,"testhome", 0, 0, 0, 0);
KApplication app;
TestHome test;

@ -44,13 +44,13 @@ extern "C" {
{
// KApplication is necessary to use other ioslaves
putenv(strdup("SESSION_MANAGER="));
KCmdLineArgs::init(argc, argv, "kio_media", 0, 0, 0, 0);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, "kio_media", 0, 0, 0, 0);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, false );
// We want to be anonymous even if we use DCOP
app.dcopClient()->attach();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
MediaProtocol slave( args->arg(0), args->arg(1), args->arg(2) );
slave.dispatchLoop();
return 0;

@ -63,7 +63,7 @@ const Medium MountHelper::findMedium(const KURL &url)
MountHelper::MountHelper() : KApplication()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
m_errorStr = TQString::null;
@ -263,15 +263,15 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KCmdLineArgs::init(argc, argv, "kio_media_mounthelper",
TDECmdLineArgs::init(argc, argv, "kio_media_mounthelper",
"kio_media_mounthelper", "kio_media_mounthelper",
"0.1");
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KGlobal::locale()->setMainCatalogue("kio_media");
KApplication::addCmdLineOptions();
if (KCmdLineArgs::parsedArgs()->count()==0) KCmdLineArgs::usage();
if (TDECmdLineArgs::parsedArgs()->count()==0) TDECmdLineArgs::usage();
KApplication *app = new MountHelper();
KStartupInfo::appStarted();

@ -47,7 +47,7 @@ static bool check(const TQString& txt, TQString a, TQString b)
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc,argv,"testmedia", 0, 0, 0, 0);
TDECmdLineArgs::init(argc,argv,"testmedia", 0, 0, 0, 0);
KApplication app;
TestMedia test;

@ -42,13 +42,13 @@ extern "C" {
{
// KApplication is necessary to use other ioslaves
putenv(strdup("SESSION_MANAGER="));
KCmdLineArgs::init(argc, argv, "kio_remote", 0, 0, 0, 0);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, "kio_remote", 0, 0, 0, 0);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, false );
// We want to be anonymous even if we use DCOP
app.dcopClient()->attach();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
RemoteProtocol slave( args->arg(0), args->arg(1), args->arg(2) );
slave.dispatchLoop();
return 0;

@ -47,7 +47,7 @@ static bool check(const TQString& txt, TQString a, TQString b)
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc,argv,"testremote", 0, 0, 0, 0);
TDECmdLineArgs::init(argc,argv,"testremote", 0, 0, 0, 0);
KApplication app;
TestRemote test;

@ -43,13 +43,13 @@ extern "C" {
{
// KApplication is necessary to use other ioslaves
putenv(strdup("SESSION_MANAGER="));
KCmdLineArgs::init(argc, argv, "kio_system", 0, 0, 0, 0);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, "kio_system", 0, 0, 0, 0);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, false );
// We want to be anonymous even if we use DCOP
app.dcopClient()->attach();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
SystemProtocol slave( args->arg(0), args->arg(1), args->arg(2) );
slave.dispatchLoop();
return 0;

@ -47,7 +47,7 @@ static bool check(const TQString& txt, TQString a, TQString b)
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc,argv,"testsystem", 0, 0, 0, 0);
TDECmdLineArgs::init(argc,argv,"testsystem", 0, 0, 0, 0);
KApplication app;
TestSystem test;

@ -56,11 +56,11 @@ extern "C" {
// KApplication is necessary to use kio_file
putenv(strdup("SESSION_MANAGER="));
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc, argv, "kio_trash", 0, 0, 0, 0);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, "kio_trash", 0, 0, 0, 0);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, false );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TrashProtocol slave( args->arg(0), args->arg(1), args->arg(2) );
slave.dispatchLoop();
return 0;

@ -38,15 +38,15 @@ static KCmdLineOptions options[] =
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init( argc, argv, "ktrash",
TDECmdLineArgs::init( argc, argv, "ktrash",
I18N_NOOP( "ktrash" ),
I18N_NOOP( "Helper program to handle the TDE trash can\n"
"Note: to move files to the trash, do not use ktrash, but \"kfmclient move 'url' trash:/\"" ),
TDE_VERSION_STRING );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
if ( args->isSet( "empty" ) ) {
// We use a kio job instead of linking to TrashImpl, for a smaller binary
// (and the possibility of a central service at some point)

@ -83,7 +83,7 @@ int main(int argc, char *argv[])
setenv( "TDE_FORK_SLAVES", "yes", true );
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc,argv,"testtrash", 0, 0, 0, 0);
TDECmdLineArgs::init(argc,argv,"testtrash", 0, 0, 0, 0);
KApplication app;
TestTrash test;

@ -38,7 +38,7 @@
extern "C" int KDE_EXPORT kdemain(int argc, char *argv[])
{
Klipper::createAboutData();
KCmdLineArgs::init( argc, argv, Klipper::aboutData());
TDECmdLineArgs::init( argc, argv, Klipper::aboutData());
KUniqueApplication::addCmdLineOptions();
if (!KUniqueApplication::start()) {

@ -42,7 +42,7 @@ extern "C" int KDE_EXPORT kdemain( int argc, char **argv )
aboutData.addAuthor("Raffaele Sandrini", I18N_NOOP("Previous Maintainer"), "sandrini@kde.org");
aboutData.addAuthor("Matthias Elter", I18N_NOOP("Original Author"), "elter@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KUniqueApplication::addCmdLineOptions();
if (!KUniqueApplication::start())

@ -48,7 +48,7 @@ public:
virtual int newInstance()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->count() > 0)
{
menuEdit->selectMenu(TQString::fromLocal8Bit(args->arg(0)));
@ -71,9 +71,9 @@ extern "C" int KDE_EXPORT kdemain( int argc, char **argv )
aboutData.addAuthor("Raffaele Sandrini", I18N_NOOP("Previous Maintainer"), "sandrini@kde.org");
aboutData.addAuthor("Matthias Elter", I18N_NOOP("Original Author"), "elter@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KUniqueApplication::addCmdLineOptions();
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
if (!KUniqueApplication::start())
return 1;

@ -34,7 +34,7 @@ int main(int argc, char **argv) {
about.addAuthor("George Staikos", I18N_NOOP("Primary author and maintainer"), "staikos@kde.org");
KCmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::init(argc, argv, &about);
KApplication a;
KNetAttach na;

@ -70,16 +70,16 @@ static const KCmdLineOptions options[] =
extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
{
KCmdLineArgs::init(argc, argv, appName, programName, description, version, false);
TDECmdLineArgs::init(argc, argv, appName, programName, description, version, false);
KCmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs::addTempFileOption();
TDECmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addTempFileOption();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->isSet("commands") )
{
KCmdLineArgs::enable_i18n();
TDECmdLineArgs::enable_i18n();
puts(i18n("\nSyntax:\n").local8Bit());
puts(i18n(" kfmclient openURL 'url' ['mimetype']\n"
" # Opens a window showing 'url'.\n"
@ -445,7 +445,7 @@ static void checkArgumentCount(int count, int min, int max)
bool clientApp::doIt()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
int argc = args->count();
checkArgumentCount(argc, 1, 0);
@ -466,7 +466,7 @@ bool clientApp::doIt()
KApplication::dcopClient()->attach();
}
checkArgumentCount(argc, 1, 3);
bool tempFile = KCmdLineArgs::isTempFileSet();
bool tempFile = TDECmdLineArgs::isTempFileSet();
if ( argc == 1 )
{
KURL url;

@ -66,8 +66,8 @@ int main( int argc, char**argv )
aboutData.addAuthor( "Frerich Raabe", I18N_NOOP( "Original author" ),
"raabe@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( cmdLineOptions );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( cmdLineOptions );
if ( !kdeRunning ) {
KApplication::disableAutoDcopRegistration();
@ -75,7 +75,7 @@ int main( int argc, char**argv )
KApplication app( false, false );
app.disableSessionManagement();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() != 1 ) {
kdError() << "No directory to scan for bookmarks specified." << endl;
return 1;

@ -121,11 +121,11 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) {
aboutData.addAuthor("David Faure", I18N_NOOP("Initial author"), "faure@kde.org");
aboutData.addAuthor("Alexander Kellett", I18N_NOOP("Author"), "lypanov@kde.org");
KCmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::init(argc, argv, &aboutData);
KApplication::addCmdLineOptions();
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::addCmdLineOptions(options);
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool isGui = !(args->isSet("exportmoz") || args->isSet("exportns") || args->isSet("exporthtml")
|| args->isSet("exportie") || args->isSet("exportopera")
|| args->isSet("importmoz") || args->isSet("importns")
@ -160,12 +160,12 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) {
Q_ASSERT(arg2);
// TODO - maybe an xbel export???
if (got > 1) // got == 0 isn't possible as !isGui is dependant on "export.*"
KCmdLineArgs::usage(I18N_NOOP("You may only specify a single --export option."));
TDECmdLineArgs::usage(I18N_NOOP("You may only specify a single --export option."));
TQString path = TQString::fromLocal8Bit(args->getOption(arg2