Go to the documentation of this file.
23#include <QtCore/QBool>
27template <
class T>
class QList;
35class KCmdLineArgsPrivate;
36class KCmdLineArgsStatic;
37class KCmdLineOptionsPrivate;
134 KCmdLineOptionsPrivate *d;
137class KCmdLineArgsList;
296 Q_DECLARE_FLAGS(StdCmdLineArgs, StdCmdLineArg)
315 static void init(
int argc,
char **argv,
316 const QByteArray &appname,
317 const QByteArray &catalog,
319 const QByteArray &version,
321 StdCmdLineArgs stdargs=StdCmdLineArgs(CmdLineArgQt|CmdLineArgKDE));
335 static void init(
int _argc,
338 StdCmdLineArgs stdargs=StdCmdLineArgs(CmdLineArgQt|CmdLineArgKDE));
357 static void addStdCmdLineOptions(StdCmdLineArgs stdargs=StdCmdLineArgs(CmdLineArgQt|CmdLineArgKDE));
424 const QByteArray &
id = QByteArray(),
425 const QByteArray &afterId = QByteArray());
436 static KCmdLineArgs *parsedArgs(
const QByteArray &
id = QByteArray());
462 static void usage(
const QByteArray &
id = QByteArray());
468 static void usageError(
const QString &error);
476 static void enable_i18n();
499 QString getOption(
const QByteArray &option)
const;
517 QStringList getOptionList(
const QByteArray &option)
const;
533 bool isSet(
const QByteArray &option)
const;
566 KUrl url(
int n)
const;
574 static KUrl makeURL(
const QByteArray &urlArg );
582 static void setCwd(
const QByteArray &cwd );
601 static void loadAppArgs( QDataStream &);
608 static void saveAppArgs( QDataStream &);
613 static void addTempFileOption();
620 static bool isTempFileSet();
627 static int &qtArgc();
637 static char **qtArgv();
656 const QByteArray &_id);
684 static void initIgnore(
int _argc,
char **_argv,
const QByteArray &_appname);
686 KCmdLineArgsPrivate *
const d;
689Q_DECLARE_OPERATORS_FOR_FLAGS(KCmdLineArgs::StdCmdLineArgs)
This class is used to store information about a program.
A class for command-line argument handling.
KCmdLineArgs(const KCmdLineOptions &_options, const KLocalizedString &_name, const QByteArray &_id)
Constructor.
friend class KCmdLineArgsStatic
friend class KApplication
friend class KCmdLineArgsList
Class that holds command line options.
friend class KCmdLineArgs
friend class KCmdLineArgsStatic
KCmdLineOptions()
Constructor.
KCmdLineOptions & add(const QByteArray &name, const KLocalizedString &description=KLocalizedString(), const QByteArray &defaultValue=QByteArray())
Add command line option, by providing its name, description, and possibly a default value.
Class for producing and handling localized messages.
Represents and parses a URL.
QString defaultValue(const QString &t)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.