CN117632343A - OCX module calling method, device, equipment and storage medium - Google Patents

OCX module calling method, device, equipment and storage medium Download PDF

Info

Publication number
CN117632343A
CN117632343A CN202311642875.7A CN202311642875A CN117632343A CN 117632343 A CN117632343 A CN 117632343A CN 202311642875 A CN202311642875 A CN 202311642875A CN 117632343 A CN117632343 A CN 117632343A
Authority
CN
China
Prior art keywords
module
ocx
target
target event
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311642875.7A
Other languages
Chinese (zh)
Inventor
王叶静男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311642875.7A priority Critical patent/CN117632343A/en
Publication of CN117632343A publication Critical patent/CN117632343A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an OCX module calling method, an OCX module calling device, OCX module calling equipment and a storage medium. The method comprises the following steps: receiving a CLASS ID of a target OCX module sent by a display module; initializing a target OCX module according to the CLASS ID of the target OCX module; receiving a target event identifier and a display module identifier sent by a display module; the method comprises the steps of sending a target event identifier to an OCX module so that the OCX module generates a target event corresponding to the target event identifier; the method and the device for the OCX call can solve the problem that other browsers except IE cannot perform OCX call by the technical scheme of the invention.

Description

OCX module calling method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an OCX module calling method, an OCX module calling device, OCX module calling equipment and a storage medium.
Background
The self-service terminal equipment is electronic information equipment which is composed of a man-machine interaction interface and an equipment processing part and provides various information inquiry, business handling, bill printing and other functions in a special scene. Its usage scenario is very rich, for example: and the system provides more efficient and convenient service in public places such as banks, subways, hospitals and the like. In the self-service terminal equipment, the human-computer interaction interface is developed through the browser by using HTML and JS, and the equipment processing part provides service through the OCX module interface, in this case, the communication between the human-computer interaction interface and the equipment is through the call between the browser and the OCX module, and some browsers can provide a call channel through the object tag. Other browsers cannot make OCX calls except the browser that provides the call path through the object tag.
Disclosure of Invention
The embodiment of the invention provides an OCX module calling method, an OCX module calling device, OCX module calling equipment and a storage medium, which can solve the problem that other browsers except for the browser providing a calling channel through an object tag cannot perform OCX calling.
According to an aspect of the present invention, there is provided an OCX module invoking method applied to a self-service terminal device, the self-service terminal device including: the system comprises a display module, a QT agent module and an OCX module, wherein the OCX module calling method is executed by the QT agent module and comprises the following steps:
receiving a CLASSID of a target OCX module sent by a display module;
initializing a target OCX module according to the CLASSID of the target OCX module;
receiving a target event identifier and a display module identifier sent by a display module;
the method comprises the steps of sending a target event identifier to an OCX module so that the OCX module generates a target event corresponding to the target event identifier;
and receiving the target event sent by the OCX module, and sending the target event to a display module corresponding to the display module identifier.
According to another aspect of the present invention, there is provided an OCX module calling device including: a QT agent module, the QT agent module comprising:
the CLASSID receiving unit is used for receiving the CLASSID of the target OCX module sent by the display module;
the initialization unit is used for initializing the target OCX module according to the CLASSID of the target OCX module;
the target event identification and display module identification receiving unit is used for receiving the target event identification and the display module identification sent by the display module;
the target event identification sending unit is used for sending the target event identification to the OCX module so that the OCX module generates a target event corresponding to the target event identification;
and the target event receiving unit is used for receiving the target event sent by the OCX module and sending the target event to the display module corresponding to the display module identifier.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the OCX module invoking method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the OCX module invoking method according to any of the embodiments of the present invention when executed.
According to the embodiment of the invention, the CLASSID of the target OCX module sent by the display module is received; initializing a target OCX module according to the CLASSID of the target OCX module; receiving a target event identifier and a display module identifier sent by a display module; the method comprises the steps of sending a target event identifier to an OCX module so that the OCX module generates a target event corresponding to the target event identifier; the target event sent by the OCX module is received and sent to the display module corresponding to the display module identifier, so that the problem that other browsers except IE cannot perform OCX call can be solved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an OCX module calling method in an embodiment of the invention;
FIG. 2 is a schematic diagram of OCX module notification dynamic association in an embodiment of the present invention;
FIG. 3 is a schematic diagram of interactions between a JS component and a QT agent in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a QT agent interacting with a browser in an embodiment of the present invention;
FIG. 5 is a schematic diagram of an OCX module calling device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
Example 1
Fig. 1 is a flowchart of an OCX module calling method provided by an embodiment of the present invention, where the embodiment is applicable to the case of OCX module calling, the method may be performed by an OCX module calling device in the embodiment of the present invention, and the device may be implemented in a software and/or hardware manner, as shown in fig. 1, and the method specifically includes the following steps:
s110, receiving the CLASSID of the target OCX module sent by the display module.
It should be noted that, the OCX module calling method provided by the embodiment of the present invention is applied to a self-service terminal device, where the self-service terminal device includes: the OCX module calling method provided by the embodiment of the invention is executed by the QT agent module.
The display module may be a display module corresponding to any browser. The CLASSID is a unique identification of the OCX module.
The OCX module may be an OCX control.
Specifically, the display module corresponding to any browser sends the CLASSID of the target OCX module to the QT proxy module, and the QT proxy module receives the CLASSID of the target OCX module sent by the display module corresponding to any browser.
S120, initializing the target OCX module according to the CLASSID of the target OCX module.
Specifically, the method for initializing the target OCX module according to the class id of the target OCX module may be: the QT agent module creates a tool class object; the QT agent module initializes the OCX module corresponding to the CLASS ID based on the tool CLASS object.
S130, receiving a target event identifier and a display module identifier sent by a display module;
the target event identifier may be a name of the target event, or other identifiers used for representing the target event, and the display module identifier may be an address corresponding to the display module, or other identifiers used for representing the display module, which is not limited in the embodiment of the present invention.
And S140, sending the target event identification to the OCX module so that the OCX module generates a target event corresponding to the target event identification.
It should be noted that, the purpose of the QT agent module sending the target event identifier to the OCX module is to send the target event corresponding to the target event identifier to the QT agent module after the OCX module generates the target event corresponding to the target event identifier.
And S150, receiving the target event sent by the OCX module, and sending the target event to a display module corresponding to the display module identifier.
Specifically, the manner of receiving the target event sent by the OCX module and sending the target event to the display module corresponding to the display module identifier may be: inquiring a Slot function list according to the target event identification to obtain a target parameter type corresponding to the target event identification; generating a slot function according to the target event identification and the target parameter type; correlating the slot function with the target event identification; and calling a slot function to receive the target event and sending the target event to a display module corresponding to the display module identifier.
The QT agent module provided by the embodiment of the invention supports various OCX control method call and callback notification, summarizes OCX use scenes, designs a JS component to provide a universal and convenient call mode, and realizes the call communication between a browser page and a local OCX control program. The adopted technical scheme is that a Qt open source framework based on a universal WebSocket protocol and a C++ supports various browsers and windows systems of various versions. Compared with the prior art, the utility model has the advantages of improving the universality and the safety of the use scene.
Optionally, initializing the target OCX module according to the class id of the target OCX module includes:
creating a tool class object;
and initializing an OCX module corresponding to the CLASSID based on the tool class object.
The tool class object may be a QAxWidget object. It should be noted that, the QT proxy module provides a tool class qaxwidgets for calling the OCX module, and through this tool class, OCX module initialization, interface calling, and event callback notification can be implemented.
In one specific example, initializing the OCX module includes the steps of:
a QAxWidget object is created.
QAxWidget*ocx=new QAxWidget(this);
Initializing a control ClassId, and assuming that the control id is xxxx-xxxx-xxxx-xxxx-xxxxx.
ocx->setControl(QString::fromUtf8("{xxxx-xxxx-xxxx-xxxx-xxxxxxxx}"))。
Optionally, receiving the target event sent by the OCX module includes:
inquiring a Slot function list according to the target event identification to obtain a target parameter type corresponding to the target event identification;
generating a slot function according to the target event identification and the target parameter type;
correlating the slot function with the target event identification;
and calling a slot function to receive the target event.
Wherein, the Slot function list includes: the event identification and the parameter type corresponding to the event identification.
It should be noted that, the initialization of the OCX module and the interface call can implement dynamic call by using the setControl method and the dynamic call method provided by the QAxWidget, however, the asynchronous notification needs to define the corresponding event slot function in advance, and for the QT proxy module as a general proxy module, the notification event names and parameter types of different OCX modules cannot be known in advance, and the commonality of the QT proxy module cannot be implemented by directly using the QAxWidget, so a structure needs to be designed to implement the notification dynamic association of the OCX module. Class diagram design the core idea of this design is to dynamically bind asynchronous notifications to Slot objects through the QObject:: qt_meta () method and the QMetaObject:: connect () method as shown in fig. 2. Asynchronous notification association calls a connectidynamicosLOT method of an oxconnector object, the oxconnector object stores a notification list and a Slot function list, a Slot object (Slot function) is newly built for each event registering a notification callback, event signals are bound to the Slot object through QM eta object, and call functions send information of the event callbacks to a JS component through a WebSocket server.
In a specific example, dynamically invoking the OCX module includes the steps of:
after initializing the OCX module, it is assumed that the OCX module provides an add method and two parameters need to be entered, returning the result of the addition of the two parameters.
QVariant res=ocx->dynamicCall("add(int,int)",1,2);
Assuming that the OCX module sends an asynchronous notification msgCallBack, the asynchronous notification can be received and processed through the SLOT function SLOT of the QT proxy module.
A slot function is defined:
public slots:
void onMsgCallBack(QString&msg);
the slot function is associated with an asynchronous notification.
connect(ocx,SIGNAL(msgCallBack(QString&)),this,SLOT(onMsgCallBack
(QString&)));
Defining a slot function, and outputting data of asynchronous notification of the control:
void OcxObject::onMsgCallBack(QString&msg){
qInfo()<<"receive OCX msg"<<msg;}
optionally, the method further comprises:
receiving a target calling function corresponding to a target OCX module sent by a display module;
calling an OCX module according to the target calling function;
and receiving a calling result sent by the OCX module and sending the calling result to a display module.
Optionally, invoking the OCX module according to the target invoking function includes:
creating a tool class object;
and calling the OCX module according to the tool class object and the target calling function.
In a specific example, the OCX module general usage flow includes: firstly, initializing the controls, wherein each control has a unique ClassId which is equivalent to an identification card number registered to windows and is used for distinguishing different OCX modules. After initialization, the interface method provided by the OCX module can be called. The main calling scene is two, namely, the calling of the OCX module interface to acquire synchronous return and the calling of the interface to wait for receiving the OCX module asynchronous notification event. And synchronously using a scene, for example, calling an opening method of the indicator light control, and returning a result indicating light to be successfully opened by the control in real time. Asynchronous usage scenarios such as calling a ready to receive cash interface of a cash module, the OCX module asynchronously notifies the customer of receipt of a cash event after the customer has placed cash.
As shown in FIG. 3, the JS component needs to provide three package interfaces, namely, an initialization control, a method call and a notification callback. After connection is established, the JS component and the QT agent module send the three interfaces of an initialization OCX module, a calling interface and a notification callback to the QT agent program in a message form, and meanwhile, the connection management function of the WebSocket is realized internally, and the connection establishment, the message sending and the message receiving analysis are included. Among them, webSocket is a communication protocol that enables easier data exchange between a client and a server.
The JS and JavaScript are short for light-weight interpreted programming language, and are commonly used for browser script control writing.
Taking the number taking machine as an example to demonstrate the use process of the JS component, it is assumed that two hardware equipment OCX modules are provided, and the provided interfaces and events are shown in a table 1:
TABLE 1
1. The standby page initializes the id card reading device control.
ocxUtil.init(“{XXXXXXXX-XXXX-XXXX-0001}”)
2. The standby page calls an interface of the identity card reading device to enable the device to be in a ready state.
ocxUtil.invoke(“startIdCardReader()”)
3. The standby page registers an identification card reading event.
ocxUtil.regEvent("idCardReaded",idCardReadResult)
4. The user puts the identity card on the reading equipment, the equipment reads the chip information and sends an OCX notification event, the idCardReadResult function is called back by the agent program, the standby page obtains the chip information of the identity card through the function parameters, the server side transaction is called to generate queuing number information, and the queuing number information is jumped to the number printing page.
Function idCardReadResult(data){
idno=data; identity card number sent by the device for obtaining/obtaining
$. post ("getcustomumnber. Do", idNo, postCallbackFuc); generating queuing number information by/invoking server side transaction
}
5. The number printing page initializes the number printing device control.
ocxUtil.init(“{XXXXXXXX-XXXX-XXXX-0002}”)
6. The number printing page calls a number printing equipment interface and prints the number information generated by the server.
ocxutil. Invoke ("printNum (QString &)", printStr); the// printStr is the printing parameters.
In another specific example, the core of the embodiment of the invention is to write a QT agent program (QT agent module), which originally supports call and event monitoring of OCX control, and a browser supports WebSocket client connection, and the QT agent program supports WebSocket server building, so that the QT agent program interacts with pages. The whole structure is shown in fig. 4, and the call to the OCX module can be realized by providing a simple and easy-to-use universal JS interface through the structure shown in fig. 4. The JS and WebSocket are common technologies, and the browser is supported, so that the scheme has no special requirements on browser types and versions. The implementation key point of the embodiment of the invention is that firstly, an encapsulated object interface is provided for the browser to call the communication of the WebSocket server, secondly, the dynamic call of the OCX control is realized, the ID of each OCX control is different, the provided method is different from the name of the notification event, the dynamic call is required to be realized for the QT agent program, and the corresponding function is called through the parameters passed by the browser.
According to the technical scheme, the CLASSID of the target OCX module sent by the display module is received; initializing a target OCX module according to the CLASSID of the target OCX module; receiving a target event identifier and a display module identifier sent by a display module; the method comprises the steps of sending a target event identifier to an OCX module so that the OCX module generates a target event corresponding to the target event identifier; the target event sent by the OCX module is received and sent to the display module corresponding to the display module identifier, so that the problem that other browsers except IE cannot perform OCX call can be solved.
Example two
Fig. 5 is a schematic structural diagram of an OCX module calling device according to an embodiment of the present invention. The embodiment may be applicable to the case of OCX module call, and the device may be implemented in a software and/or hardware manner, and the device may be integrated in any device that provides an OCX module call function, as shown in fig. 5, where the OCX module call device specifically includes: a QT agent module, the QT agent module comprising: the CLASSID receiving unit 510, the initializing unit 520, the target event identification and display module identification receiving unit 530, the target event identification transmitting unit 540, and the target event receiving unit 550.
The CLASSID receiving unit is used for receiving the CLASS ID of the target OCX module sent by the display module;
the initialization unit is used for initializing the target OCX module according to the CLASSID of the target OCX module;
the target event identification and display module identification receiving unit is used for receiving the target event identification and the display module identification sent by the display module;
the target event identification sending unit is used for sending the target event identification to the OCX module so that the OCX module generates a target event corresponding to the target event identification;
and the target event receiving unit is used for receiving the target event sent by the OCX module and sending the target event to the display module corresponding to the display module identifier.
Optionally, the initialization unit is specifically configured to:
creating a tool class object;
and initializing an OCX module corresponding to the CLASSID based on the tool class object.
Optionally, the target event receiving unit is specifically configured to:
inquiring a Slot function list according to the target event identification to obtain a target parameter type corresponding to the target event identification;
generating a slot function according to the target event identification and the target parameter type;
correlating the slot function with the target event identification;
and calling a slot function to receive the target event.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme, the CLASSID of the target OCX module sent by the display module is received; initializing a target OCX module according to the CLASSID of the target OCX module; receiving a target event identifier and a display module identifier sent by a display module; the method comprises the steps of sending a target event identifier to an OCX module so that the OCX module generates a target event corresponding to the target event identifier; the target event sent by the OCX module is received and sent to the display module corresponding to the display module identifier, so that the problem that other browsers except IE cannot perform OCX call can be solved.
Example III
Fig. 6 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the OCX module call method.
In some embodiments, the OCX module call method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the OCX module invoking method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the OCX module call method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The OCX module calling method is characterized by being applied to self-service terminal equipment, wherein the self-service terminal equipment comprises: the system comprises a display module, a QT agent module and an OCX module, wherein the OCX module calling method is executed by the QT agent module and comprises the following steps:
receiving a CLASSID of a target OCX module sent by a display module;
initializing a target OCX module according to the CLASSID of the target OCX module;
receiving a target event identifier and a display module identifier sent by a display module;
the method comprises the steps of sending a target event identifier to an OCX module so that the OCX module generates a target event corresponding to the target event identifier;
and receiving the target event sent by the OCX module, and sending the target event to a display module corresponding to the display module identifier.
2. The method of claim 1, wherein initializing the target OCX module based on the CLASS ID of the target OCX module comprises:
creating a tool class object;
and initializing an OCX module corresponding to the CLASSID based on the tool class object.
3. The method of claim 1, wherein receiving the target event sent by the OCX module comprises:
inquiring a Slot function list according to the target event identification to obtain a target parameter type corresponding to the target event identification;
generating a slot function according to the target event identification and the target parameter type;
correlating the slot function with the target event identification;
and calling a slot function to receive the target event.
4. The method as recited in claim 1, further comprising:
receiving a target calling function corresponding to a target OCX module sent by a display module;
calling an OCX module according to the target calling function;
and receiving a calling result sent by the OCX module and sending the calling result to a display module.
5. The method of claim 4, wherein invoking the OCX module in accordance with the target call function comprises:
creating a tool class object;
and calling the OCX module according to the tool class object and the target calling function.
6. An OCX module calling device, characterized in that the OCX module calling device comprises: a QT agent module, the QT agent module comprising:
the CLASSID receiving unit is used for receiving the CLASSID of the target OCX module sent by the display module;
the initialization unit is used for initializing the target OCX module according to the CLASSID of the target OCX module;
the target event identification and display module identification receiving unit is used for receiving the target event identification and the display module identification sent by the display module;
the target event identification sending unit is used for sending the target event identification to the OCX module so that the OCX module generates a target event corresponding to the target event identification;
and the target event receiving unit is used for receiving the target event sent by the OCX module and sending the target event to the display module corresponding to the display module identifier.
7. The apparatus of claim 6, wherein the initialization unit is specifically configured to:
creating a tool class object;
and initializing an OCX module corresponding to the CLASSID based on the tool class object.
8. The apparatus of claim 6, wherein the target event receiving unit is specifically configured to:
inquiring a Slot function list according to the target event identification to obtain a target parameter type corresponding to the target event identification;
generating a slot function according to the target event identification and the target parameter type;
correlating the slot function with the target event identification;
and calling a slot function to receive the target event.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the OCX module invocation method of any one of claims 1-5.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the OCX module invoking method of any of claims 1-5 when executed.
CN202311642875.7A 2023-12-04 2023-12-04 OCX module calling method, device, equipment and storage medium Pending CN117632343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311642875.7A CN117632343A (en) 2023-12-04 2023-12-04 OCX module calling method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311642875.7A CN117632343A (en) 2023-12-04 2023-12-04 OCX module calling method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117632343A true CN117632343A (en) 2024-03-01

