KParts
scriptableextension.h
Go to the documentation of this file.
97 bool operator==(const Object& other) const { return owner == other.owner && objId == other.objId; }
110 bool operator==(const FunctionRef& other) const { return base == other.base && field == other.field; }
197 virtual QVariant callAsFunction(ScriptableExtension* callerPrincipal, quint64 objId, const ArgList& args);
209 virtual QVariant callAsConstructor(ScriptableExtension* callerPrincipal, quint64 objId, const ArgList& args);
215 virtual bool hasProperty(ScriptableExtension* callerPrincipal, quint64 objId, const QString& propName);
220 virtual QVariant get(ScriptableExtension* callerPrincipal, quint64 objId, const QString& propName);
226 virtual bool put(ScriptableExtension* callerPrincipal, quint64 objId, const QString& propName, const QVariant& value);
232 virtual bool removeProperty(ScriptableExtension* callerPrincipal, quint64 objId, const QString& propName);
238 virtual bool enumerateProperties(ScriptableExtension* callerPrincipal, quint64 objId, QStringList* result);
249 EnumLimit = 0xFFFF
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
Object(ScriptableExtension *o, quint64 id)
Definition: scriptableextension.h:96
TransferJob * put(const KUrl &url, int permissions, JobFlags flags=DefaultFlags)
uint qHash(const KConfigIniBackend::BufferFragment &fragment)
bool operator==(const Object &other) const
Definition: scriptableextension.h:97
Returned from operations to denote a failure.
Definition: scriptableextension.h:68
bool operator==(const FunctionRef &other) const
Definition: scriptableextension.h:110
An extension class for LiveConnect, i.e.
Definition: browserextension.h:765
Corresponds to 'null' in JavaScript.
Definition: scriptableextension.h:61
Corresponds to 'undefined' in JavaScript.
Definition: scriptableextension.h:64
Exception(const QString &msg)
Definition: scriptableextension.h:75
Function references are a pair of an object and a field in it.
Definition: scriptableextension.h:104
ScriptableExtension * owner
Definition: scriptableextension.h:92
FunctionRef()
Definition: scriptableextension.h:108
An extension class that permits KParts to be scripted (such as when embedded inside a KHTMLPart) and ...
Definition: scriptableextension.h:44
FunctionRef(const Object &b, const QString &f)
Definition: scriptableextension.h:109
Objects are abstracted away as a pair of the ScriptableExtension the performs operations on it...
Definition: scriptableextension.h:91
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.