Generic actions description files reader class.
More...
#include <QtxActionMgr.h>
This class is used to read files of some format to create actions and fill an action manager with the actions automatically.
QtxActionMgr::Reader::Reader |
( |
| ) |
|
QtxActionMgr::Reader::~Reader |
( |
| ) |
|
|
virtual |
QString QtxActionMgr::Reader::option |
( |
const QString & |
name, |
|
|
const QString & |
def = QString() |
|
) |
| const |
If there is no such option the default value (def) is returned.
- Parameters
-
name | option name |
def | default option value |
- Returns
- option value
QStringList QtxActionMgr::Reader::options |
( |
| ) |
const |
bool QtxActionMgr::Reader::read |
( |
const QString & |
fname, |
|
|
Creator & |
cr |
|
) |
| const |
|
pure virtual |
This method should be redefined in the subclasses.
- Parameters
-
fname | XML file name |
cr | actions creator |
- Returns
true
on success and false
in case of error
Implemented in QtxActionMgr::XMLReader.
void QtxActionMgr::Reader::setOption |
( |
const QString & |
name, |
|
|
const QString & |
value |
|
) |
| |
- Parameters
-
name | option name |
value | new option value |
QMap< QString, QString > QtxActionMgr::Reader::myOptions |
|
private |
The documentation for this class was generated from the following files: