File indexing completed on 2024-06-09 11:49:03

0001 #include "QByteArray_bind.h"
0002 #include <QByteArray>
0003 #include <variant_binding.h>
0004 #include <value_binding.h>
0005 
0006 using namespace KJSEmbed;
0007 
0008 const KJS::ClassInfo QByteArrayBinding::info = { "QByteArray", 0, 0, 0 };
0009 QByteArrayBinding::QByteArrayBinding(KJS::ExecState *exec, const QByteArray &value)
0010     : VariantBinding(exec, value)
0011 {
0012     StaticBinding::publish(exec, this, QByteArrayData::methods());
0013     StaticBinding::publish(exec, this, VariantFactory::methods());
0014 }
0015 
0016 namespace QByteArrayNS
0017 {
0018 }
0019 
0020 const Enumerator KJSEmbed::QByteArrayData::p_enums[] = {{0, 0 }};
0021 
0022 NO_STATICS(KJSEmbed::QByteArrayData)
0023 const Constructor KJSEmbed::QByteArrayData::p_constructor =
0024 {"QByteArray", 0, KJS::DontDelete | KJS::ReadOnly, &QByteArrayData::ctorMethod, p_statics, p_enums, KJSEmbed::QByteArrayData::p_methods };
0025 KJS::JSObject *KJSEmbed::QByteArrayData::ctorMethod(KJS::ExecState *exec, const KJS::List &args)
0026 {
0027     if (args.size() == 0) {
0028         return new KJSEmbed::QByteArrayBinding(exec, QByteArray());
0029     }
0030 
0031     return KJS::throwError(exec, KJS::SyntaxError, "Syntax error in parameter list for QByteArray");
0032 }
0033 
0034 const Method KJSEmbed::QByteArrayData::p_methods[] = {
0035     {0, 0, 0, 0 }
0036 };
0037