diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-19 18:46:32 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-19 18:46:32 -0600 |
commit | 9ca7b92557f7d468f8d57838261f4bdddf6d70e0 (patch) | |
tree | 32f771932010128486ca695622f3255e17ee72f6 /src/common/nokde/nokde_kcmdlineargs.h | |
parent | 33294802d33c754914aa4c16de5efe26408e05ef (diff) | |
download | piklab-9ca7b92557f7d468f8d57838261f4bdddf6d70e0.tar.gz piklab-9ca7b92557f7d468f8d57838261f4bdddf6d70e0.zip |
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
Diffstat (limited to 'src/common/nokde/nokde_kcmdlineargs.h')
-rw-r--r-- | src/common/nokde/nokde_kcmdlineargs.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/common/nokde/nokde_kcmdlineargs.h b/src/common/nokde/nokde_kcmdlineargs.h index 3acc565..9dbd01f 100644 --- a/src/common/nokde/nokde_kcmdlineargs.h +++ b/src/common/nokde/nokde_kcmdlineargs.h @@ -42,11 +42,11 @@ typedef TQValueList<TQCString> QCStringList; /** * @short Structure that holds command line options. * - * This class is intended to be used with the KCmdLineArgs class, which + * This class is intended to be used with the TDECmdLineArgs class, which * provides convenient and powerful command line argument parsing and * handling functionality. * - * @see KCmdLineArgs for additional usage information + * @see TDECmdLineArgs for additional usage information */ struct TDECORE_EXPORT KCmdLineOptions { @@ -60,7 +60,7 @@ struct TDECORE_EXPORT KCmdLineOptions * <i>myapp --nofoo</i> is called: * * \code - * KCmdLineArgs::parsedArgs()->isSet("foo"); // false + * TDECmdLineArgs::parsedArgs()->isSet("foo"); // false * \endcode */ const char *name; @@ -78,34 +78,34 @@ struct TDECORE_EXPORT KCmdLineOptions #define KCmdLineLastOption { 0, 0, 0 } -class KCmdLineArgsList; +class TDECmdLineArgsList; class KApplication; class KUniqueApplication; class KCmdLineParsedOptions; class KCmdLineParsedArgs; class KAboutData; -class KCmdLineArgsPrivate; +class TDECmdLineArgsPrivate; /** * @short A class for command-line argument handling. * - * KCmdLineArgs provides simple access to the command-line arguments + * TDECmdLineArgs provides simple access to the command-line arguments * for an application. It takes into account TQt-specific options, * KDE-specific options and application specific options. * * This class is used in %main() via the static method * init(). * - * A typical %KDE application using %KCmdLineArgs should look like this: + * A typical %KDE application using %TDECmdLineArgs should look like this: * * \code * int main(int argc, char *argv[]) * { * // Initialize command line args - * KCmdLineArgs::init(argc, argv, appName, programName, description, version); + * TDECmdLineArgs::init(argc, argv, appName, programName, description, version); * * // Tell which options are supported - * KCmdLineArgs::addCmdLineOptions( options ); + * TDECmdLineArgs::addCmdLineOptions( options ); * * // Add options from other components * KUniqueApplication::addCmdLineOptions(); @@ -122,7 +122,7 @@ class KCmdLineArgsPrivate; * // necessary. * // A KUniqueApplication might want to handle it in newInstance(). * - * KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + * TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); * * // A binary option (on / off) * if (args->isSet("some-option")) @@ -176,7 +176,7 @@ class KCmdLineArgsPrivate; * \endcode * * The I18N_NOOP macro is used to indicate that these strings should be - * marked for translation. The actual translation is done by KCmdLineArgs. + * marked for translation. The actual translation is done by TDECmdLineArgs. * You can't use i18n() here because we are setting up a static data * structure and can't do translations at compile time. * @@ -230,11 +230,11 @@ class KCmdLineArgsPrivate; * @author Waldo Bastian * @version 0.0.4 */ -class TDECORE_EXPORT KCmdLineArgs +class TDECORE_EXPORT TDECmdLineArgs { friend class KApplication; friend class KUniqueApplication; - friend class TQPtrList<KCmdLineArgs>; + friend class TQPtrList<TDECmdLineArgs>; public: // Static functions: @@ -332,8 +332,8 @@ public: * true. If required, you must check yourself the number of arguments * specified by the user: * \code - * KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); - * if (args->count() == 0) KCmdLineArgs::usage(i18n("No file specified!")); + * TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); + * if (args->count() == 0) TDECmdLineArgs::usage(i18n("No file specified!")); * \endcode * * In BNF: @@ -378,7 +378,7 @@ public: * * @param id The name of the options you are interested in, can be 0. */ - static KCmdLineArgs *parsedArgs(const char *id=0); + static TDECmdLineArgs *parsedArgs(const char *id=0); /** * Get the CWD (Current Working Directory) associated with the @@ -512,14 +512,14 @@ public: /** * Used by url(). - * Made public for apps that don't use KCmdLineArgs + * Made public for apps that don't use TDECmdLineArgs * @param urlArg the argument * @return the url. */ static KURL makeURL( const char * urlArg ); /** - * Made public for apps that don't use KCmdLineArgs + * Made public for apps that don't use TDECmdLineArgs * To be done before makeURL, to set the current working * directory in case makeURL needs it. * @param cwd the new working directory @@ -564,7 +564,7 @@ protected: * @internal * Constructor. */ - KCmdLineArgs( const KCmdLineOptions *_options, const char *_name, + TDECmdLineArgs( const KCmdLineOptions *_options, const char *_name, const char *_id); /** @@ -574,7 +574,7 @@ protected: * * Destructor. */ - ~KCmdLineArgs(); + ~TDECmdLineArgs(); private: /** @@ -670,7 +670,7 @@ private: * @param appname The untranslated name of your application. This should * match with @p argv[0]. * - * This function makes KCmdLineArgs ignore all unknown options as well as + * This function makes TDECmdLineArgs ignore all unknown options as well as * all arguments. */ static void initIgnore(int _argc, char **_argv, const char *_appname); @@ -684,7 +684,7 @@ private: KCmdLineParsedArgs *parsedArgList; bool isTQt; - static KCmdLineArgsList *argsList; // All options. + static TDECmdLineArgsList *argsList; // All options. static const KAboutData *about; static int argc; // The original argc @@ -694,7 +694,7 @@ private: static char *mCwd; // Current working directory. Important for KUnqiueApp! static bool parseArgs; - KCmdLineArgsPrivate *d; + TDECmdLineArgsPrivate *d; }; #endif |