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

Wrapper for KCmdLineOptions. More...

#include </tmp/quassel/src/uisupport/kcmdlinewrapper.h>

Inheritance diagram for KCmdLineWrapper:
Collaboration diagram for KCmdLineWrapper:

Public Member Functions

 KCmdLineWrapper ()
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

KCmdLineOptions _cmdLineOptions

Detailed Description

Wrapper for KCmdLineOptions.

Definition at line 29 of file kcmdlinewrapper.h.

Constructor & Destructor Documentation

Definition at line 25 of file kcmdlinewrapper.cpp.

Member Function Documentation

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

Implements AbstractCliParser.

Definition at line 44 of file kcmdlinewrapper.cpp.

References _cmdLineOptions.

QString value ( const QString &  longName)
virtual

Implements AbstractCliParser.

Definition at line 51 of file kcmdlinewrapper.cpp.

bool isSet ( const QString &  longName)
virtual

Implements AbstractCliParser.

Definition at line 57 of file kcmdlinewrapper.cpp.

void usage ( )
virtual

Implements AbstractCliParser.

Definition at line 66 of file kcmdlinewrapper.cpp.

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

KCmdLineOptions _cmdLineOptions
private

Definition at line 43 of file kcmdlinewrapper.h.

Referenced by addArgument(), and init().


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