• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.8 API Reference
  • KDE Home
  • Contact Us
 

kjsembed

  • kjsembed
  • kjsembed
Classes | Namespaces | Macros | Functions
qobject_binding.h File Reference
#include <QtCore/QObjectCleanupHandler>
#include <QtCore/QDebug>
#include <QtCore/QBool>
#include <kjs/function.h>
#include <kdemacros.h>
#include "binding_support.h"
#include "object_binding.h"

Go to the source code of this file.

Classes

class  KJSEmbed::QObjectBinding
 
class  KJSEmbed::SlotBinding
 

Namespaces

 KJSEmbed
 

Macros

#define END_QOBJECT_METHOD
 
#define START_QOBJECT_METHOD(METHODNAME, TYPE)
 

Functions

KJSEMBED_EXPORT KJS::JSObject * KJSEmbed::createQObject (KJS::ExecState *exec, QObject *value, KJSEmbed::ObjectBinding::Ownership owner=KJSEmbed::ObjectBinding::JSOwned)
 

Macro Definition Documentation

#define END_QOBJECT_METHOD
Value:
} \
else \
KJS::throwError(exec, KJS::ReferenceError, QString("QO: The internal object died %1:%2.").arg(__FILE__).arg(__LINE__));\
} \
else \
KJS::throwError(exec, KJS::ReferenceError, QString("QObject died."));\
return result; \
}
return
return
Definition: qpainter_binding.cpp:504
BrushNS::result
result
Definition: brush.cpp:48
KJS::throwError
JSObject * throwError(ExecState *e, ErrorType t, const QString &m)
Definition: binding_support.h:241

End a variant method started by START_QOBJECT_METHOD.

Definition at line 60 of file qobject_binding.h.

#define START_QOBJECT_METHOD (   METHODNAME,
  TYPE 
)
Value:
KJS::JSValue *METHODNAME( KJS::ExecState *exec, KJS::JSObject *self, const KJS::List &args ) \
{ \
Q_UNUSED( args ); \
KJS::JSValue *result = KJS::jsNull(); \
KJSEmbed::QObjectBinding *imp = KJSEmbed::extractBindingImp<KJSEmbed::QObjectBinding>(exec, self ); \
if( imp ) \
{ \
TYPE *object = imp->qobject<TYPE>(); \
if( object ) \
{
DomDocumentNS::if
if(!success)
Definition: dom.cpp:363
BrushNS::result
result
Definition: brush.cpp:48
List
Definition: variant_binding.cpp:130

A simple pointer syle method.

This will extract the pointer, cast it to the native type and place it in "value". Any data that should be returned from this method should be placed into "result";

Definition at line 45 of file qobject_binding.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Aug 7 2019 15:13:09 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjsembed

Skip menu "kjsembed"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdelibs-4.14.8 API Reference

Skip menu "kdelibs-4.14.8 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal