kexi
KoMacro::Context Class Reference
#include <context.h>
Inherits QObject, and KShared.
Detailed Description
The context of an execution.If a Macro got executed it creates an instance of this class and passes it around all it's children as local execution context.
Definition at line 41 of file context.h.
Public Slots | |
| virtual void | activate (KSharedPtr< Context > context) |
| virtual void | activateNext () |
Public Member Functions | |
| Context (KSharedPtr< Macro > macro) | |
| ~Context () | |
| bool | hasVariable (const QString &name) const |
| KSharedPtr< Variable > | variable (const QString &name) const |
| Variable::Map | variables () const |
| void | setVariable (const QString &name, KSharedPtr< Variable > variable) |
| KSharedPtr< Macro > | macro () const |
| KSharedPtr< MacroItem > | macroItem () const |
| bool | hadException () const |
| Exception * | exception () const |
Constructor & Destructor Documentation
| Context::Context | ( | KSharedPtr< Macro > | macro | ) | [explicit] |
| Context::~Context | ( | ) |
Member Function Documentation
| bool Context::hasVariable | ( | const QString & | name | ) | const |
- Returns:
- true if there exists a variable with name
nameelse false got returned.
Definition at line 100 of file context.cpp.
| KSharedPtr< Variable > Context::variable | ( | const QString & | name | ) | const |
- Returns:
- the Variable defined with name
nameor NULL if there exists no such variable.
Definition at line 107 of file context.cpp.
| Variable::Map Context::variables | ( | ) | const |
- Returns:
- a map of all Variable instance that are defined within this context.
Definition at line 126 of file context.cpp.
| void Context::setVariable | ( | const QString & | name, | |
| KSharedPtr< Variable > | variable | |||
| ) |
Set the variable variable defined with name name .
If there exists already a variable with that name replace it.
Definition at line 132 of file context.cpp.
| KSharedPtr< Macro > Context::macro | ( | ) | const |
| KSharedPtr< MacroItem > Context::macroItem | ( | ) | const |
Definition at line 147 of file context.cpp.
| bool Context::hadException | ( | ) | const |
- Returns:
- true if the last activate() stopped with an exception else false is returned.
Definition at line 153 of file context.cpp.
| Exception * Context::exception | ( | ) | const |
- Returns:
- the Exception instance that was thrown on the last call of activate() . If there was no exception NULL is returned.
Definition at line 159 of file context.cpp.
| void Context::activate | ( | KSharedPtr< Context > | context | ) | [virtual, slot] |
This slot extends the slot above with the passed Context context which will be used as parent context for this context.
Definition at line 220 of file context.cpp.
| void Context::activateNext | ( | ) | [virtual, slot] |
The documentation for this class was generated from the following files:

