lib
Kross::Api::MainModule Class Reference
#include <mainmodule.h>
Inheritance diagram for Kross::Api::MainModule:

Detailed Description
This class implements Module for the global Manager singleton and local ScriptContainer instances.The MainModule class provides base functionality for a root node in a tree of Kross::Api::Object instances.
Definition at line 53 of file mainmodule.h.
Public Types | |
typedef KSharedPtr< MainModule > | Ptr |
Public Member Functions | |
MainModule (const QString &name) | |
virtual | ~MainModule () |
virtual const QString | getClassName () const |
bool | hadException () |
Exception::Ptr | getException () |
void | setException (Exception::Ptr exception) |
bool | hasChild (const QString &name) const |
EventSignal::Ptr | addSignal (const QString &name, QObject *sender, QCString signal) |
EventSlot::Ptr | addSlot (const QString &name, QObject *receiver, QCString slot) |
QtObject::Ptr | addQObject (QObject *object, const QString &name=QString::null) |
EventAction::Ptr | addKAction (KAction *action, const QString &name=QString::null) |
Member Typedef Documentation
|
Shared pointer to implement reference-counting.
Reimplemented from Kross::Api::Module. Reimplemented in Kross::Api::ScriptAction, and Kross::Api::ScriptContainer. Definition at line 58 of file mainmodule.h. |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 41 of file mainmodule.cpp. |
|
Destructor.
Definition at line 48 of file mainmodule.cpp. |
Member Function Documentation
|
Add a KAction to the eventcollection. The KAction will be wrapped by a EventAction and will be added to this collection.
Definition at line 110 of file mainmodule.cpp. |
|
Add a QObject to the eventcollection. All signals and slots the QObject has will be added to a new EventCollection instance which is child of this EventCollection instance.
Definition at line 99 of file mainmodule.cpp. |
|
Add a Qt signal to the Module by creating an EventSignal for it.
Definition at line 78 of file mainmodule.cpp. |
|
Add a Qt slot to the Module by creating an EventSlot for it.
Definition at line 88 of file mainmodule.cpp. |
|
Reimplemented from Kross::Api::Callable. Definition at line 53 of file mainmodule.cpp. |
|
Definition at line 63 of file mainmodule.cpp. |
|
Definition at line 58 of file mainmodule.cpp. |
|
Returns if the defined child is avaible.
Reimplemented from Kross::Api::Object. Definition at line 73 of file mainmodule.cpp. |
|
Set the Exception this module throwed.
Definition at line 68 of file mainmodule.cpp. |
The documentation for this class was generated from the following files: