CN114443159A - Plug-in processing device and method, computer equipment and storage medium - Google Patents

Plug-in processing device and method, computer equipment and storage medium Download PDF

Info

Publication number
CN114443159A
CN114443159A CN202111673758.8A CN202111673758A CN114443159A CN 114443159 A CN114443159 A CN 114443159A CN 202111673758 A CN202111673758 A CN 202111673758A CN 114443159 A CN114443159 A CN 114443159A
Authority
CN
China
Prior art keywords
plug
module
software
basic capability
user
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
CN202111673758.8A
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.)
Cognitive Computing Nanjing Information Technology Co ltd
Original Assignee
Cognitive Computing Nanjing Information Technology Co ltd
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 Cognitive Computing Nanjing Information Technology Co ltd filed Critical Cognitive Computing Nanjing Information Technology Co ltd
Priority to CN202111673758.8A priority Critical patent/CN114443159A/en
Publication of CN114443159A publication Critical patent/CN114443159A/en
Pending legal-status Critical Current

Links

Images

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/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

Abstract

The invention discloses a plug-in processing device, a method, computer equipment and a storage medium, wherein the device comprises: the system comprises a plug-in management module, a plug-in starting module, a software basic capability service module and a plug-in release module; the plug-in issuing module is used for acquiring plug-ins uploaded by a user and issuing the plug-ins; the system comprises a plug-in management module, a plug-in management module and a service management module, wherein the plug-in management module is used for managing published plug-ins, and the management comprises addition, deletion, updating and searching; the software basic capability service module is used for generating a basic capability bridging object based on a meta-object system of a QT application development framework and registering the plug-in to a running environment according to the basic capability bridging object when the plug-in runs; and the plug-in starting module is used for determining the plug-in selected by the user software interface and loading the execution file of the plug-in. The embodiment of the invention can realize the rapid application of the plug-in, can customize plug-in development based on the plug-in processing device, can reduce the plug-in application difficulty and improve the user experience.

Description

Plug-in processing device, method, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a plug-in processing device, a plug-in processing method, computer equipment and a storage medium.
Background
Plug-in frameworks are often used for expanding software functions, most software is often released only by providing basic functions, and in order to meet the customization requirements of users, the software needs to customize functional plug-ins based on the plug-in frameworks. Currently, common software plug-ins are mostly implemented in a dynamic link library manner, plug-in interface information, such as a plug-in version, a plug-in name and the like, needs to be predefined in a development process, and then functions of specific plug-ins are implemented according to the definitions, and the release of the plug-ins is still released in the form of the dynamic link library. This will lead to the following problems:
1. due to the fact that the plug-in framework is achieved through the dynamic link library, development and release of the plug-ins need to be released by a professional third party, development cost of the plug-ins is high, customization degree is low, function expansion of software is not facilitated, and utilization efficiency of the plug-ins is reduced.
2. The plug-in codes need to be compiled in the running process, so that the running efficiency of the plug-ins in the plug-in framework is reduced, the running efficiency of software is influenced, and the use experience of a user is greatly reduced.
Disclosure of Invention
The invention provides a plug-in processing device, a method, a computer device and a storage medium, which are used for solving the problems of high plug-in development cost and low customization degree caused by the realization of a dynamic link library in a plug-in processing frame in the prior art.
In a first aspect, an embodiment of the present invention provides a plug-in processing apparatus, where the apparatus includes: the system comprises a plug-in management module, a plug-in starting module, a software basic capability service module and a plug-in publishing module;
the plug-in issuing module is used for acquiring plug-ins uploaded by users and issuing the plug-ins; the plug-in management module is used for managing the released plug-in, wherein the management comprises addition, deletion, update and search; the software basic capability service module is used for generating a basic capability bridging object based on a meta-object system of a QT application development framework and registering the plug-in to a running environment according to the basic capability bridging object when the plug-in runs; and the plug-in starting module is used for determining the plug-in selected by the user software interface and loading the execution file of the plug-in.
In a second aspect, an embodiment of the present invention further provides a plug-in processing method, where the method includes:
starting an execution file of the plug-in the target application according to the user instruction and the plug-in starting module;
and providing running resources for the plug-in according to the function triggering information and the software basic capability service module in the target application so as to realize the function execution of the plug-in.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a plug-in processing apparatus as in any of the embodiments of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the plug-in processing apparatus according to any one of the embodiments of the present invention.
The plug-in processing device provided by the embodiment of the invention comprises a plug-in management module, a plug-in starting module, a software basic capability service module and a plug-in publishing module, wherein the plug-in publishing module acquires and publishes a plug-in uploaded by a user, the plug-in management module can manage addition, deletion, update, search and the like of the published plug-in, the software basic capability service module generates a basic capability bridging object based on a meta-object system of a QT application development framework, and registers the plug-in to an operating environment by using the basic capability bridging object when the plug-in operates, and the plug-in starting module determines the plug-in selected by the user and loads an execution file of the plug-in. The plug-in application difficulty can be reduced, and the user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of a card processing apparatus according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another card processing apparatus according to a second embodiment of the present invention;
fig. 3 is an exemplary diagram of a plug-in processing device according to a second embodiment of the present invention;
fig. 4 is a flowchart of a plug-in processing method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only a part of the structure related to the present invention is shown in the drawings, not the whole structure, and furthermore, the embodiments and the features of the embodiments in the present invention may be combined with each other without conflict.
Example one
Fig. 1 is a schematic structural diagram of a plug-in processing device according to an embodiment of the present invention, where the embodiment of the present invention is applicable to a situation of plug-in management, and the device may be implemented in a software and/or hardware manner, and referring to fig. 1, the plug-in processing device according to the embodiment of the present invention includes the following modules: a plug-in management module 110, a plug-in starting module 120, a software basic capability service module 130 and a plug-in publishing module 140; and the plug-in publishing module 140 is configured to obtain plug-ins uploaded by the user and publish the plug-ins. The plugin management module 110 is configured to manage published plugins, where the management includes adding, deleting, updating, and searching. The software basic capability service module 130 is used for generating a basic capability bridging object based on a meta-object system of the QT application development framework and registering the plug-in to the running environment according to the basic capability bridging object when the plug-in runs; the plug-in starting module 120 is configured to determine the plug-in selected by the user software interface, and load an execution file of the plug-in.
In the embodiment of the invention, the plug-in can be a program written according to a certain application program interface specification, the program can provide an expansion function for the application software, and the plug-in can be issued by an application software developer or a third party developer. The publishing of the plug-in may refer to uploading the plug-in to an application market or a server of a software developer so that a user may obtain the process of the plug-in, and a remote server may audit and store a code file of the plug-in the publishing process of the plug-in. The user may be a user of the application and may develop customized plug-ins for the application. After the development of the plug-in is completed, the user can upload the relevant code file of the plug-in to the plug-in publishing module 140, and the plug-in publishing module 140 can publish the plug-in. During the release process of the plug-in, operations such as format conversion, file audit, remote server storage and the like can be performed on relevant files of the plug-in, the format conversion can enable code files of the plug-in to accord with operation rules of application programs, the file audit can guarantee the safety of the plug-in, and the remote server storage can enable other users to obtain and use the plug-in.
The plug-in management module 110 may manage plug-ins, where the management may include operations such as plug-in installation, plug-in deletion, plug-in update, plug-in query, and the like, the plug-in management module 110 may be located in application software using plug-ins or in separate application software, and the plug-in management module 110 may further provide a visual interface to display a management process of plug-ins in a visual manner, for example, plug-ins that may be added to a certain target software or installed plug-ins that may be deleted from a certain characteristic software may be displayed.
The plug-in processing device in the embodiment of the present invention is further provided with a software basic capability service module 130, which can be implemented based on a meta-object system of the QT application development framework, and can provide the capability of invoking a C + + object for the QML language, and the software basic capability service module 130 can define a basic capability bridging object, which can provide the basic service capability of the application software for the plug-in when the plug-in is running, for example, can provide an operation environment for the plug-in, so that the plug-in can run using the resource of the application software. In an embodiment, a plug-in starting module 120 is further provided, where the plug-in starting module may provide a user software interface, and may display selectable plug-ins for a user in a visual manner, after obtaining a selection of the user, the plug-in starting module 120 may load an execution file of the plug-in into the application software according to the selection information, where the execution file may be a file for implementing a function and decoding of the plug-in, and the execution file may include a function implementation logic, for example, a data statistics logic, a data processing logic, a data display logic, and the like.
The plug-in processing device provided by the embodiment of the invention comprises a plug-in management module, a plug-in starting module, a software basic capability service module and a plug-in publishing module, wherein the plug-in publishing module acquires and publishes a plug-in uploaded by a user, the plug-in management module can manage addition, deletion, update, search and the like of the published plug-in, the software basic capability service module generates a basic capability bridging object based on a meta-object system of a QT application development framework, and registers the plug-in to an operating environment by using the basic capability bridging object when the plug-in operates, and the plug-in starting module determines the plug-in selected by the user and loads an execution file of the plug-in. The plug-in application difficulty can be reduced, and the user can use and experience the gaga.
Example two
Fig. 2 is a schematic structural diagram of another plug-in processing device according to a second embodiment of the present invention, and the implementation of the present invention is embodied on the basis of the foregoing embodiment of the present invention, and referring to fig. 2, the device according to the second embodiment of the present invention further includes: and the security authentication module 150 is used for verifying the plug-in uploaded by the user and providing a per-authentication identifier for the plug-in passing the verification.
In the embodiment of the present invention, the security authentication module 150 may be configured to verify a plug-in, after the plug-in is issued, the security authentication module 150 may send the issued plug-in to the security authentication platform for verification, after the plug-in is verified, the security authentication module 150 may receive an authentication identifier issued by the security authentication platform for the plug-in, and the security authentication module 150 may provide security authentication for the plug-in based on the authentication identifier, for example, the security authentication module 150 may compare whether information of the plug-in is the same as the authentication identifier during a running process of the plug-in, and if the information is not the same as the authentication identifier, may prohibit the plug-in from being loaded, thereby avoiding a problem that the plug-in is maliciously tampered.
Further, the plug-in issuing module 140 includes: a plug-in receiving unit 1401 and a format converting unit 1402; the plug-in receiving unit 1401 is used for receiving a plug-in file package uploaded by a user on a preset plug-in page; a format conversion unit 1402 for converting the plug-in package to a software identification format.
In this embodiment of the present invention, the plug-in publishing module 140 may be composed of a plug-in receiving unit 1401 and a format converting unit 1402, where the plug-in receiving unit 1401 may provide a visual preset plug-in page, the plug-in receiving unit 1401 may include a data processing rule and a display configuration of the preset plug-in page, a file uploading control may be provided in the plug-in receiving unit 1401 for a user, and the user uploads a plug-in file package of the plug-in to a server corresponding to the plug-in receiving unit 1401 by using the uploading control, where the plug-in file package may include an execution file in QML format, a description file in json format, and an icon file in png format. The format conversion unit 1402 may perform format conversion on files in a plug-in file package in the server, a software identification format of a target converted by the format conversion unit 1402 may be determined by a configuration file or a user command, and the software identification format included in the format conversion unit 1402 may be a language format such as C + +, java, or QML.
Further, on the basis of the above embodiment of the invention, the plug-in management module 110 includes: a plug-in addition unit 1101, a plug-in deletion unit 1102, a plug-in update unit 1103, and a plug-in viewing unit 1104; the plug-in adding unit 1101 is configured to download the compressed file package of the plug-in, and store the folder generated by decompressing the compressed file package to the software recognizable path according to the plug-in type of the plug-in. A plug-in deletion unit 1102 for folder deletion of a plug-in stored under the software recognizable path. The plugin updating unit 1103 is configured to compare the plugin version of the plugin with the current latest version, if the plugin version is greater than or equal to the current latest version, the plugin is not updated, and if the plugin version is smaller than the current latest version, the plugin is updated to the current latest version. And a plug-in viewing unit 1104 for displaying plug-in information of the installed plug-ins.
In this embodiment of the present invention, the plug-in management module 110 may manage plug-ins, where the management may include operations such as plug-in installation, plug-in deletion, plug-in update, and plug-in query, where the plug-in installation may use the plug-in addition unit 1101 to decompress a compressed file package of a plug-in and extract a description file in a folder, obtain a plug-in type in the description file of a plug-in, and may obtain a software recognizable path corresponding to a target application according to the type, and store the folder of a plug-in according to the software recognizable path, where the software recognizable path may be a preset storage path of application software using a plug-in, the preset storage path may be set by a configuration file, and recognizable paths corresponding to different software may be different. The plug-in deleting unit 1102 may delete the plug-in folders stored in different identifiable paths, for example, the plug-in deleting unit 1102 may obtain a storage path of a corresponding plug-in folder according to an identification number of the plug-in, delete the plug-in folder according to the storage path, further obtain an application identifier, and delete the folder corresponding to the application identifier in the software identifiable path. The plug-in information input by the user in the plug-in deletion unit 1102 in the process of deleting a plug-in may include information such as a plug-in type, a plug-in name, and a plug-in identification number. The plugin updating unit 1103 may obtain version information of a new version of a plugin, compare the version information with the version information of the plugin in the target application, and when it is determined that the version information of the new version of the plugin is higher, replace a component file of an original plugin with a component file of the new version of the plugin in the target application. The plug-in viewing unit 1104 may query plug-in information of all plug-ins installed in the target application and visually present the plug-in information.
Further, on the basis of the above embodiment of the invention, the QT application development framework integrates a QML engine and a QT meta-object system, and members of the QObject-derived class of the basic capability bridge object include: at least one of a signal, a slot function, an enumeration type, an attribute, a member function.
In this embodiment of the present invention, the software basic capability service module 130 may be implemented based on a system integrating a QML engine and a QT meta-object, so that a plug-in processing device implemented in the QML language may access an application implemented in the C + + language, so that a plug-in may communicate with application software, and a basic capability bridge object generated by the software basic capability service module 130 may include a member of a QObject derived class, where the member may include at least one of a semaphore, a slot function, an enumeration type, an attribute, and a member function, and provides an access manner rich in application software resources for the plug-in, for example, the plug-in may register the C + + class in the QT meta-object system, and the plug-in uses the QML language to instantiate and access the basic capability bridge object, thereby implementing communication between the QML plug-in and the application software. Alternatively, the C + + class may be used as one data type of the QML plug-in, for example, a function parameter type or an attribute type, or an enumerated type or a singleton thereof may be used to implement communication with the application software by means of the data type.
In an exemplary implementation manner, fig. 3 is an exemplary diagram of a plug-in processing apparatus according to a second embodiment of the present invention, and referring to fig. 3, a plug-in framework in software is taken as an example, and the plug-in framework may include a plug-in management module, a plug-in startup module, a software basic capability service module, a plug-in publishing module, a security authentication module, and the like. The plug-in framework is realized in a QML language, the plug-ins in the plug-in framework are QML language plug-ins and are issued in a compressed file form, and the plug-ins are composed of files such as 'extension.qml', 'extension.json' and 'extension.png'. Wherein the "extension. qml" file is an execution file of qml language for realizing the interface and function of the plug-in. Json file is used to describe the information of the plug-in, including the type, name, version, description, etc. of the plug-in. Png is an icon of a plug-in for display in the software body program.
Specifically, the plug-in management module is responsible for management of plug-ins, including addition, deletion, update and viewing of plug-ins. When the plug-in is added, the plug-in management module firstly decompresses the plug-in file, extracts and analyzes the extension json file, acquires the type of the plug-in, and then stores the decompressed folder to a path which can be recognized by software according to the type. And when the plug-in is deleted, directly removing the corresponding plug-in folder. When the plug-in is updated, the version of the plug-in file needing to be updated is compared, and if the version of the plug-in the software is low, the version of the plug-in file needing to be updated is updated. And the plug-in viewing function is used for displaying all plug-in information of the software which is installed.
The plug-in starting module is used for starting the plug-in. When a user selects a certain plug-in function from the software interface, the starting module is responsible for loading an extension.
The software basic capability service module is used for providing basic capability of the software for the plug-in. The module is realized based on a QT meta-object system and provides the capability of calling C + + objects by a QML language. The module defines a basic capability bridging object, when a plug-in is operated, the basic capability bridging object is registered in a QML operation environment, and when the user realizes the function in 'extension. QML', the user calls a general interface provided by the basic capability bridging object, so that the calling of the basic capability of the software can be realized. The parameters and return values of the interface are defined in a json data format, and any type of data can be conveniently adapted. When the general interface of the basic capability bridging object runs, analyzing the introduced json parameter and determining the called specific software basic capability.
The plug-in issuing module is used for packaging the plug-ins developed by the user into a file format which can be recognized by software.
The safety certification module is used for certifying the plug-in developed by the user. After the user completes the plug-in development, when the plug-in needs to be issued to other users through the platform for use, the plug-in needs to be audited through the platform. And after the platform passes the verification, providing a unique identification code for the corresponding plug-in as a safety authentication identifier of the plug-in. When the framework loads the plug-in, the security authentication module can compare whether the information of the plug-in is consistent with the unique identification code of the plug-in, if not, the loading is not allowed, and the security problem that the plug-in is maliciously tampered is avoided.
EXAMPLE III
Fig. 4 is a flowchart of a plug-in processing method provided by the third embodiment of the present invention, which may be applied to the case of plug-in management, and referring to fig. 4, the plug-in processing method provided by the third embodiment of the present invention specifically includes the following steps:
and step 410, starting an execution file of the plug-in the target application according to the user instruction and the plug-in starting module.
The user instruction may be a selection instruction of the plug-in, and the user instruction may be survived by a user of the plug-in, for example, the user may check a target plug-in the plug-in selection interface, and the check operation may be used as the user instruction. The target application may be a main program for running the plug-in, and the target application may provide running resources for the plug-in, such as a running environment and a calling interface.
In the embodiment of the invention, the user instruction input by the user can be received, and the user instruction is used for controlling the plug-in enabling module to load the execution file of the corresponding plug-in into the target application environment, so that the plug-in calling is realized.
And step 420, providing running resources for the plug-in at the target application according to the function trigger information and the software basic capability service module so as to realize the function execution of the plug-in.
The function trigger information may be information for triggering the function execution in the plug-in by the user, and may include call information of the plug-in, transmission parameters, and the like, and the function trigger information may be generated by the user in the target application, for example, the user clicks a call button in a display interface of the plug-in, or the user inputs parameter information in the display interface of the plug-in, and the like. The running resource may be a resource used by the plug-in implementation function and may include a computing resource of the terminal device, a software environment, and the like.
Specifically, the function triggering information input by the user may be received, the object provided by the software basic capability service module is instantiated according to the function triggering information, and the running resource of the target application is provided for the plug-in to run by using the object, so that the plug-in completes the function execution.
According to the embodiment of the invention, the execution file of the plug-in is started in the plug-in starting module according to the user instruction, the software basic capability service module provides the running resource for the plug-in when the function triggering information is acquired, the function corresponding to the plug-in is executed, the issue of the plug-in uploaded by the user is realized, the customization degree of the application plug-in can be improved, the file does not need to be compiled in the plug-in development process, the software development efficiency can be improved, and the use experience of the user is enhanced.
Further, on the basis of the above embodiment of the present invention, the starting of the execution file of the plug-in the target application according to the user instruction and the plug-in starting module includes:
receiving a user instruction input by a preset plug-in management interface user; downloading a compressed file packet of a plug-in corresponding to the user instruction by using a plug-in management module, and decompressing the compressed file packet to an identifiable path of the target application; and loading the execution file of the plug-in to the running environment according to the recognizable path by using the plug-in starting module.
Specifically, a user instruction input by a user may be received in a preset plug-in management interface, one or more released plug-ins may be displayed in the preset plug-in management interface, a plug-in management model may be called to download a compressed file package of a plug-in corresponding to the user instruction, the downloaded compressed file package may be decompressed into a folder, the folder is stored in an identifiable path configured by a target application, and then a plug-in start module is called to load an execution file in the folder in the identifiable path to an operating environment, thereby implementing start-up of the plug-ins.
Further, on the basis of the above embodiment of the present invention, providing, according to the function trigger information and the software basic capability service module, the running resource for the plug-in the target application to implement the function execution of the plug-in includes:
instantiating a basic capability bridging object of the software basic capability service module according to the function triggering information; acquiring a general interface provided by a target application by using a basic capability bridging object; and the control plug-in realizes the plug-in function corresponding to the function trigger information based on the universal interface.
In the embodiment of the invention, a software basic capability bridging object can be instantiated according to the function triggering information of the plug-in, the member of the basic capability bridging object is utilized to obtain the general interface of the target application, and the plug-in is controlled to execute the function of the plug-in according to the general interface so as to realize the operation corresponding to the function triggering information.
Example four
Fig. 5 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention, and fig. 5 shows a block diagram of a computer device 312 suitable for implementing an embodiment of the present invention. The computer device 312 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention. The device 312 is typically a computing device implementing a plug-in processing apparatus.
As shown in FIG. 5, computer device 312 is in the form of a general purpose computing device. The components of computer device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 that couples the various system components including the storage device 328 and the processors 316.
Bus 318 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 312 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 312 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 328 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 330 and/or cache Memory 332. The computer device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 318 by one or more data media interfaces. Storage 328 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 336 having a set (at least one) of program modules 326 may be stored, for example, in storage 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which may comprise an implementation of a network environment, or some combination thereof. Program modules 326 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
The computer device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), with one or more devices that enable a user to interact with the computer device 312, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 312 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 322. Also, computer device 312 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), etc.) and/or a public Network, such as the internet, via Network adapter 320. As shown, network adapter 320 communicates with the other modules of computer device 312 via bus 318. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 312, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 316 executes various functional applications and data processing by executing programs stored in the storage 328, for example, implementing a plug-in processing device provided by the above-described embodiments of the present invention.
EXAMPLE five
An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, which, when executed, implements a plug-in processing apparatus as in an embodiment of the present invention. The computer readable medium of the present invention described above may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: starting an execution file of the plug-in the target application according to the user instruction and the plug-in starting module; and providing running resources for the plug-in according to the function triggering information and the software basic capability service module in the target application so as to realize the function execution of the plug-in.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable 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. 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.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. A card handling apparatus, the apparatus comprising: the system comprises a plug-in management module, a plug-in starting module, a software basic capability service module and a plug-in publishing module;
the plug-in issuing module is used for acquiring plug-ins uploaded by users and issuing the plug-ins;
the plug-in management module is used for managing the released plug-in, wherein the management comprises addition, deletion, update and search;
the software basic capability service module is used for generating a basic capability bridging object based on a meta-object system of a QT application development framework and registering the plug-in to a running environment according to the basic capability bridging object when the plug-in runs;
and the plug-in starting module is used for determining the plug-in selected by the user software interface and loading the execution file of the plug-in.
2. The apparatus of claim 1, further comprising: and the safety authentication module is used for verifying the plug-in uploaded by the user and providing a certification identification for the plug-in passing verification.
3. The apparatus of claim 1, wherein the plug-in publishing module comprises: a plug-in receiving unit and a format conversion unit;
the plug-in receiving unit is used for receiving the plug-in file package uploaded by the user on a preset plug-in page;
and the format conversion unit is used for converting the plug-in file package into a software identification format.
4. The apparatus of claim 1, wherein the plug-in management module comprises: the system comprises a plug-in adding unit, a plug-in deleting unit, a plug-in updating unit and a plug-in viewing unit;
the plug-in adding unit is used for downloading the compressed file package of the plug-in and storing the folder generated by decompressing the compressed file package to a software recognizable path according to the plug-in type of the plug-in;
the plug-in deleting unit is used for deleting the folder of the plug-in stored under the software recognizable path;
the plug-in updating unit is used for comparing the plug-in version of the plug-in with the current latest version, if the plug-in version is greater than or equal to the current latest version, the plug-in is not updated, and if the plug-in version is less than the current latest version, the plug-in is updated to the current latest version;
and the plug-in viewing unit is used for displaying the plug-in information of the installed plug-ins.
5. The apparatus of claim 1, wherein the QT application development framework is integrated with a QML engine and a QT meta-object system, and wherein members of the QObject-derived class of the base capability bridge object comprise: at least one of a signal, a slot function, an enumeration type, an attribute, a member function.
6. A method for plug-in processing, the method comprising:
starting an execution file of the plug-in the target application according to the user instruction and the plug-in starting module;
and providing running resources for the plug-in according to the function triggering information and the software basic capability service module in the target application so as to realize the function execution of the plug-in.
7. The method of claim 6, wherein the starting of the execution file of the plug-in at the target application according to the user instruction and the plug-in starting module comprises:
receiving the user instruction input by a preset plug-in management interface user;
downloading a compressed file packet of the user instruction corresponding to the plug-in by using a plug-in management module, and decompressing the compressed file packet to an identifiable path of the target application;
and loading the execution file of the plug-in to a running environment according to the identifiable path by using the plug-in starting module.
8. The method according to claim 6, wherein the providing, at the target application, running resources for the plug-in according to the function trigger information and the software basic capability service module to implement the functional execution of the plug-in comprises:
instantiating a basic capability bridging object of the software basic capability service module according to the function triggering information;
acquiring a universal interface provided by the target application by using the basic capability bridging object;
and the control plug-in realizes the plug-in function corresponding to the function trigger information based on the universal interface.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a plug-in processing apparatus as claimed in any one of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a plug-in processing device according to any one of claims 1-5.
CN202111673758.8A 2021-12-31 2021-12-31 Plug-in processing device and method, computer equipment and storage medium Pending CN114443159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111673758.8A CN114443159A (en) 2021-12-31 2021-12-31 Plug-in processing device and method, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111673758.8A CN114443159A (en) 2021-12-31 2021-12-31 Plug-in processing device and method, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114443159A true CN114443159A (en) 2022-05-06

