KJS-API
kjsprivate.h File Reference
#include "kjs/ustring.h"
#include "kjs/identifier.h"
#include "kjs/list.h"
#include <QtCore/QString>


Go to the source code of this file.
Defines | |
#define | EXECSTATE(ctx) reinterpret_cast<ExecState*>((ctx)->hnd) |
#define | EXECSTATE_HANDLE(c) reinterpret_cast<KJSContextHandle*>(c) |
#define | INTERPRETER(h) reinterpret_cast<KJS::Interpreter*>((h)->hnd) |
#define | INTERPRETER_HANDLE(i) reinterpret_cast<KJSInterpreterHandle*>(i) |
#define | JSVALUE(h) reinterpret_cast<KJS::JSValue*>((h)->hnd) |
#define | JSVALUE_HANDLE(v) reinterpret_cast<KJSObjectHandle*>(v) |
#define | KJS_CHECK_THIS(ClassName, theObj) |
#define | LIST(h) reinterpret_cast<const KJS::List*>((h)->hnd) |
#define | LIST_HANDLE(l) reinterpret_cast<const KJSArgumentsHandle*>(l) |
#define | PROTOTYPE(h) reinterpret_cast<CustomPrototype*>((h)->hnd) |
#define | PROTOTYPE_HANDLE(p) reinterpret_cast<KJSPrototypeHandle*>(p) |
Functions | |
static KJS::Identifier | toIdentifier (const QString &s) |
static QString | toQString (const KJS::UString &s) |
static KJS::UString | toUString (const QString &s) |
Define Documentation
#define EXECSTATE | ( | ctx | ) | reinterpret_cast<ExecState*>((ctx)->hnd) |
Definition at line 34 of file kjsprivate.h.
#define EXECSTATE_HANDLE | ( | c | ) | reinterpret_cast<KJSContextHandle*>(c) |
Definition at line 33 of file kjsprivate.h.
#define INTERPRETER | ( | h | ) | reinterpret_cast<KJS::Interpreter*>((h)->hnd) |
Definition at line 37 of file kjsprivate.h.
#define INTERPRETER_HANDLE | ( | i | ) | reinterpret_cast<KJSInterpreterHandle*>(i) |
Definition at line 36 of file kjsprivate.h.
#define JSVALUE | ( | h | ) | reinterpret_cast<KJS::JSValue*>((h)->hnd) |
Definition at line 31 of file kjsprivate.h.
#define JSVALUE_HANDLE | ( | v | ) | reinterpret_cast<KJSObjectHandle*>(v) |
Definition at line 30 of file kjsprivate.h.
#define KJS_CHECK_THIS | ( | ClassName, | |||
theObj | ) |
Value:
if (!theObj || !theObj->inherits(&ClassName::info)) { \ KJS::UString errMsg = "Attempt at calling a function that expects a "; \ errMsg += ClassName::info.className; \ errMsg += " on a "; \ errMsg += theObj->className(); \ KJS::JSObject *err = KJS::Error::create(exec, KJS::TypeError, errMsg.ascii()); \ exec->setException(err); \ return err; \ }
Definition at line 46 of file kjsprivate.h.
#define LIST | ( | h | ) | reinterpret_cast<const KJS::List*>((h)->hnd) |
Definition at line 43 of file kjsprivate.h.
#define LIST_HANDLE | ( | l | ) | reinterpret_cast<const KJSArgumentsHandle*>(l) |
Definition at line 42 of file kjsprivate.h.
#define PROTOTYPE | ( | h | ) | reinterpret_cast<CustomPrototype*>((h)->hnd) |
Definition at line 40 of file kjsprivate.h.
#define PROTOTYPE_HANDLE | ( | p | ) | reinterpret_cast<KJSPrototypeHandle*>(p) |
Definition at line 39 of file kjsprivate.h.
Function Documentation
static KJS::Identifier toIdentifier | ( | const QString & | s | ) | [inline, static] |
Definition at line 65 of file kjsprivate.h.
static QString toQString | ( | const KJS::UString & | s | ) | [inline, static] |
Definition at line 72 of file kjsprivate.h.
static KJS::UString toUString | ( | const QString & | s | ) | [inline, static] |
Definition at line 57 of file kjsprivate.h.