Search for usage in LXR

#include <static_binding.h>

Inherits InternalFunctionImp.

Public Member Functions

 StaticBinding (KJS::ExecState *exec, const Method *method)
KJS::JSValuecallAsFunction (KJS::ExecState *exec, KJS::JSObject *self, const KJS::List &args) override
bool implementsConstruct () const override

Static Public Member Functions

static void publish (KJS::ExecState *exec, KJS::JSObject *object, const Method *methods)

Protected Attributes

const Methodm_method

Detailed Description

A binding method that is used in VariantBinding and ObjectBinding.

Definition at line 38 of file static_binding.h.

Constructor & Destructor Documentation

◆ StaticBinding()

StaticBinding::StaticBinding ( KJS::ExecState exec,
const Method method 

Create a new method.

Definition at line 34 of file static_binding.cpp.

Member Function Documentation

◆ callAsFunction()

KJS::JSValue * StaticBinding::callAsFunction ( KJS::ExecState exec,
KJS::JSObject *  self,
const KJS::List args 

Executes the callback for this method.

Definition at line 42 of file static_binding.cpp.

◆ publish()

void StaticBinding::publish ( KJS::ExecState exec,
KJS::JSObject *  object,
const Method methods 

Publishes an array of Methods to an object.

You should only ever need this method to add methods to a binding.

objectthe object to add the methods to
methodsan array of Method objects.

Definition at line 59 of file static_binding.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 04:01:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.