Family

ID=81365007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111673758.8A Pending CN114443159A (en) 2021-12-31 2021-12-31 Plug-in processing device and method, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114443159A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968406A (en) * 2022-05-27 2022-08-30 北京青云科技股份有限公司 Plug-in management method and device, electronic equipment and storage medium
CN116521271A (en) * 2023-05-22 2023-08-01 广州广电运通信息科技有限公司 Plug-in module management method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120150898A1 (en) * 2010-12-09 2012-06-14 International Business Machines Corporation Dynamic Collection Of System Support Files In A Data Processing Environment
CN108491202A (en) * 2018-03-15 2018-09-04 南京智格电力科技有限公司 A kind of implementation method of the graphics engine based on QML
CN108829462A (en) * 2018-06-21 2018-11-16 安徽大中润科技有限公司 A kind of display methods of information, system and plug-in management platform
CN110162345A (en) * 2019-05-05 2019-08-23 网宿科技股份有限公司 A kind of application program access method, device and storage medium
CN112181554A (en) * 2020-09-08 2021-01-05 安徽鸿程光电有限公司 Interactive interface display method and device, electronic device and storage medium
CN112527301A (en) * 2019-09-18 2021-03-19 华为技术有限公司 Method for realizing application plug-in and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120150898A1 (en) * 2010-12-09 2012-06-14 International Business Machines Corporation Dynamic Collection Of System Support Files In A Data Processing Environment
CN108491202A (en) * 2018-03-15 2018-09-04 南京智格电力科技有限公司 A kind of implementation method of the graphics engine based on QML
CN108829462A (en) * 2018-06-21 2018-11-16 安徽大中润科技有限公司 A kind of display methods of information, system and plug-in management platform
CN110162345A (en) * 2019-05-05 2019-08-23 网宿科技股份有限公司 A kind of application program access method, device and storage medium
CN112527301A (en) * 2019-09-18 2021-03-19 华为技术有限公司 Method for realizing application plug-in and electronic equipment
WO2021052167A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Method for realizing pluginization of application, and electronic apparatus
CN112181554A (en) * 2020-09-08 2021-01-05 安徽鸿程光电有限公司 Interactive interface display method and device, electronic device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
凌旺;刘德龙;张名明;: "基于QT集成化插件技术的电子战显示软件设计", 电子技术与软件工程, no. 10, 22 June 2016 (2016-06-22) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968406A (en) * 2022-05-27 2022-08-30 北京青云科技股份有限公司 Plug-in management method and device, electronic equipment and storage medium
CN114968406B (en) * 2022-05-27 2023-10-13 北京青云科技股份有限公司 Plug-in management method and device, electronic equipment and storage medium
CN116521271A (en) * 2023-05-22 2023-08-01 广州广电运通信息科技有限公司 Plug-in module management method and device

