#ifndef KJSEMBED__H
#define KJSEMBED__H
#include <kjs/interpreter.h>
#include <kjs/object.h>
#include <kjsembed/jsobjectproxy_imp.h>
class ;
/**
* Namespace containing the KJSEmbed library.
*/
namespace KJSEmbed {
/**
* Wrapper class for constructors.
*
* @author Richard Moore, rich@kde.org
*/
class Cons : public JSProxyImp
{
public:
/** Enumerates the constructors supported by this class. */
enum Constructors {
_
Constructor_
,
LastConstuctor = -1
};
//
// Constructors implemented by this class.
//
_
KJS::Object ( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args );
//
// JS binding code.
//
/** Returns true iff this object implements the construct function. */
virtual bool implementsConstruct() const { return true; }
/** Invokes the construct function. */
virtual KJS::Value construct( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
private:
int id;
};
} // namespace KJSEmbed
#endif // KJSEMBED__H
// Local Variables:
// c-basic-offset: 4
// End: