Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

KJSEmbed::XMLActionClient Class Reference

Loads actions from an XML file using SAX. More...

#include <xmlactionclient.h>

Inheritance diagram for KJSEmbed::XMLActionClient::

QObject List of all members.

Public Methods

 XMLActionClient (QObject *parent=0, const char *name=0)
virtual ~XMLActionClient ()
KActionCollection * actionCollection () const
void setActionCollection (KActionCollection *acts)
XMLActionRunnerrunner () const
void setRunner (XMLActionRunner *r)
bool load (const QString &filename)
bool load (XMLActionHandler *handler, const QString &filename)
bool run (const QString &name)
XMLActionScript script (const QString &name) const
bool run (const XMLActionScript &script)
virtual bool bind (const QString &name, const XMLActionScript &script)
virtual bool bind (KAction *act, const XMLActionScript &script)

Protected Slots

void action_activated ()

Detailed Description

Loads actions from an XML file using SAX.


Member Function Documentation

bool load const QString & filename
 

Loads actions from the named XML file.

Returns true on success.

bool load XMLActionHandler * handler,
const QString & filename
 

Loads actions from the named XML file.

Returns true on success.

bool run const QString & name
 

Runs the named script.

XMLActionScript script const QString & name const [inline]
 

Returns the named script.

bool run const XMLActionScript & script
 

Calls XMLActionRunner::run().

virtual bool bind const QString & name,
const XMLActionScript & script
[virtual]
 

Binds a name to a script.

virtual bool bind KAction * act,
const XMLActionScript & script
[virtual]
 

Binds an action to a script.

void action_activated [protected, slot]
 

Called when a bound action is activated to invoke the script with the sender's name.


The documentation for this class was generated from the following file:
Generated at Sat Feb 1 03:23:36 2003 for KJSEmbed by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001