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));
CurrentMgr::self()->doExport(exportType, path);
} else if (importType) {
if (got > 1) // got == 0 isn't possible as !isGui is dependant on "import.*"
KCmdLineArgs::usage(I18N_NOOP("You may only specify a single --import option."));
TDECmdLineArgs::usage(I18N_NOOP("You may only specify a single --import option."));
TQString path = TQString::fromLocal8Bit(args->getOption(arg2));
ImportCommand *importer = ImportCommand::importerFactory(importType);
importer->import(path, true);

@ -50,10 +50,10 @@ static const KCmdLineOptions options[] =
extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
{
KCmdLineArgs::init( argc, argv, KonqFactory::aboutData() );
TDECmdLineArgs::init( argc, argv, KonqFactory::aboutData() );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KCmdLineArgs::addTempFileOption();
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::addTempFileOption();
KonquerorApplication app;
@ -65,7 +65,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
KGlobal::locale()->insertCatalogue("libkonq"); // needed for apps using libkonq
KImageIO::registerFormats();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KTempFile crashlog_file(locateLocal("tmp", "konqueror-crash-"), ".log");
KonqMainWindow::s_crashlog_file = crashlog_file.file();
@ -191,7 +191,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
urlToOpen.setFileName("");
}
}
const bool tempFile = KCmdLineArgs::isTempFileSet();
const bool tempFile = TDECmdLineArgs::isTempFileSet();
mainwin = KonqMisc::createNewWindow( urlToOpen, urlargs, false, filesToSelect, tempFile );
} else
urlList += urlToOpen;

@ -228,11 +228,11 @@ extern "C" int KDE_EXPORT kdemain(int argc, char* argv[])
"The above list only reflects the contributors\n"
"I managed to keep track of."));
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
//1.53 sec
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
KCmdLineArgs *qtargs = KCmdLineArgs::parsedArgs("qt");
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TDECmdLineArgs *qtargs = TDECmdLineArgs::parsedArgs("qt");
has_noxft = !args->isSet("xft");
TEWidget::setAntialias( !has_noxft );
TEWidget::setStandalone( true );
@ -281,7 +281,7 @@ extern "C" int KDE_EXPORT kdemain(int argc, char* argv[])
if (!args->getOption("e").isEmpty())
{
if (args->isSet("ls"))
KCmdLineArgs::usage(i18n("You can't use BOTH -ls and -e.\n"));
TDECmdLineArgs::usage(i18n("You can't use BOTH -ls and -e.\n"));
shell = strdup(args->getOption("e"));
eargs.append(shell);
for(int i=0; i < args->count(); i++)
@ -408,7 +408,7 @@ extern "C" int KDE_EXPORT kdemain(int argc, char* argv[])
}
else
{
KCmdLineArgs::usage(i18n("expected --vt_sz <#columns>x<#lines> e.g. 80x40\n"));
TDECmdLineArgs::usage(i18n("expected --vt_sz <#columns>x<#lines> e.g. 80x40\n"));
}
}

@ -77,8 +77,8 @@ int main(int argc, char **argv)
aboutdata->addAuthor("Matthias Ettrich",
I18N_NOOP("Developer"),"ettrich@kde.org", "");
KCmdLineArgs::init(argc, argv, aboutdata);
KCmdLineArgs::addCmdLineOptions(pagerOpts);
TDECmdLineArgs::init(argc, argv, aboutdata);
TDECmdLineArgs::addCmdLineOptions(pagerOpts);
KUniqueApplication::addCmdLineOptions();
if (!KUniqueApplication::start())
@ -89,7 +89,7 @@ int main(int argc, char **argv)
KApplication * app = new KPagerApplication;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KPagerMainWindow *kpager = new KPagerMainWindow(0,"KPager");
kpager->setPlainCaption( i18n("Desktop Pager") );

@ -42,8 +42,8 @@ int main(int argc, char *argv[])
aboutData.addAuthor("Carsten Wolff",0, "wolff@kde.org");
aboutData.addAuthor("qwertz",0, "kraftw@gmx.de");
aboutData.addAuthor("Bernhard Rosenkraenzer", 0, "bero@redhat.com");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KLocale::setMainCatalogue("kpersonalizer");
@ -51,7 +51,7 @@ int main(int argc, char *argv[])
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->isSet("before-session"))
KPersonalizer::setBeforeSession();

