KDECore
Go to the documentation of this file.
23#include <QtCore/QBool>
27template <
class T>
class QList;
35class KCmdLineArgsPrivate;
36class KCmdLineArgsStatic;
37class KCmdLineOptionsPrivate;
51 friend class KCmdLineArgsStatic;
134 KCmdLineOptionsPrivate *d;
137class KCmdLineArgsList;
283 friend class KApplication;
284 friend class KCmdLineArgsList;
285 friend class KCmdLineArgsStatic;
291 CmdLineArgKDE = 0x02,
292 CmdLineArgsMask=0x03,
293 CmdLineArgNone = 0x00,
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.
Class that holds command line options.
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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.