Qt 4.8
|
#include <qscriptdebuggerconsolecommandmanager_p.h>
Public Functions | |
void | addCommand (QScriptDebuggerConsoleCommand *command) |
Adds the given command. More... | |
void | addCommandGroup (const QString &name, const QScriptDebuggerConsoleCommandGroupData &data) |
Registers a command group with the given name and data. More... | |
QScriptDebuggerConsoleCommandGroupData | commandGroupData (const QString &name) const |
Returns data associated with the group of the given name. More... | |
QScriptDebuggerConsoleCommandGroupMap | commandGroups () const |
Returns all command groups. More... | |
QMap< QString, QList< QScriptDebuggerConsoleCommand * > > | commands () const |
Returns the commands organized into groups. More... | |
QList< QScriptDebuggerConsoleCommand * > | commandsInGroup (const QString &name) const |
Returns commands in the group of the given name. More... | |
QStringList | completions (const QString &prefix) const |
Returns the possible completions for the given prefix. More... | |
QScriptDebuggerConsoleCommand * | findCommand (const QString &name) const |
Returns the command with the given name if one exists, otherwise returns 0. More... | |
QScriptDebuggerConsoleCommandManager () | |
~QScriptDebuggerConsoleCommandManager () | |
Properties | |
QScopedPointer< QScriptDebuggerConsoleCommandManagerPrivate > | d_ptr |
Definition at line 69 of file qscriptdebuggerconsolecommandmanager_p.h.
QScriptDebuggerConsoleCommandManager::QScriptDebuggerConsoleCommandManager | ( | ) |
Definition at line 100 of file qscriptdebuggerconsolecommandmanager.cpp.
QScriptDebuggerConsoleCommandManager::~QScriptDebuggerConsoleCommandManager | ( | ) |
Definition at line 106 of file qscriptdebuggerconsolecommandmanager.cpp.
void QScriptDebuggerConsoleCommandManager::addCommand | ( | QScriptDebuggerConsoleCommand * | command | ) |
Adds the given command.
The manager takes ownership of the command.
Definition at line 114 of file qscriptdebuggerconsolecommandmanager.cpp.
Referenced by QScriptDebuggerConsolePrivate::loadScriptedCommands().
void QScriptDebuggerConsoleCommandManager::addCommandGroup | ( | const QString & | name, |
const QScriptDebuggerConsoleCommandGroupData & | data | ||
) |
Registers a command group with the given name and data.
Definition at line 142 of file qscriptdebuggerconsolecommandmanager.cpp.
QScriptDebuggerConsoleCommandGroupData QScriptDebuggerConsoleCommandManager::commandGroupData | ( | const QString & | name | ) | const |
Returns data associated with the group of the given name.
Definition at line 207 of file qscriptdebuggerconsolecommandmanager.cpp.
QMap< QString, QScriptDebuggerConsoleCommandGroupData > QScriptDebuggerConsoleCommandManager::commandGroups | ( | ) | const |
Returns all command groups.
Definition at line 216 of file qscriptdebuggerconsolecommandmanager.cpp.
QMap< QString, QList< QScriptDebuggerConsoleCommand * > > QScriptDebuggerConsoleCommandManager::commands | ( | ) | const |
Returns the commands organized into groups.
Definition at line 178 of file qscriptdebuggerconsolecommandmanager.cpp.
QScriptDebuggerConsoleCommandList QScriptDebuggerConsoleCommandManager::commandsInGroup | ( | const QString & | name | ) | const |
Returns commands in the group of the given name.
Definition at line 192 of file qscriptdebuggerconsolecommandmanager.cpp.
QStringList QScriptDebuggerConsoleCommandManager::completions | ( | const QString & | prefix | ) | const |
Returns the possible completions for the given prefix.
Definition at line 225 of file qscriptdebuggerconsolecommandmanager.cpp.
Referenced by QScriptDebuggerConsolePrivate::createJob().
QScriptDebuggerConsoleCommand * QScriptDebuggerConsoleCommandManager::findCommand | ( | const QString & | name | ) | const |
Returns the command with the given name if one exists, otherwise returns 0.
Definition at line 162 of file qscriptdebuggerconsolecommandmanager.cpp.
Referenced by addCommand(), and QScriptDebuggerConsolePrivate::createJob().
|
private |
Definition at line 89 of file qscriptdebuggerconsolecommandmanager_p.h.
Referenced by QScriptDebuggerConsoleCommandManager().