@ -49,9 +49,9 @@ int main(int argc, char **argv)
KAboutData::License_GPL,
"(c) 2001 Red Hat, Inc.");
aboutData.addAuthor("Bernhard Rosenkraenzer", 0, "bero@redhat.com");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
KCmdLineArgs *args=KCmdLineArgs::parsedArgs();
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs *args=TDECmdLineArgs::parsedArgs();
TQString group=TQString::fromLocal8Bit(args->getOption("group"));
TQString key=TQString::fromLocal8Bit(args->getOption("key"));
@ -60,7 +60,7 @@ int main(int argc, char **argv)
TQCString type=args->getOption("type").lower();
if (key.isNull()) {
KCmdLineArgs::usage();
TDECmdLineArgs::usage();
return 1;
}

@ -32,9 +32,9 @@ int main(int argc, char **argv)
"(c) 2001 Red Hat, Inc. & Lu<4C>s Pedro Coelho");
aboutData.addAuthor("Lu<EFBFBD>s Pedro Coelho", 0, "luis_pedro@netcabo.pt");
aboutData.addAuthor("Bernhard Rosenkraenzer", "Wrote kreadconfig on which this is based", "bero@redhat.com");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
KCmdLineArgs *args=KCmdLineArgs::parsedArgs();
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs *args=TDECmdLineArgs::parsedArgs();
TQString group=TQString::fromLocal8Bit(args->getOption("group"));
TQString key=TQString::fromLocal8Bit(args->getOption("key"));
@ -43,7 +43,7 @@ int main(int argc, char **argv)
if (key.isNull() || !args->count()) {
KCmdLineArgs::usage();
TDECmdLineArgs::usage();
return 1;
}
TQCString value = args->arg( 0 );

