Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
AbstractCliParser Class Reference

#include </tmp/quassel/src/common/abstractcliparser.h>

Inheritance diagram for AbstractCliParser:

Classes

struct  CliParserArg

Public Member Functions

virtual bool init (const QStringList &arguments=QStringList())=0
virtual QString value (const QString &longName)=0
virtual bool isSet (const QString &longName)=0
void addSwitch (const QString &longName, const char shortName=0, const QString &help=QString())
void addOption (const QString &longName, const char shortName=0, const QString &help=QString(), const QString &valueName=QString(), const QString &def=QString())
virtual void usage ()=0
virtual ~AbstractCliParser ()

Protected Member Functions

virtual void addArgument (const QString &longName, const CliParserArg &arg)=0

Detailed Description

Definition at line 26 of file abstractcliparser.h.

Constructor & Destructor Documentation

virtual ~AbstractCliParser ( )
inlinevirtual

Definition at line 47 of file abstractcliparser.h.

Member Function Documentation

virtual bool init ( const QStringList &  arguments = QStringList())
pure virtual

Implemented in CliParser, KCmdLineWrapper, and Qt5CliParser.

Referenced by main().

virtual QString value ( const QString &  longName)
pure virtual

Implemented in CliParser, KCmdLineWrapper, and Qt5CliParser.

Referenced by Quassel::optionValue().

virtual bool isSet ( const QString &  longName)
pure virtual

Implemented in CliParser, KCmdLineWrapper, and Qt5CliParser.

Referenced by Quassel::isOptionSet().

void addSwitch ( const QString &  longName,
const char  shortName = 0,
const QString &  help = QString() 
)
inline

Definition at line 33 of file abstractcliparser.h.

References addArgument(), and AbstractCliParser::CliParserArg::CliArgSwitch.

Referenced by main().

void addOption ( const QString &  longName,
const char  shortName = 0,
const QString &  help = QString(),
const QString &  valueName = QString(),
const QString &  def = QString() 
)
inline

Definition at line 39 of file abstractcliparser.h.

References addArgument(), and AbstractCliParser::CliParserArg::CliArgOption.

Referenced by main().

virtual void usage ( )
pure virtual

Implemented in CliParser, KCmdLineWrapper, and Qt5CliParser.

Referenced by Quassel::init(), and main().

virtual void addArgument ( const QString &  longName,
const CliParserArg arg 
)
protectedpure virtual

Referenced by addOption(), and addSwitch().


The documentation for this class was generated from the following file: