LeechCraft  %{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IScript Class Referenceabstract

Interface for objects representing scripts. More...

#include "iscriptloader.h"

Public Member Functions

virtual ~IScript ()
 
virtual QVariant InvokeMethod (const QString &name, const QVariantList &args) const =0
 Runs the given function and returns its value. More...
 

Detailed Description

Interface for objects representing scripts.

This interface is to be implemented by the objects that represent loaded scripts.

Definition at line 40 of file iscriptloader.h.

Constructor & Destructor Documentation

virtual IScript::~IScript ( )
inlinevirtual

Definition at line 43 of file iscriptloader.h.

Member Function Documentation

virtual QVariant IScript::InvokeMethod ( const QString &  name,
const QVariantList &  args 
) const
pure virtual

Runs the given function and returns its value.

This method invokes the method identified by name with the given args, if any, and returns its value.

If there is no such method or call has failed, the returned variant is null.

Parameters
[in]nameThe name of the method to invoke.
[in]argsThe list of arguments for the method.
Returns
The return value of the method, if any, or null variant if the call has failed.

The documentation for this class was generated from the following file: