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

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

Inheritance diagram for Qt5CliParser:
Collaboration diagram for Qt5CliParser:

Public Member Functions

bool init (const QStringList &arguments=QStringList())
QString value (const QString &longName)
bool isSet (const QString &longName)
void usage ()
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())

Private Member Functions

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

Private Attributes

QCommandLineParser _qCliParser

Detailed Description

Definition at line 28 of file qt5cliparser.h.

Member Function Documentation

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

Implements AbstractCliParser.

Definition at line 26 of file qt5cliparser.cpp.

References _qCliParser.

QString value ( const QString &  longName)
virtual

Implements AbstractCliParser.

Definition at line 44 of file qt5cliparser.cpp.

References _qCliParser.

bool isSet ( const QString &  longName)
virtual

Implements AbstractCliParser.

Definition at line 37 of file qt5cliparser.cpp.

References _qCliParser.

void usage ( )
virtual

Implements AbstractCliParser.

Definition at line 50 of file qt5cliparser.cpp.

References _qCliParser.

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

Member Data Documentation

QCommandLineParser _qCliParser
private

Definition at line 40 of file qt5cliparser.h.

Referenced by addArgument(), init(), isSet(), usage(), and value().


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