|
|
|
@ -80,7 +80,7 @@ struct TDECORE_EXPORT TDECmdLineOptions
|
|
|
|
|
|
|
|
|
|
class TDECmdLineArgsList;
|
|
|
|
|
class TDEApplication;
|
|
|
|
|
class KUniqueApplication;
|
|
|
|
|
class TDEUniqueApplication;
|
|
|
|
|
class TDECmdLineParsedOptions;
|
|
|
|
|
class TDECmdLineParsedArgs;
|
|
|
|
|
class TDEAboutData;
|
|
|
|
@ -108,19 +108,19 @@ class TDECmdLineArgsPrivate;
|
|
|
|
|
* TDECmdLineArgs::addCmdLineOptions( options );
|
|
|
|
|
*
|
|
|
|
|
* // Add options from other components
|
|
|
|
|
* KUniqueApplication::addCmdLineOptions();
|
|
|
|
|
* TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
|
*
|
|
|
|
|
* ....
|
|
|
|
|
*
|
|
|
|
|
* // Create application object without passing 'argc' and 'argv' again.
|
|
|
|
|
* KUniqueApplication app;
|
|
|
|
|
* TDEUniqueApplication app;
|
|
|
|
|
*
|
|
|
|
|
* ....
|
|
|
|
|
*
|
|
|
|
|
* // Handle our own options/arguments
|
|
|
|
|
* // A TDEApplication will usually do this in main but this is not
|
|
|
|
|
* // necessary.
|
|
|
|
|
* // A KUniqueApplication might want to handle it in newInstance().
|
|
|
|
|
* // A TDEUniqueApplication might want to handle it in newInstance().
|
|
|
|
|
*
|
|
|
|
|
* TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
*
|
|
|
|
@ -233,7 +233,7 @@ class TDECmdLineArgsPrivate;
|
|
|
|
|
class TDECORE_EXPORT TDECmdLineArgs
|
|
|
|
|
{
|
|
|
|
|
friend class TDEApplication;
|
|
|
|
|
friend class KUniqueApplication;
|
|
|
|
|
friend class TDEUniqueApplication;
|
|
|
|
|
friend class TQPtrList<TDECmdLineArgs>;
|
|
|
|
|
public:
|
|
|
|
|
// Static functions:
|
|
|
|
@ -384,7 +384,7 @@ public:
|
|
|
|
|
* Get the CWD (Current Working Directory) associated with the
|
|
|
|
|
* 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
|
|
|
|
|
* where the user started a second instance.
|
|
|
|
|
* @return the current working directory
|
|
|
|
@ -617,7 +617,7 @@ private:
|
|
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|