20#ifndef KROSS_API_CALLABLE_H
21#define KROSS_API_CALLABLE_H
23#include "koffice_export.h"
30#include <tqvaluelist.h>
31#include <ksharedptr.h>
48 typedef TDESharedPtr<Callable> Ptr;
84 bool hasChild( const TQString& name) const;
143 TQMap<TQString, Object::Ptr> m_children;
TQMap< TQString, Object::Ptr > getChildren() const Return all children.
TDESharedPtr< Callable > Ptr Shared pointer to implement reference-counting.
bool hasChild(const TQString &name) const Returns if the defined child is avaible.
virtual Object::Ptr call(const TQString &name, List::Ptr arguments) Call the object.
bool addChild(const TQString &name, Object *object) Add a new child.
const TQString getName() const
Callable(const TQString &name) Constructor.
Object::Ptr getChild(const TQString &name) const Return the defined child or NULL if there is no such object with that name avaible.
virtual const TQString getClassName() const Return the class name.
void removeAllChildren() Remove all children.
void removeChild(const TQString &name) Remove an existing child.
TDESharedPtr< List > Ptr Shared pointer to implement reference-counting.
TDESharedPtr< Object > Ptr Shared pointer to implement reference-counting.
The common Kross API used as common codebase.
The Kross scripting bridge to embed scripting functionality into an application.
|