|
|
@ -80,7 +80,7 @@ struct TDECORE_EXPORT TDECmdLineOptions
|
|
|
|
|
|
|
|
|
|
|
|
class TDECmdLineArgsList;
|
|
|
|
class TDECmdLineArgsList;
|
|
|
|
class TDEApplication;
|
|
|
|
class TDEApplication;
|
|
|
|
class KUniqueApplication;
|
|
|
|
class TDEUniqueApplication;
|
|
|
|
class TDECmdLineParsedOptions;
|
|
|
|
class TDECmdLineParsedOptions;
|
|
|
|
class TDECmdLineParsedArgs;
|
|
|
|
class TDECmdLineParsedArgs;
|
|
|
|
class TDEAboutData;
|
|
|
|
class TDEAboutData;
|
|
|
@ -108,19 +108,19 @@ class TDECmdLineArgsPrivate;
|
|
|
|
* TDECmdLineArgs::addCmdLineOptions( options );
|
|
|
|
* TDECmdLineArgs::addCmdLineOptions( options );
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* // Add options from other components
|
|
|
|
* // Add options from other components
|
|
|
|
* KUniqueApplication::addCmdLineOptions();
|
|
|
|
* TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* ....
|
|
|
|
* ....
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* // Create application object without passing 'argc' and 'argv' again.
|
|
|
|
* // Create application object without passing 'argc' and 'argv' again.
|
|
|
|
* KUniqueApplication app;
|
|
|
|
* TDEUniqueApplication app;
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* ....
|
|
|
|
* ....
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* // Handle our own options/arguments
|
|
|
|
* // Handle our own options/arguments
|
|
|
|
* // A TDEApplication will usually do this in main but this is not
|
|
|
|
* // A TDEApplication will usually do this in main but this is not
|
|
|
|
* // necessary.
|
|
|
|
* // necessary.
|
|
|
|
* // A KUniqueApplication might want to handle it in newInstance().
|
|
|
|
* // A TDEUniqueApplication might want to handle it in newInstance().
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
* TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -233,7 +233,7 @@ class TDECmdLineArgsPrivate;
|
|
|
|
class TDECORE_EXPORT TDECmdLineArgs
|
|
|
|
class TDECORE_EXPORT TDECmdLineArgs
|
|
|
|
{
|
|
|
|
{
|
|
|
|
friend class TDEApplication;
|
|
|
|
friend class TDEApplication;
|
|
|
|
friend class KUniqueApplication;
|
|
|
|
friend class TDEUniqueApplication;
|
|
|
|
friend class TQPtrList<TDECmdLineArgs>;
|
|
|
|
friend class TQPtrList<TDECmdLineArgs>;
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
// Static functions:
|
|
|
|
// Static functions:
|
|
|
@ -384,7 +384,7 @@ public:
|
|
|
|
* Get the CWD (Current Working Directory) associated with the
|
|
|
|
* Get the CWD (Current Working Directory) associated with the
|
|
|
|
* current command line arguments.
|
|
|
|
* current command line arguments.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Typically this is needed in KUniqueApplication::newInstance()
|
|
|
|
* Typically this is needed in TDEUniqueApplication::newInstance()
|
|
|
|
* since the CWD of the process may be different from the CWD
|
|
|
|
* since the CWD of the process may be different from the CWD
|
|
|
|
* where the user started a second instance.
|
|
|
|
* where the user started a second instance.
|
|
|
|
* @return the current working directory
|
|
|
|
* @return the current working directory
|
|
|
@ -617,7 +617,7 @@ private:
|
|
|
|
static void removeArgs(const char *id);
|
|
|
|
static void removeArgs(const char *id);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @internal for KUniqueApplication only:
|
|
|
|
* @internal for TDEUniqueApplication only:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Save all but the TQt and KDE arguments to a stream.
|
|
|
|
* Save all but the TQt and KDE arguments to a stream.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|