Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cjx_wsdlconnection.cpp
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#include "fxjs/xfa/cjx_wsdlconnection.h"
8
9#include <vector>
10
11#include "fxjs/cfx_v8.h"
12#include "fxjs/js_resources.h"
13#include "fxjs/xfa/cfxjse_value.h"
14#include "third_party/base/containers/span.h"
15#include "v8/include/v8-primitive.h"
16#include "xfa/fxfa/parser/cxfa_wsdlconnection.h"
17
18const CJX_MethodSpec CJX_WsdlConnection::MethodSpecs[] = {
19 {"execute", execute_static}};
20
21CJX_WsdlConnection::CJX_WsdlConnection(CXFA_WsdlConnection* connection)
22 : CJX_Node(connection) {
23 DefineMethods(MethodSpecs);
24}
25
26CJX_WsdlConnection::~CJX_WsdlConnection() = default;
27
28bool CJX_WsdlConnection::DynamicTypeIs(TypeTag eType) const {
29 return eType == static_type__ || ParentType__::DynamicTypeIs(eType);
30}
31
32CJS_Result CJX_WsdlConnection::execute(
33 CFXJSE_Engine* runtime,
34 pdfium::span<v8::Local<v8::Value>> params) {
35 if (!params.empty() && params.size() != 1)
37
38 return CJS_Result::Success(runtime->NewBoolean(false));
39}
friend class EventParamScope
static CJS_Result Success()
Definition cjs_result.h:27
static CJS_Result Failure(JSMessage id)
Definition cjs_result.h:34
bool DynamicTypeIs(TypeTag eType) const override
Definition cjx_node.cpp:112
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
bool DynamicTypeIs(TypeTag eType) const override
~CJX_WsdlConnection() override
JSMessage