@ -49,13 +49,13 @@ int main(int argc, char **argv)
KAboutData about("krootbacking", I18N_NOOP("krootbacking"), version, description,
KAboutData::License_GPL, "(C) 2011 Timothy Pearson", 0, 0, "kb9vqf@pearsoncomputing.net");
about.addAuthor( "Timothy Pearson", 0, "kb9vqf@pearsoncomputing.net" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
// no session.. just start up normally
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
/// @todo do something with the command line args here
args->clear();

@ -101,15 +101,15 @@ bool hasDirectRendering () {
int main(int argc, char *argv[])
{
KLocale::setMainCatalogue("kscreensaver");
KCmdLineArgs::init(argc, argv, appName, I18N_NOOP("Random screen saver"), description, version);
TDECmdLineArgs::init(argc, argv, appName, I18N_NOOP("Random screen saver"), description, version);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
Window windowId = 0;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->isSet("setup"))
{

@ -186,15 +186,15 @@ extern "C" KDE_EXPORT int kdemain( int argc, char* argv[] )
aboutData.addAuthor("Matthias Ettrich",0, "ettrich@kde.org");
aboutData.addAuthor("Luboš Luňák", I18N_NOOP( "Maintainer" ), "l.lunak@kde.org" );
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
putenv((char*)"SESSION_MANAGER=");
KApplication a(KApplication::openX11RGBADisplay(), false); // Disable styles until we need them.
fcntl(ConnectionNumber(tqt_xdisplay()), F_SETFD, 1);
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
kapp->dcopClient()->registerAs("ksmserver", false);
if (!kapp->dcopClient()->isRegistered())

@ -8,7 +8,7 @@ int
main(int argc, char *argv[])
{
KAboutData about("kapptest", "kapptest", "version");
KCmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::init(argc, argv, &about);
KApplication a;
a.iconLoader()->addAppDir("ksmserver");

@ -50,9 +50,9 @@ int main( int argc, char **argv )
about.addAuthor( "Ravikiran Rajagopal", I18N_NOOP("Author and maintainer"), "ravi@ee.eng.ohio-state.edu" );
about.addAuthor( "Brian Ledbetter", I18N_NOOP("Original author"), "brian@shadowcom.net" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions(options);
KCmdLineArgs *arg = KCmdLineArgs::parsedArgs();
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs *arg = TDECmdLineArgs::parsedArgs();
if ( !( arg->isSet( "dcop" ) ) )
KApplication::disableAutoDcopRegistration();

@ -50,7 +50,7 @@ ObjKsTheme::ObjKsTheme( const TQString& theme )
if( !loadLocalConfig( mActiveTheme, false ) )
if( !loadThemeRc( "Default", false ) )
loadLocalConfig( "Default", true ); //force: we need some defaults
loadCmdLineArgs(KCmdLineArgs::parsedArgs());
loadCmdLineArgs(TDECmdLineArgs::parsedArgs());
mThemePrefix += ( mActiveTheme + "/" );
}
@ -141,7 +141,7 @@ bool ObjKsTheme::loadKConfig( KConfig *cfg, const TQString& activeTheme, bool fo
* ObjKsTheme::loadCmdLineArgs(): Handle any overrides which the user might have
* specified.
*/
void ObjKsTheme::loadCmdLineArgs( KCmdLineArgs *args )
void ObjKsTheme::loadCmdLineArgs( TDECmdLineArgs *args )
{
mManagedMode = args->isSet( "managed" );

@ -33,7 +33,7 @@ public:
explicit ObjKsTheme( const TQString& );
virtual ~ObjKsTheme();
void loadCmdLineArgs( KCmdLineArgs * );
void loadCmdLineArgs( TDECmdLineArgs * );
TQString theme() const { return( mActiveTheme ); }
TQString themeEngine() const { return( mThemeEngine ); }

@ -59,7 +59,7 @@ ThemeEngine::ThemeEngine( TQWidget *, const char *, const TQStringList& args )
if (args.first() == "Unified") {
mUseWM = true;
}
mTheme->loadCmdLineArgs( KCmdLineArgs::parsedArgs() );
mTheme->loadCmdLineArgs( TDECmdLineArgs::parsedArgs() );
}
ThemeEngine::~ThemeEngine()

@ -90,7 +90,7 @@ KSplash::~KSplash()
void KSplash::slotReadProperties( KConfig *config )
{
KCmdLineArgs *arg = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *arg = TDECmdLineArgs::parsedArgs();
mTheme = arg->getOption("theme");
if (mTheme.isEmpty())
{
@ -357,7 +357,7 @@ ThemeEngine *KSplash::_loadThemeEngine( const TQString& pluginName, const TQStri
TQString libName;
TQString objName;
// Replace this test by a "nodcop" command line option.
if ( /*!mKsTheme->managedMode() ||*/ !KCmdLineArgs::parsedArgs()->isSet( "dcop" ) )
if ( /*!mKsTheme->managedMode() ||*/ !TDECmdLineArgs::parsedArgs()->isSet( "dcop" ) )
{
libName = TQString("ksplash%1").arg(pluginName.lower());
objName = TQString("Theme%1").arg(pluginName);

@ -298,16 +298,16 @@ int main( int argc, char *argv[] )
aboutData.addAuthor( "David Faure", 0, "faure@kde.org" );
aboutData.addAuthor( "Richard J. Moore", 0, "rich@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
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() == 0 )
KCmdLineArgs::usage(i18n("No command specified"));
TDECmdLineArgs::usage(i18n("No command specified"));
for(int i=0; i < args->count(); i++)
proc << args->arg(i);

@ -568,8 +568,8 @@ int main( int argc, char** argv )
"module of William LeFebvre's \"top\" utility." ),
"tk@Genetik.Uni-Bielefeld.DE" );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication::disableAutoDcopRegistration();
// initialize KDE application
@ -578,7 +578,7 @@ int main( int argc, char** argv )
KSGRD::SensorMgr = new KSGRD::SensorManager();
KSGRD::Style = new KSGRD::StyleEngine();
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
int result = 0;

@ -55,15 +55,15 @@ int main( int argc, char *argv[] )
"(C) 2001-2002 Richard Moore (rich@kde.org)" );
aboutData.addAuthor( "Richard Moore", 0, "rich@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;
//
// Setup the tray icon from the arguments.
//
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KSysTrayCmd cmd;
// Read the window id
@ -90,7 +90,7 @@ int main( int argc, char *argv[] )
cmd.setPattern( title );
if ( !title && !wid && (args->count() == 0) )
KCmdLineArgs::usage(i18n("No command or window specified"));
TDECmdLineArgs::usage(i18n("No command or window specified"));
// Read the command
TQString command;

@ -36,7 +36,7 @@ int main(int argc, char *argv[])
KAboutData aboutData("ktip", I18N_NOOP("KTip"),
"0.3", description, KAboutData::License_GPL,
"(c) 1998-2002, KDE Developers");
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KUniqueApplication::addCmdLineOptions();
if (!KUniqueApplication::start())

@ -377,7 +377,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
KAboutData about("kxkb", I18N_NOOP("TDE Keyboard Tool"), "1.0",
DESCRIPTION, KAboutData::License_LGPL,
"Copyright (C) 2001, S.R.Haque\n(C) 2002-2003, 2006 Andriy Rysin");
KCmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::init(argc, argv, &about);
KXKBApp::addCmdLineOptions();
if (!KXKBApp::start())

@ -54,7 +54,7 @@ void testKonqIconDrag2()
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init( argc, argv, "kurltest", 0, 0, 0, 0 );
TDECmdLineArgs::init( argc, argv, "kurltest", 0, 0, 0, 0 );
KApplication app; // GUI needed for QPixmaps
testKonqIconDrag2();

@ -530,9 +530,9 @@ int main( int argc, char **argv )
"(c) 2000,2001 by Stefan Schimanski" );
KLocale::setMainCatalogue("nsplugin");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
showProgress = args->isSet("verbose");
if (showProgress) {

@ -124,7 +124,7 @@ int main(int argc, char *argv[])
{
kdDebug() << "main" << endl;
setvbuf( stderr, NULL, _IONBF, 0 );
KCmdLineArgs::init(argc, argv, "nsplugin", "A Netscape Plugin test program", "0.1");
TDECmdLineArgs::init(argc, argv, "nsplugin", "A Netscape Plugin test program", "0.1");
KApplication app("nsplugin");

@ -54,8 +54,8 @@ int main(int argc, char **argv)
KAboutData about("tdeinit_displayconfig", I18N_NOOP("tdeinit_displayconfig"), version, description,
KAboutData::License_GPL, "(C) 2013 Timothy Pearson", 0, 0, "kb9vqf@pearsoncomputing.net");
about.addAuthor( "Timothy Pearson", 0, "kb9vqf@pearsoncomputing.net" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication::disableAutoDcopRegistration();
KApplication app;

@ -50,8 +50,8 @@ int main(int argc, char **argv)
KAboutData about("tdeinit_phase1", I18N_NOOP("tdeinit_phase1"), version, description,
KAboutData::License_GPL, "(C) 2012 Timothy Pearson", 0, 0, "kb9vqf@pearsoncomputing.net");
about.addAuthor( "Timothy Pearson", 0, "kb9vqf@pearsoncomputing.net" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication::disableAutoDcopRegistration();
KApplication app;

@ -108,7 +108,7 @@ int KJobViewerApp::newInstance()
void KJobViewerApp::initialize()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool showIt = args->isSet("show");
bool all = args->isSet("all");
QString prname = args->getOption("d");

@ -37,8 +37,8 @@ extern "C" int KDE_EXPORT kdemain(int argc, char *argv[])
{
KAboutData aboutData("kjobviewer",I18N_NOOP("KJobViewer"),"0.1",I18N_NOOP("A print job viewer"),KAboutData::License_GPL,"(c) 2001, Michael Goffioul", 0, "http://printing.kde.org");
aboutData.addAuthor("Michael Goffioul",0,"tdeprint@swing.be");
KCmdLineArgs::init(argc,argv,&aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KJobViewerApp::addCmdLineOptions();
if (!KJobViewerApp::start())

@ -44,8 +44,8 @@ static KCmdLineOptions options[] =
extern "C" int KDE_EXPORT kdemain(int argc, char *argv[])
{
KCmdLineArgs::init(argc,argv,"kprinter",I18N_NOOP("KPrinter"),I18N_NOOP("A printer tool for TDE" ),"0.0.1");
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc,argv,"kprinter",I18N_NOOP("KPrinter"),I18N_NOOP("A printer tool for TDE" ),"0.0.1");
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
PrintWrapper *wrap = new PrintWrapper;
app.setMainWidget(wrap);

@ -135,7 +135,7 @@ PrintWrapper::PrintWrapper()
void PrintWrapper::slotPrint()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
struct sigaction action;

@ -147,7 +147,7 @@ int kdemain(int argc, char **argv)
/* create fake KApplicatiom object, needed for job stuffs */
KAboutData about( "kio_print", "kio_print", "fake_version",
"TDEPrint IO slave", KAboutData::License_GPL, "(c) 2003, Michael Goffioul" );
KCmdLineArgs::init( &about );
TDECmdLineArgs::init( &about );
KApplication app;
KIO_Print slave(argv[2], argv[3]);

@ -51,12 +51,12 @@ int main(int argc, char *argv[])
"1.0", description, KAboutData::License_GPL,
"(c), 2001 Michael Goffioul", 0, "http://printing.kde.org");
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;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KdeprintFax *w = new KdeprintFax;
a.setMainWidget(w);

@ -106,8 +106,8 @@ int main(int argc, char *argv[])
aboutData.addAuthor("Pietro Iglio", I18N_NOOP("Original author"),
"iglio@fub.it");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication::disableAutoDcopRegistration();
// tdesu doesn't process SM events, so don't even connect to ksmserver
TQCString session_manager = getenv( "SESSION_MANAGER" );
@ -137,7 +137,7 @@ int main(int argc, char *argv[])
static int startApp()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// Stop daemon and exit?
if (args->isSet("s"))
{
@ -205,7 +205,7 @@ static int startApp()
int priority = tmp.toInt(&ok);
if (!ok || (priority < 0) || (priority > 100))
{
KCmdLineArgs::usage(i18n("Illegal priority: %1").arg(static_cast<const char *>(tmp)));
TDECmdLineArgs::usage(i18n("Illegal priority: %1").arg(static_cast<const char *>(tmp)));
exit(1);
}
int scheduler = SuProcess::SchedNormal;
@ -233,7 +233,7 @@ static int startApp()
{
if( args->count() == 0 )
{
KCmdLineArgs::usage(i18n("No command specified."));
TDECmdLineArgs::usage(i18n("No command specified."));
exit(1);
}
command = args->arg(0);

@ -257,7 +257,7 @@ int main(int argc, char *argv[])
"Copyright (c) 1999,2000 Geert Jansen");
aboutData.addAuthor("Geert Jansen", I18N_NOOP("Author"),
"jansen@kde.org", "http://www.stack.nl/~geertj/");
KCmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::init(argc, argv, &aboutData);
KInstance instance(&aboutData);
// Set core dump size to 0

@ -195,7 +195,7 @@ void
kg_main( const char *argv0 )
{
static char *argv[] = { (char *)"tdmgreet", 0 };
KCmdLineArgs::init( 1, argv, *argv, 0, 0, 0, true );
TDECmdLineArgs::init( 1, argv, *argv, 0, 0, 0, true );
kdDebug() << timestamp() << "start" << endl;
kde_have_kipc = false;

@ -118,10 +118,10 @@ main( int argc, char *argv[] )
KApplication::disableAutoDcopRegistration();
KLocale::setMainCatalogue( "kdesktop" );
KCmdLineArgs::init( argc, argv, "krootimage", I18N_NOOP( "KRootImage" ), description, version );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init( argc, argv, "krootimage", I18N_NOOP( "KRootImage" ), description, version );
TDECmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (!args->count())
args->usage();
MyApplication app( args->arg( 0 ) );

@ -39,10 +39,10 @@ void copy(const TQString &src, const TQString &dest)
int main(int argc, char **argv)
{
KCmdLineArgs::init(argc, argv, "kwmtheme", description, "0.1");
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, "kwmtheme", description, "0.1");
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app(argc, argv);
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if(!args->count()){
kdWarning() << "You need to specify the path to a theme config file!" << endl;
return(1);

@ -276,18 +276,18 @@ extern "C"
KDE_EXPORT int kdemain( int argc, char* argv[] )
{
KLocale::setMainCatalogue( "kcmtwinrules" );
KCmdLineArgs::init( argc, argv, "twin_rules_dialog", I18N_NOOP( "TWin" ),
TDECmdLineArgs::init( argc, argv, "twin_rules_dialog", I18N_NOOP( "TWin" ),
I18N_NOOP( "TWin helper utility" ), "1.0" );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
bool id_ok = false;
Window id = args->getOption( "wid" ).toULong( &id_ok );
bool whole_app = args->isSet( "whole-app" );
args->clear();
if( !id_ok || id == None )
{
KCmdLineArgs::usage( i18n( "This helper utility is not supposed to be called directly." ));
TDECmdLineArgs::usage( i18n( "This helper utility is not supposed to be called directly." ));
return 1;
}
return KWinInternal::edit( id, whole_app );

@ -46,11 +46,11 @@ static const KCmdLineOptions options[] =
int main( int argc, char* argv[] )
{
KLocale::setMainCatalogue( "twin" ); // the messages are in twin's .po file
KCmdLineArgs::init( argc, argv, "twin_killer_helper", I18N_NOOP( "TWin" ),
TDECmdLineArgs::init( argc, argv, "twin_killer_helper", I18N_NOOP( "TWin" ),
I18N_NOOP( "TWin helper utility" ), "1.0" );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
TQCString hostname = args->getOption( "hostname" );
bool pid_ok = false;
pid_t pid = args->getOption( "pid" ).toULong( &pid_ok );
@ -64,7 +64,7 @@ int main( int argc, char* argv[] )
if( !pid_ok || pid == 0 || !id_ok || id == None || !time_ok || timestamp == CurrentTime
|| hostname.isEmpty() || caption.isEmpty() || appname.isEmpty())
{
KCmdLineArgs::usage( i18n( "This helper utility is not supposed to be called directly." ));
TDECmdLineArgs::usage( i18n( "This helper utility is not supposed to be called directly." ));
return 1;
}
TQString question = i18n(

@ -88,7 +88,7 @@ Application::Application( )
// I'm special...
setQuitOnLastWindowClosed(false);
#endif // USE_QT4
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
if (!config()->isImmutable() && args->isSet("lock"))
{
config()->setReadOnly(true);
@ -317,8 +317,8 @@ KDE_EXPORT int kdemain( int argc, char * argv[] )
aboutData.addAuthor("Daniel M. Duley",0, "mosfet@kde.org");
aboutData.addAuthor("Luboš Luňák", I18N_NOOP( "Maintainer" ), "l.lunak@kde.org");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions( args );
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions( args );
if (signal(SIGTERM, KWinInternal::sighandler) == SIG_IGN)
signal(SIGTERM, SIG_IGN);

@ -45,11 +45,11 @@ static const KCmdLineOptions options[] =
int main( int argc, char* argv[] )
{
KLocale::setMainCatalogue( "twin" ); // the messages are in twin's .po file
KCmdLineArgs::init( argc, argv, "twin_resume_helper", I18N_NOOP( "TWin" ),
TDECmdLineArgs::init( argc, argv, "twin_resume_helper", I18N_NOOP( "TWin" ),
I18N_NOOP( "TWin helper utility" ), "1.0" );
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
TQCString hostname = args->getOption( "hostname" );
bool pid_ok = false;
pid_t pid = args->getOption( "pid" ).toULong( &pid_ok );

@ -102,13 +102,13 @@ int main(int argc, char** argv)
TQString style = "keramik";
// KApplication app(argc, argv);
KAboutData about("decobenchmark", "DecoBenchmark", "0.1", "twin decoration performance tester...", KAboutData::License_LGPL, "(C) 2005 Sandro Giessl");
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->count() != 3)
KCmdLineArgs::usage("Wrong number of arguments!");
TDECmdLineArgs::usage("Wrong number of arguments!");
TQString library = TQString(args->arg(0) );
TQString t = TQString(args->arg(1) );
@ -126,7 +126,7 @@ int main(int argc, char** argv)
else if (t == "recreation")
test = RecreationTest;
else
KCmdLineArgs::usage("Specify a valid test!");
TDECmdLineArgs::usage("Specify a valid test!");
DecoBenchApplication app(library, test, count);

Loading…
Cancel
Save