Family

ID=90031793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311642875.7A Pending CN117632343A (en) 2023-12-04 2023-12-04 OCX module calling method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117632343A (en)

Similar Documents

Publication Publication Date Title
CN113438355B (en) Communication method, device, equipment and storage medium based on cloud mobile phone
CN111737022A (en) Interface calling method, system, equipment and medium based on micro-service
CN111343239B (en) Communication request processing method, communication request processing device and transaction system
CN109816347A (en) It is a kind of applied to the information processing method, system and the relevant apparatus that help loan
CN114979295A (en) Gateway management method and device
US12026541B2 (en) Method for applet page rendering, electronic device and storage medium
CN109933444A (en) A kind of instant communication method between applying of lodging
CN117632343A (en) OCX module calling method, device, equipment and storage medium
CN114896322A (en) JSON (Java Server object notation) -based configuration data conversion method, device, equipment and medium
CN113779018A (en) Data processing method and device
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN115577200B (en) Page loading method, device, equipment and storage medium
CN114697962B (en) Data processing method and electronic equipment
CN116521630B (en) Task progress real-time display method and device, computer equipment and storage medium
CN114598524B (en) Method, device, equipment and storage medium for detecting agent tool
CN116521279A (en) Service calling method, service generating method, device, equipment and medium
CN116012158A (en) Service processing method, device, equipment and storage medium
CN117632545A (en) Data sharing method and device of business system and electronic equipment
CN117931322A (en) Interface calling method and device of low-code platform and electronic equipment
CN117453206A (en) Interface calling method, device, equipment and medium
CN115658341A (en) Method, device, equipment and medium for reading and writing data by Freeswitch
CN117785413A (en) Task forwarding method, device, equipment and storage medium
CN116186450A (en) Micro front-end application system, application rendering method, device and storage medium
CN117670236A (en) Mobile-terminal-based to-be-handled flow approval method, device, equipment and medium
CN117294597A (en) Network card binding configuration method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination