KDECore
Go to the documentation of this file.
19 #ifndef KCMDLINEARGS_H
20 #define KCMDLINEARGS_H
23 #include <QtCore/QBool>
27 template <
class T>
class QList;
35 class KCmdLineArgsPrivate;
36 class KCmdLineArgsStatic;
37 class KCmdLineOptionsPrivate;
51 friend class KCmdLineArgsStatic;
134 KCmdLineOptionsPrivate *d;
137 class 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,
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));
423 const KLocalizedString &name = KLocalizedString(),
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;
689 Q_DECLARE_OPERATORS_FOR_FLAGS(
KCmdLineArgs::StdCmdLineArgs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:00:53 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.