Similar Documents

Publication Publication Date Title
CN108897691B (en) Data processing method, device, server and medium based on interface simulation service
CN108346028B (en) Business approval processing method, device and system
US10102306B2 (en) Patching base document object model (DOM) with DOM-differentials to generate high fidelity replay of webpage user interactions
US9542461B2 (en) Enhancing performance of extract, transform, and load (ETL) jobs
CN114443159A (en) Plug-in processing device and method, computer equipment and storage medium
CN113377348A (en) Task adjustment method applied to task engine, related device and storage medium
CN109831466B (en) Micro-service business processing method and nginx server
CN107479868B (en) Interface loading method, device and equipment
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN112596720A (en) Service operation method and device, electronic equipment and computer storage medium
CN111522849A (en) Database dynamic access method, server and storage medium
CN113873013B (en) Offline package reorganization method and system
CN109697034B (en) Data writing method and device, electronic equipment and storage medium
CN114610598A (en) Test method, test device, electronic equipment and computer readable storage medium
CN112748962A (en) Application loading method and device, electronic equipment and computer readable medium
CN112148826A (en) Method, device, equipment and storage medium for integrating map service in business
CN112035160A (en) Code management system and control method thereof
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN113296781A (en) Application program installation package file compiling and constructing method and device and electronic equipment
CN112068814A (en) Method, device, system and medium for generating executable file
CN114629954B (en) Content distribution method, system, device and storage medium
CN112015394B (en) Android function module development method and device, computer system and storage medium
CN111752587B (en) Batch processing method and device for small programs, electronic equipment and readable storage medium
CN115113898A (en) Dynamic updating method and device for micro application, computer equipment and storage 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