Data collection management method, terminal equipment and storage medium
By launching the collection space application on the terminal device and using the drag-and-drop framework structure to import and parse the data of material objects, the complex collection operation and inconvenient management are solved, and fast collection and effective management are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202410040742.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, users have complex operations to collect materials on terminal devices and are difficult to effectively manage, especially inability to collect some contents of web pages, resulting in inexpensive collection efficiency and inconvenient data management.
By launching the collection space application on the terminal device, responding to the drag operation, using the drag frame structure to import the data or storage path of the material object, and parsing and storing it according to the data type, quickly collecting and managing the material object.
It simplifies collection operations, improves user experience, realizes effective management and fast collection of material data, and facilitates users to view and find collection content.
Smart Images

Figure CN120336584A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminal devices, and particularly relates to a data collection management method, a terminal device, and a storage medium. Background Art
[0002] When a user uses a terminal device (such as a computer device), they often need to collect materials that they are interested in. For example, after the user copies or edits interesting text or images in a file and saves them to the local folder or notes of the terminal device, the collection of text or picture materials can be achieved. Another example is that after the user clicks the "favorite button" on the browser, the currently displayed web page on the browser can be added to the favorites. However, the above methods for collecting text or images require the user to open the file and copy or edit the text or images to be collected, making the collection operation too complex. The above method for collecting web pages on the browser can only collect all the content of the web page and cannot collect partial content of the web page, causing inconvenience to the user's collection operation and viewing of the collected content, with low collection efficiency and difficulty in effectively controlling the collected data, affecting the user experience. Summary of the Invention
[0003] In view of the above, it is necessary to provide a data collection management method, a terminal device, and a storage medium to solve the technical problems of inconvenient collection operations and difficulty in effectively controlling the collected data.
[0004] In a first aspect, an embodiment of this application provides a data collection management method, which is applied to a terminal device. The method includes: responding to a preset operation, starting a collection space application, and displaying a user interface of the collection space application; responding to a drag operation of dragging a material object to the user interface, triggering a drag event, and determining a drag frame structure of the material object according to the drag event, and importing the data or storage path of the material object into the drag frame structure; obtaining the data type of the material object from the drag frame structure; parsing the data or storage path of the material object from the drag frame structure according to the data type of the material object, and storing the parsed data or storage path in a database corresponding to the collection space application; and displaying the material object on the user interface.
[0005] In the above technical solution, when it is detected that a material object is dragged to the user interface, the data or storage path of the material object is imported into the drag framework structure of the material object. The data or storage path of the material object is parsed from the drag framework structure according to the data type of the material object, and the obtained data or storage path is stored in the database of the collection space application. In this way, the user only needs to drag the material object to the user interface to hide the material object on the user interface, thus solving the technical problems of inconvenient existing collection operations and difficult effective management and control of collection data, and improving the user experience.
[0006] In an embodiment of the present application, in response to a preset operation, the collection space application is started, including: in response to a click operation on the application icon of the collection space application on the desktop of the terminal device, starting the collection space application; or if it is detected that a material object is dragged to the area position of the application icon, starting the collection space application; or in response to the invocation of a preset shortcut, starting the collection space application; or starting the collection space application after the terminal device is powered on. The above technical solution starts the collection space application by clicking on the application icon of the collection space application, or dragging a material object to the area position of the application icon, or invoking a preset shortcut, or through a power-on operation, thus facilitating the user to enable the data collection function.
[0007] In an embodiment of the present application, the display of the user interface includes any of the following methods: after the collection space application is started, if the displayed user interface is closed, an interface trigger control is displayed in a preset area on the desktop of the terminal device, and the interface trigger control is used to trigger the display of the user interface; after the collection space application is started, the interface trigger control is displayed in a preset area. The above technical solution can trigger the display of the user interface through the displayed interface trigger control, facilitating the user to perform collection operations.
[0008] In an embodiment of the present application, the method further includes: in response to a drag operation of dragging a material object to a preset range of the interface trigger control, displaying the user interface. The above technical solution allows the user to drag the material object to a preset range of the interface trigger control to display the user interface. If it is detected that the user continues to drag the material object to the user interface, the material object can be collected on the user interface. In this way, the user can realize the collection of the material object through continuous dragging operations.
[0009] In an embodiment of the present application, the material object is text. In response to a drag operation of dragging the material object to the user interface, a drag event is triggered, and a drag frame structure of the material object is determined according to the drag event. The data or storage path of the material object is imported into the drag frame structure, including: if it is detected that the user drags the text as a material object to the user interface, a first drag event is triggered. According to the first drag event, the drag frame structure of the material object is determined, and the text data of the material object is imported into the drag frame structure. In the above technical solution, the user can import the text data into the drag frame structure by dragging the text to the user interface.
[0010] In an embodiment of the present application, the data or storage path of the material object is parsed from the drag frame structure according to the data type of the material object, and the parsed data or storage path is stored in the database corresponding to the favorite space application, including: if the data type of the material object is text type, a first index is parsed from the drag frame structure of the material object, and the first index indicates the storage position of the text data of the material object in the drag frame structure; the text data of the material object is obtained from the drag frame structure according to the first index, and the obtained text data is stored in the database of the favorite space application. In the above technical solution, the user can parse the text data from the drag frame structure and store the text data in the database of the favorite space application by dragging the text to the user interface.
[0011] In an embodiment of the present application, the material object is one or more of an image, a video or an audio. In response to a drag operation of dragging the material object to the user interface, a drag event is triggered, and a drag frame structure of the material object is determined according to the drag event. The data or storage path of the material object is imported into the drag frame structure, including: if it is detected that the user drags at least one of an image, a video or an audio as a material object to the user interface, a second drag event is triggered. According to the second drag event, the drag frame structure of the material object is determined, and the image data, video data or audio data of the material object is imported into the drag frame structure. In the above technical solution, the user can correspondingly import the image data, video data or audio data into the drag frame structure by dragging one or more of an image, a video or an audio to the user interface.
[0012] In an embodiment of the present application, the data or storage path of the material object is parsed from the drag framework structure according to the data type of the material object, and the parsed data or storage path is stored in the database corresponding to the favorite space application, including: If the data type of the material object is a file type, a second index is parsed from the drag framework structure of the material object, and the second index indicates the storage location of the storage path of the image data, video data, or audio data of the material object in the drag framework structure; According to the second index, the storage path of the image data, video data, or audio data of the material object is obtained from the drag framework structure, and the obtained storage path is stored in the database of the favorite space application. In the above technical solution, the user can obtain the storage paths of the image data, video data, or audio data from the drag framework structure through the drag operation of dragging the image, video, or audio to the user interface, and store the obtained text data in the database of the favorite space application.
[0013] In an embodiment of the present application, the material object is hypertext markup language (html) data. In response to the drag operation of dragging the material object to the user interface, a drag event is triggered, and the drag framework structure of the material object is determined according to the drag event, and the data or storage path of the material object is imported into the drag framework structure, including: If it is detected that the user drags the html data as the material object to the user interface, a third drag event is triggered, and the drag framework structure of the material object is determined according to the third drag event, and the html data is imported into the drag framework structure. In the above technical solution, the user can import the html data into the drag framework structure correspondingly through the drag operation of dragging the html data to the user interface.
[0014] In an embodiment of the present application, the data or storage path of the material object is parsed from the drag-and-drop framework structure according to the data type of the material object, and the parsed data or storage path is stored in the database corresponding to the collection space application, including: if the data type of the material object is the html document type, a third index is parsed from the drag-and-drop framework structure, and the third index indicates the storage location of the html data in the drag-and-drop framework structure; the html data is obtained from the drag-and-drop framework structure according to the third index, and at least one html node is obtained by parsing the html data; if the data type of at least one html node is the text type, the data of at least one html node is stored in the database of the collection space application; if the data type of at least one html node is the file type, the data of at least one html node is downloaded to the memory of the terminal device according to the uniform resource locator (URL) of at least one html node, a local URL is generated, and a thumbnail of the file corresponding to at least one html node is generated, and the local URL and the thumbnail of the data of at least one html node are stored in the database of the collection space application. In the above technical solution, through the drag-and-drop operation of dragging the html data to the user interface, the user can obtain the data of the html node, or the local URL and the thumbnail of the data of the html node from the drag-and-drop framework structure according to the data type of the html node in the html data, and store the obtained data in the database of the collection space application.
[0015] In an embodiment of the present application, obtaining the data type of the material object from the drag-and-drop framework structure includes: obtaining the field of the data type of the material object from the drag-and-drop framework structure through a first preset call function, and determining the data type of the material object according to the field of the data type.
[0016] In an embodiment of the present application, displaying the material object on the user interface includes: after dragging the material object to the user interface, determining the position of the material object in the user interface according to the release position of the drag-and-drop operation; adjusting the timestamp of the material object according to the position of the material object in the user interface; sorting and displaying all the materials on the user interface according to the timestamp of the material object. In the above technical solution, after dragging the material object to the user interface, the position of the material object in the user interface is determined, the timestamp of the material object is adjusted according to the position of the material object in the user interface, and all the materials on the user interface are sorted and displayed according to the timestamp of the material object, so that the material objects are sorted based on the release position after dragging.
[0017] In an embodiment of the present application, adjusting the timestamp of a material object according to the position of the material object in the user interface includes: if the material object is located between two material objects, adjusting the timestamp of the material object to a time value between the timestamps of the two material objects; if the position of the material object in the user interface is the first among all material objects, using the current system time as the timestamp of the material object; if the position of the material object in the user interface is the last among all material objects, determining the timestamp of the material object based on the difference between the timestamp of the material object at the previous position of the material object and a preset time constant. In the above technical solution, when the material object is located between two material objects, the timestamp of the material object is adjusted to a time value between the timestamps of the two material objects; when the position of the material object in the user interface is the first among all material objects, the current system time is used as the timestamp of the material object, and when the position of the material object in the user interface is the last among all material objects, the timestamp of the material object is determined based on the difference between the timestamp of the material object at the previous position of the material object and a preset time constant, so that the material objects can be sorted based on the release position after dragging.
[0018] In an embodiment of the present application, displaying a material object on the user interface includes: sorting all material objects according to the descending order of the timestamps of the material objects and sequentially displaying them on the user interface.
[0019] In an embodiment of the present application, adjusting the timestamp of a material object according to the position of the material object in the user interface includes: if it is detected that the position of the material object coincides with the position of any material object, generating a material group based on the material object and any material; using the timestamp of any material as the timestamp of the material group and adjusting the timestamp of the material object to the current system time. In the above technical solution, when the position of the material object coincides with the position of any other material object among all material objects, the material object and other materials are combined into a material group, the timestamp of the other materials is used as the timestamp of the material group, and the timestamp of the material object is adjusted to the current system time, which can ensure that when the material object is dragged to coincide with the position of other material objects, the material object and other material objects are sorted at the same position as a material group, so that the material objects can be sorted based on the release position after dragging.
[0020] In an embodiment of the present application, displaying a material object on the user interface includes: sorting and displaying all material objects and material groups on the user interface according to the descending order of the timestamps of the material objects and material groups.
[0021] In one embodiment of the present application, the method further includes: receiving a click operation on a material object on the user interface and displaying the data of the material object. In the above technical solution, by receiving the click operation of the user on the material object on the user interface and displaying all the data of the material object, it is convenient for the user to view the specific content of the material object.
[0022] In a second aspect, an embodiment of the present application provides a terminal device, which includes a memory and a processor: the memory is used for storing program instructions; the processor is used for reading and executing the program instructions stored in the memory, and when the program instructions are executed by the processor, the terminal device is enabled to execute the above data collection management method.
[0023] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores program instructions, and when the program instructions run on the terminal device, the terminal device is enabled to execute the above data collection management method.
[0024] In addition, for the technical effects brought by the second aspect to the third aspect, reference can be made to the descriptions related to the methods in the above method section for each design, and details will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] To more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0026] Figure 1 It is a block diagram of a software system of a terminal device provided by an embodiment of the present application.
[0027] Figure 2 It is a flowchart of a data collection management method provided by an embodiment of the present application.
[0028] Figures 3A - 3B It is a schematic diagram of starting a collection space application provided by an embodiment of the present application.
[0029] Figures 4A - 4D It is a schematic diagram of an operation user interface provided by an embodiment of the present application.
[0030] Figures 5A - 5B It is a schematic diagram of starting a collection space application provided by another embodiment of the present application.
[0031] Figures 6A - 6B It is a schematic diagram of dragging a material object to the application interface of a collection space application provided by an embodiment of the present application.
[0032] Figures 7A - 7B Schematic diagram of an application interface for dragging a material object to a favorite space application provided by an embodiment of the present application.
[0033] Figures 8A - 8B Schematic diagram of an application interface for dragging a material object to a favorite space application provided by an embodiment of the present application.
[0034] Figure 9 Schematic diagram of a user interface displaying a material object in an embodiment of the present application.
[0035] Figure 10 Flowchart of a data collection management method provided by an embodiment of the present application.
[0036] Figure 11 Flowchart of a data collection management method provided by another embodiment of the present application.
[0037] Figures 12A - 12D Schematic diagram of dragging and releasing a material object on a user interface provided by an embodiment of the present application.
[0038] Figure 13 Schematic diagram of a terminal device provided by an embodiment of the present application. Detailed implementation manners
[0039] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to mean as an example, illustration or description. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that unless otherwise stated in this application, " / " means "or". For example, A / B may represent A or B. The "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone, these three situations. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b, or c may represent: a, b, c, a and b, a and c, b and c, a, b, and c, these seven situations.
[0041] When a user uses a terminal device (such as a computer device), it is often necessary to collect materials that the user is interested in. For example, the user copies or edits the text or image of interest in a file and then saves it to the local folder or note of the terminal device, so that the collection of text or picture materials can be realized. However, the above method of collecting text or images requires the user to open the file and copy or edit the text or image to be collected, making the collection operation too complex. Another example is that after the user clicks the "favorite button" on the browser, the currently displayed web page on the browser can be added to the favorites. However, the above method of collecting the web page of the browser can only collect all the content of the web page and cannot collect partial content of the web page, resulting in inconvenience for the user in the collection operation and viewing the collected content, low collection efficiency and inconvenience for effectively managing the collected data, affecting the user experience. Based on the above content, this application provides a data collection management method, which can solve the technical problems of complex and inconvenient collection operations and difficulty in effectively managing the collected data. The method is applied to a terminal device, such as devices like a computer, a tablet computer, a mobile phone, etc. The terminal device includes an application processor, and the application processor is used to run an operating system. The operating system of the terminal device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In this application embodiment, the Windows TM system is taken as an example to exemplarily illustrate the software structure of the terminal device.
[0042] Figure 1 is a block diagram of a software system of a terminal device provided by an embodiment of this application. Refer to Figure 1, The layered architecture divides software into several layers, and each layer has clear roles and divisions of labor. The layers communicate with each other through software interfaces. In some embodiments, the Windows system is divided into user mode and kernel mode. Among them, the user mode includes the application layer and the subsystem dynamic link library. The kernel mode is divided into the hardware layer, the firmware layer, the hardware abstraction layer (HAL), the kernel, the driver layer, and the executive body from bottom to top.
[0043] As Figure 1 shown, the application layer includes application programs such as music, video, games, office, and social. Among them, only some application programs are shown in the figure, and the application layer may also include other application programs, such as shopping applications, browsers, etc., which are not limited in the embodiments of the present application.
[0044] The subsystem dynamic link library includes an application programming interface (API) module, and this API module includes Windows (window) API, Windows native API, etc. Among them, both Windows API and Windows native API can provide system call entry and internal function support for application programs. The difference is that the Windows native API is the native API of the Windows system. For example, Windows API may include user.dll, kernel.dll, and Windows native API may include ntdll.dll. Among them, user.dll is the Windows user interface interface and can be used to perform operations such as creating windows and sending messages. kernel.dll is used to provide an interface for application programs to access the kernel. ntdll.dll is an important Windows NT kernel-level file that describes the interface of the windows local NTAPI. When Windows starts, ntdll.dll resides in a specific write-protected area of memory, preventing other programs from occupying this memory area.
[0045] The executive body includes a process manager, a virtual memory manager, a security reference monitor, an Input / Output (I / O) manager, a Windows Management Instrumentation (WMI) plug-in, a power manager, an operating system event driver (OsEventDriver) node (also known as an Event driver node), an operating system to System on Chip (OS2SOC) node, etc.
[0046] The process manager is used to create and abort processes and threads. The virtual memory manager implements "virtual memory". The virtual memory manager also provides basic support for the cache manager. The security reference monitor can enforce security policies on the local computer, protect the operating system resources, and enforce the protection and monitoring of runtime objects. The I / O manager performs device-independent input / output and further processes calls to appropriate device drivers. The power manager can manage power state changes for all devices that support power state changes. The OsEventDriver node can interact with the kernel and the driver layer, such as interacting with the graphics driver.
[0047] The kernel and the driver layer include the kernel and device drivers. The kernel is an abstraction of the processor architecture, isolating the differences between the executive body and the processor architecture to ensure the portability of the system. The kernel can perform thread scheduling and dispatching, trap handling and exception dispatching, interrupt handling and dispatching, etc. Device drivers run in kernel mode and are the interface between the I / O system and related hardware. Device drivers can include graphics drivers, dynamic tuning technology (DTT) drivers, mouse drivers, audio / video drivers, camera drivers, keyboard drivers, etc. For example, the graphics driver can drive the GPU to run, and the Intel DTT driver can drive the CPU to run.
[0048] HAL is a kernel-mode module that can hide various hardware-related details, such as I / O interfaces, interrupt controllers, and multiprocessor communication mechanisms, etc., providing a unified service interface for different hardware platforms running Windows and achieving portability on multiple hardware platforms. It should be noted that to maintain the portability of Windows, internal components of Windows and device drivers written by users do not directly access hardware but call routines in HAL.
[0049] The firmware layer can include the basic input output system (BIOS). BIOS is a set of programs that are fixed to a read-only memory (ROM) chip on the computer motherboard. It stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program. It can read and write specific information of system settings from complementary metal oxide semiconductor (CMOS). Its main function is to provide the lowest-level and most direct hardware settings and control for the computer. The Intel DTT driver can send instructions to the CPU through the BIOS.
[0050] The hardware layer includes mouse, microphone, camera and keyboard.
[0051] It should be noted that the embodiments of the present application are only described using the Windows system as an example. In other operating systems (such as the Android system, the IOS system, etc.), as long as the functions implemented by each functional module are similar to those of the embodiments of the present application, the solutions of the present application can also be implemented.
[0052] The following will be combined Figure 2 The data collection management method of the embodiment of the present application is described in detail. Figure 2 FIG. 1 is a flow chart of a data collection management method provided in an embodiment of the present application. The method is applied in a terminal device. Figure 2 The method of the example includes one or more steps, but does not constitute a limitation of the present application. In addition, the order of the steps of the method is only an example, and the order of the steps can be changed. Without departing from the content disclosed in the present application, additional steps can be added or steps can be reduced. The method specifically includes the following steps.
[0053] Step S201, in response to a preset operation, starting a favorites space application and displaying a user interface of the favorites space application.
[0054] The following takes the terminal device as a computer device as an example to specifically illustrate the specific implementation steps of the data collection management method provided in the embodiment of the present application. Figure 3A As shown, an application icon 20 of the collection space application is displayed on the desktop of the computer device. In response to a user clicking the application icon of the collection space application on the desktop, the collection space application is started and a user interface 200 of the collection space application is displayed (refer to Figure 3B)。In an embodiment of the present application, the user interface 200 can be used to receive the material objects dragged by the user and display the dragged material objects on the user interface 200. For example, the display screen of the computer device displays a locally stored document. If it is detected that the user drags a selected part of the text data in the document to the user interface 200, the user interface 200 receives the text data dragged by the user and displays it on the user interface 200.
[0055] In an embodiment of the present application, the user interface 200 can be displayed on the user interface 200 of the computer device in the form of a floating window. The user interface 200 can be displayed at any fixed position on the desktop of the computer device, or the display position can be changed according to the user's movement operation. For example, the user interface 200 can be moved according to the single-finger sliding operation or the cursor movement operation performed by the user on the user interface 200, so that it is convenient for the user to move the user interface 200 to a suitable position on the desktop of the computer device and convenient for the user to collect the material objects.
[0056] Reference Figure 4A , in an embodiment of the present application, the user interface 200 further includes a hidden control 30. If a trigger operation on the hidden control 30 is detected by the computer device, the user interface 200 will be hidden and the interface trigger control 300 will be displayed. For example, the interface trigger control can be a drop-down bar (reference Figure 4B ). In an embodiment of the present application, the trigger operation includes but is not limited to a single-handed click operation and a mouse click operation.
[0057] In another embodiment of the present application, within the preset display time of the user interface 200, if no operation on the user interface 200 is detected by the user, the user interface 200 will be hidden and the interface trigger control 300 will be displayed.
[0058] In an embodiment of the present application, when it is detected that the user clicks on the interface trigger control, or moves the cursor or finger to the area where the interface trigger control is located or within a preset range near the area, the hidden user interface 200 can be triggered to be displayed. Reference Figure 4C , if it is detected that the user clicks on the interface trigger control 300 (for example, the drop-down bar), the computer device will display the hidden user interface 200 on the desktop of the computer device. In another embodiment of the present application, if it is detected that the user drags the material object to the position where the interface trigger control 300 is located or within a preset range of the position, the computer device will display the hidden user interface 200 on the desktop of the computer device.
[0059] Reference Figure 4A, the user interface 200 further includes zoom in and zoom out controls 31. If a control operation on the zoom in and zoom out controls 31 is detected, the computer device will display the user interface 200 in a magnified or reduced manner. In an embodiment of the present application, if the user interface 200 is in a reduced state and a user operation on the zoom in and zoom out controls 31 is detected, the computer device will display the user interface 200 in a magnified manner, such as full screen display; if the user interface 200 is in a magnified state and a control operation on the zoom in and zoom out controls 31 is detected, the computer device will display the user interface 200 in a reduced manner, such as restoring the user interface 200 to the interface before the magnified display.
[0060] Reference Figure 4A , the user interface 200 further includes an exit control 32. If a control operation on the exit control 32 is detected, the computer device closes the collection space application and its user interface 200.
[0061] Based on the display method of the above embodiments, the present application can not only hide the user interface 200 to facilitate the user to use other functions of the computer device, such as video playback, web browsing, etc., but also trigger the display and exit display of the user interface 200 through preset controls to facilitate the collection of various selected material objects.
[0062] In another embodiment of the present application, the user can start the collection application by dragging a material object. For example, if an operation of dragging a material object to the area position of the application icon 20 of the collection space application is detected, the collection space application is started, and the computer device starts the collection space application and displays the user interface 200. For example, reference Figure 5A , the user interface 200 displays a local document, and text data is displayed on the local document. Reference Figure 5B , the user performs a drag operation on the selected text data on the local document of the computer device. If the computer device detects an operation of dragging the text data of the local document of the computer device to the area position of the application icon 20 of the collection space application, the collection space application is started, and the user interface 200 is displayed on the user interface 200 of the computer device.
[0063] In another embodiment of the present application, the computer device responds to the user's invocation of a preset shortcut to start the collection space application. In an embodiment of the present application, the preset shortcut can be a preset physical button or a combination of multiple buttons. In another embodiment of the present application, after detecting that the computer device is powered on, the collection space application is started.
[0064] In an embodiment of the present application, after the collection space application is launched, if the displayed user interface 200 is closed, an interface trigger control is displayed in a preset area on the desktop of the computer device, and the interface trigger control is used to trigger the display of the user interface 200. In another embodiment of the present application, after the collection space application is launched, the computer device displays an interface trigger control in a preset area, and in response to a drag operation of dragging a material object into a preset range of the interface trigger control, the user interface 200 is displayed.
[0065] In an embodiment of the present application, after the collection space application is launched, the computer device creates a database for the collection space application. The database is used to store the material objects received by the collection space application.
[0066] Step S202: In response to a drag operation of dragging a material object to the user interface, a drag event is triggered, and a drag frame structure of the material object is determined according to the drag event, and the data or storage path of the material object is imported into the drag frame structure.
[0067] In an embodiment of the present application, if it is detected that the user drags a material object to the user interface 200, the computer device triggers a drag event, determines the drag frame structure of the material object according to the drag event, and imports the data of the material object into the drag frame structure of the material object. In an embodiment of the present application, the drag frame structure is a structure function. The structure function is provided with a storage space, and the storage space of the drag frame structure is used to store the data of the material object or the storage path of the material object. In an embodiment of the present application, the code representation of the drag frame structure is ingerface DataTransfer{}.
[0068] In an embodiment of the present application, the data of the material object includes text, images, videos, audio, and hyper text markup language (html) data. The html data is data that organizes text, images, or charts through hypertext markup language. In an embodiment of the present application, the data type corresponding to the text is the text type, the data types corresponding to images, videos, and audio are the file types, and the data type corresponding to the html data is the html document type.
[0069] In an embodiment of the present application, referring to Figure 6A , text is displayed on the interface of the local document of the computer device. Referring to Figure 6B, if it is detected that the user drags the text as a material object to the user interface 200, a first drag event is triggered. According to the first drag event, the drag frame structure of the material object is determined, and the text data of the material object (such as plain text data) is imported into the drag frame structure of the material object. For example, after the user selects the text and performs a drag operation, the data of the text can be imported into the drag frame structure.
[0070] In an embodiment of the present application, refer to Figure 7A , an image, video or audio is displayed on the interface of the local document of the computer device. Refer to Figure 7B If it is detected that the user drags an image, video or audio as a material object to the user interface 200, a second drag event is triggered. According to the second drag event, the drag frame structure of the material object is determined, and the storage path of the image, video or audio data of the material object is imported into the drag frame structure.
[0071] In an embodiment of the present application, refer to Figure 8A , html data is displayed on the web page of the browser of the computer device. Refer to Figure 8B , if it is detected that the user drags html data as a material object to the user interface 200, a third drag event is triggered. According to the third drag event, the drag frame structure of the material object is determined, and the html data of the material object (such as text organized by hypertext markup language) or the uniform resource locator (URL) of the html data, such as the URL of an image organized by hypertext markup language, is imported into the drag frame structure.
[0072] Step S203, obtain the data type of the material object from the drag frame structure.
[0073] In an embodiment of the present application, the computer device obtains the data type of the material object from the drag-and-drop framework structure through a first preset call function. In an embodiment of the present application, the first preset call function includes data.getasString(). In an embodiment of the present application, the computer device obtains the field of the data type of the material object from the drag-and-drop framework structure through the first preset call function, and determines the data type of the material object according to the field of the data type. In an embodiment of the present application, if the field of the data type has a first field value, it is determined that the data type is a text type; if the field of the data type has a second field value, it is determined that the data type is a file type; if the field of the data type has a third field value, it is determined that the data type is an html document type. In an embodiment of the present application, the first field value may be "text / plain", the second field value may be "file", and the third field value may be "text / html".
[0074] Step S204: Parse the data or storage path of the material object from the drag-and-drop framework structure according to the data type of the material object, and store the parsed data or storage path in the database of the favorite space application.
[0075] In an embodiment of the present application, parsing the data or storage path of the material object from the drag-and-drop framework structure according to the data type of the material object includes: if the data type of the material object is a text type, parsing the data of the text type from the drag-and-drop framework structure according to the text type; if the data type of the material object is an html document type, parsing the data or storage path of the html document type from the drag-and-drop framework structure according to the html document type; if the data type of the material object is a file type, parsing the storage path of the file type from the drag-and-drop framework structure according to the file type. For example, when the material object is the text "describing the process of image processing", it is determined that the data type of the material object is a text type, and the text data of "describing the process of image processing" is parsed from the drag-and-drop framework structure of the material object according to the text type; when the material object is the "sunset image", it is determined that the data type of the material object is a file type, and the storage path storing the "sunset image" is parsed from the drag-and-drop framework structure of the material object according to the file type; when the material object is a web page text containing text and images, it is determined that the data type of the material object is an html document type, and html data (such as the storage paths of text and images) is parsed from the drag-and-drop framework structure of the material object according to the html document type.
[0076] In an embodiment of the present application, parsing the data or storage path of the material object from the drag-and-drop framework structure according to the data type of the material object includes: if the data type of the material object includes a text type and a file type, parsing the text type data from the drag-and-drop framework structure according to the text type, and parsing the storage path of the file type from the drag-and-drop framework structure according to the file type; if the data type of the material object includes an html document type and at least one of the text type and the file type, parsing the html data of the html document type from the drag-and-drop framework structure according to the html document type.
[0077] Step S205: Display the material object on the user interface.
[0078] In an embodiment of the present application, the computer device sorts and displays the material object and other material objects that have been collected in the collection space application on the user interface 200. For example, the computer device can sort and display according to the timestamp of collection of each material object in the collection space application.
[0079] Reference Figure 9 As shown, it is a schematic diagram of the user interface 200 in an embodiment of the present application. After the text in Figure 6B , or the image in Figure 7B , or the html data in Figure 8B and other material objects are dragged to the user interface 200, the text, image, html data and other material objects are displayed on the user interface 200 (refer to Figure 9 ), so that it is convenient for the user to collect the material objects of interest and view the collected material objects.
[0080] In an embodiment of the present application, after step S205, the method further includes: receiving a click operation of the user on the material object on the user interface 200, and displaying all the data of the material object, so that it is convenient for the user to view the specific content of the material object.
[0081] Reference Figure 4A, in an embodiment of the present application, the user interface 200 further includes a search field 33 for receiving keywords input by the user. The computer device searches for material objects matching the keywords in the corresponding database according to the keywords input by the user in the search field 33, and displays the found material objects on the user interface 200, so that it is convenient for the user to quickly find the material objects needed by the user from multiple material objects on the user interface 200. In the embodiment of the present application, when it is detected that a material object is dragged to the user interface 200, the data or storage path of the material object is imported into the drag frame structure of the material object, and the data or storage path of the material object is parsed from the drag frame structure according to the data type of the material object, and the obtained data or storage path is stored in the database of the favorite space application. In this way, the user only needs to drag the material object to the user interface 200 to hide the material object on the user interface 200, thus solving the technical problems of inconvenient existing collection operations and difficult effective management and control of collected data, and improving the user experience.
[0082] Figure 10 It is a flowchart of a data collection management method provided in another embodiment of the present application. The method specifically includes the following steps.
[0083] Step S1001, in response to a preset operation, start the favorite space application and display the user interface.
[0084] Step S1002, in response to a drag operation of dragging a material object to the user interface, trigger a drag event, and determine the drag frame structure of the material object according to the drag event, and import the data or storage path of the material object into the drag frame structure.
[0085] In an embodiment of the present application, the material object includes text, image, video, audio, and html data. Html data is data that organizes text, images, or charts through hypertext markup language. In an embodiment of the present application, the data type corresponding to text is the text type, the data types corresponding to images, videos, and audio are the file type, and the data type corresponding to html data is the html document type.
[0086] Step S1003, parse the data type of the material object from the drag frame structure.
[0087] In an embodiment of the present application, steps S1001 - S1003 correspond to Figure 2 steps S201 - S203, and the specific implementation content of steps S1001 - S1003 can refer to the specific implementation content of steps S201 - S203.
[0088] Step S1004, if the data type of the material object is text type, obtain a first index by parsing from the drag-and-drop framework structure of the material object, where the first index indicates the storage location of the data of the material object in the drag-and-drop framework structure.
[0089] Step S1005, obtain the data of the material object from the drag-and-drop framework structure according to the first index, and store the obtained data in the database of the collection space application.
[0090] In an embodiment of the present application, the computer device obtains the text data from the database of the drag-and-drop framework structure according to the first index, parses the text data to obtain text type data (such as plain text data), and stores the text type data in the database of the collection space application.
[0091] Step S1006, if the data type of the material object is file type, obtain a second index by parsing from the drag-and-drop framework structure of the material object, where the second index indicates the storage location of the data of the material object in the drag-and-drop framework structure.
[0092] Step S1007, obtain the storage path of the material object from the drag-and-drop framework structure according to the second index, and store the obtained storage path in the database of the collection space application.
[0093] In an embodiment of the present application, the computer device obtains the data of the material object from the database of the drag-and-drop framework structure according to the second index, parses the data of the material object to obtain file type data, such as image, video or audio data, and stores the storage path of the file type data in the database of the collection space application.
[0094] Step S1008, if the data type of the material object is html document type, obtain a third index by parsing from the drag-and-drop framework structure of the material object, where the third index indicates the storage location of the data of the material object in the drag-and-drop framework structure.
[0095] Step S1009, obtain the html data of the material object from the drag-and-drop framework structure according to the third index, and parse the html data to obtain at least one html node.
[0096] In an embodiment of the present application, the html data is divided into text type data, file type data, or null value data according to the data type. In an embodiment of the present application, parsing the html data to obtain at least one html node includes: converting the html data into json data according to the json format, where the json data includes multiple html nodes, and each html node is a data block obtained by dividing the html data according to a preset data type, and the preset data type includes text type, file type, or null value data type; traversing to find html nodes with data types of file type and text type to obtain at least one html node.
[0097] Step S1010, if the data type of the html node is text type, store the data of the html node in the database of the collection space application.
[0098] In an embodiment of the present application, if the data type of the html node is text type, the computer device obtains the text type data from the html node and stores the text type data obtained from the html node in the database of the collection space application.
[0099] Step S1011, if the data type of the html node is file type, download the data of the html node to the memory of the computer device according to the URL of the html node, generate a local URL and a thumbnail of the data of the html node, and store the local URL and the thumbnail of the data of the html node in the database of the collection space application.
[0100] In an embodiment of the present application, if the data type of the html node is file type, download the file type data (such as image, video, or audio data) of the html node to the local according to the URL of the html node, generate a local URL and a thumbnail of the file type data of the html node, and store the local URL and the thumbnail of the file type data of the html node in the database of the collection space application.
[0101] In an embodiment of the present application, after step S1011, the method further includes: displaying a material object on the user interface. In an embodiment of the present application, the computer device sorts and displays the material object and other material objects already collected in the collection space application on the user interface.
[0102] In an embodiment of the present application, after step S1011, the method further includes: receiving a click operation of the user on the material object on the user interface and displaying the data of the material object.
[0103] For example, when a user clicks on a material object on the user interface, the computer device obtains the user's click operation on the material object and displays all the data content of the material object, thus facilitating the user to view the specific content of the material object of interest.
[0104] When the technical solution of this application detects an operation of dragging a material object to the user interface, it imports the data of the material object into the drag framework structure of the material object. If the data type of the material object is an html document type, it further parses the html data of the html document type to obtain html nodes. If the data type of the html node is a text type, it stores the data of the html node in the database of the collection space application. If the data type of the html node is a file type, it stores the local URL and thumbnail of the data of the html node in the database of the collection space application. In this way, it can quickly realize the collection of part of the content of a web page and improve the user experience.
[0105] Reference Figure 11 As shown, it is a flowchart of a data collection management method provided by another embodiment of this application. The method specifically includes the following steps.
[0106] Step S1101, in response to a preset operation, start the collection space application and display the user interface.
[0107] Step S1102, in response to a drag operation of dragging a material object to the user interface, trigger a drag event and determine the drag framework structure of the material object according to the drag event, and import the data or storage path of the material object into the drag framework structure.
[0108] Step S1103, obtain the data type of the material object from the drag framework structure.
[0109] Step S1104, parse and obtain the data or storage path of the material object from the drag framework structure according to the data type of the material object, and store the parsed data or storage path in the database of the collection space application.
[0110] In an embodiment of this application, steps S1101 - S1104 correspond to Figure 2 steps S201 - S204, and the specific implementation content of steps S1101 - S1104 can refer to the specific implementation content of steps S201 - S204.
[0111] Step S1105, record the initial timestamp of the material object, where the initial timestamp represents the system time when the material object is collected on the user interface.
[0112] For example, when the system time is 12:12:12 on December 31, 2023 when the data or storage path of the material object is stored in the database of the favorite space application, the initial timestamp of the material object is set to 12:12:12 on December 31, 2023. The display format of the timestamp can be YYYY-MM-DDTHH:MM:SSZ. For example, the timestamp is expressed as 2023-12-31T12:12:12Z. This is only for illustrative purposes. In actual applications, there are various different expression forms or corresponding formats for timestamps, and the embodiments of this application do not limit this.
[0113] Step S1106, after dragging the material object to the user interface, determine the position of the material object in the user interface according to the release position of the drag operation.
[0114] In an embodiment of the present application, determining the position of the material object in the user interface includes: determining the sorting position of the material object among all the material objects on the user interface. In an embodiment of the present application, the sorting position includes at least one of the following: the material object is located between any two adjacent material objects among all the material objects, at the first position among all the material objects, at the last position among all the material objects, or coincides with any one of the material objects among all the material objects to form a folder as a material group. For example, if the release position of the material object A after being dragged to the user interface coincides with the position of the existing material object B in the user interface, then the material object A and the material object B form a folder.
[0115] Step S1107, adjust the timestamp of the material object according to the position of the material object in the user interface.
[0116] Reference Figure 12A, in an embodiment of the present application, adjusting the timestamp of a material object according to the position of the material object in the user interface includes: if the material object is located between two material objects among all material objects, adjusting the timestamp of the material object to a time value between the timestamps of the two material objects. For example, the two material objects are the first material object and the second material object, where the first material object represents the material object at a position in front of the material object, and the second material object represents the material object at a position behind the material object; calculating the first target timestamp according to the formula P = P2 + (P1 - P2) / 2, and adjusting the timestamp of the material object to the first target timestamp, where P1 is the timestamp of the first material object, P2 is the timestamp of the second material object, and P represents the first target timestamp. The technical solution of this embodiment, when the material object is located between two material objects among all material objects, calculates the first target timestamp according to the formula P = P2 + (P1 - P2) / 2, and adjusts the timestamp of the material object to the first target timestamp, which can ensure that when the dragged material object is dragged to a position between two material objects, the dragged material object is displayed between the two material objects, so that the material objects can be sorted based on the release position after dragging.
[0117] In an embodiment of the present application, if the first target timestamp of the material object is the same as the timestamp of the second material object, then adjust the timestamp of the first material object. Based on the adjusted timestamp of the first material object, calculate the updated value of the first target timestamp of the material object according to the formula P’ = P2 + (P1’ - P2) / 2, and adjust the timestamp of the material object to the updated value of the first target timestamp, where P1’ is the updated value of the first target timestamp of the material object, P2 is the timestamp of the second material object, and P represents the timestamp of the material object. In an embodiment of the present application, adjusting the timestamp of the first material object includes: adjusting the timestamp of the first material object to a value between the timestamp of the third material object and the timestamp of the second material object, where the third material object represents the material object at a position in front of the first material object. For example, the computer device calculates the second target timestamp according to the formula P1’ = P2 + (P3 - P2) / 2, and adjusts the timestamp of the first material object to the second target timestamp, where P1’ is the second target timestamp, P2 is the timestamp of the second material object, and P3 is the timestamp of the third material object.
[0118] Reference Figure 12B, in an embodiment of the present application, adjusting the timestamp of a material object according to the position of the material object in the user interface includes: if the position of the material object in the user interface is the first among all material objects, using the current system timestamp as the timestamp of the material object. In the technical solution of this embodiment, when the position of the material object in the user interface is the first among all material objects, using the current system timestamp as the timestamp of the material object can ensure that when the material object is dragged to the first position among all material objects, the material object is sorted first, so that the material objects are sorted based on the release position after dragging.
[0119] Reference Figure 12C , in an embodiment of the present application, adjusting the timestamp of a material object according to the position of the material object in the user interface includes: if the position of the material object in the user interface is the last among all material objects, using the difference result of subtracting a preset time constant from the timestamp of the material object in the previous position as the timestamp of the material object. In an embodiment of the present application, if the position of the material object in the user interface is the last among all material objects, the material object in the previous position of the material object is the first material object, and the third target timestamp is calculated according to the formula P4 = P1 - C, and the timestamp of the material object is adjusted to the third target timestamp, where P1 is the timestamp of the first material object, C is the preset time constant, and P4 represents the third target timestamp. In the technical solution of this embodiment, when the position of the material object in the user interface is the last among all material objects, adjusting the timestamp of the material object based on the timestamp of the material object in the previous position can ensure that when the material object is dragged to the last position among all material objects, the material object is sorted first, so that the material objects are sorted based on the release position after dragging.
[0120] Reference Figure 12D , in an embodiment of the present application, adjusting the timestamp of a material object according to the position of the material object in the user interface includes: when it is detected that the position of the material object coincides with the position of any fourth material object among all material objects, generating a material group based on the material object and the fourth material, using the timestamp of the fourth material as the timestamp of the material group, and adjusting the timestamp of the material object to the current system time. In an embodiment of the present application, the material objects in the material group can be sorted from largest to smallest according to the timestamp.
[0121] In the technical solution of this embodiment, when the position of the material object coincides with the position of a fourth material object among all the material objects, the material object and the fourth material are combined into a material group, the time stamp of the fourth material object is used as the time stamp of the material group, and the time stamp of the material object is adjusted to the current system time, which can ensure that when the material object is dragged to coincide with the position of the fourth material object, the material object and the fourth material object are sorted at the same position as the material group, so that the material objects are sorted based on the release position after dragging.
[0122] Step S1108, sort and display all the materials on the user interface according to the time stamp of the material object.
[0123] In an embodiment of the present application, sorting and displaying all the materials on the user interface according to the time stamp of the material object includes: sorting and displaying all the material objects or material groups on the user interface according to the descending sorting order of the time stamps of the material objects or material groups.
[0124] In an embodiment of the present application, after dragging the material object to the user interface, determine the position of the material object on the user interface, adjust the time stamp of the material object according to the position of the material object on the user interface, sort and display all the materials on the user interface according to the time stamp of the material object, so that the material objects are sorted based on the release position after dragging.
[0125] In an embodiment of the present application, based on the above introduction of Figures 12A through 12D users can adjust the sorting position of the material object in the collection space application according to their needs.
[0126] In an embodiment of the present application, due to the limitation of the desktop space of the computer device or the limitation of the size of the user interface, the number of material objects displayed on the user interface can be set. For example, according to the sorting of time stamps, the first five material objects are displayed, and other material objects are omitted. Users can display other material objects through a preset drag bar, scroll bar, drop-down bar or preset controls, etc. In practical applications, it is not limited to the above display methods.
[0127] Next, the terminal device 100 involved in the embodiment of the present application will be introduced.
[0128] The electronic device can be a tablet computer, desktop type, laptop, notebook computer, ultra-mobile personal computer (UMPC), handheld computer, netbook, personal digital assistant (PDA), etc.
[0129] ReferenceFigure 13 As shown in the figure, it is a schematic diagram of the hardware structure of the terminal device 100 provided by an embodiment of the present application. The terminal device 100 may include a processor 110, an internal memory 130, an external memory interface 120, a display screen 140, and a sensor module 150. The sensor module 150 may include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0130] It can be understood that the structure schematically shown in the embodiments of the present invention does not constitute a specific limitation on the terminal device 100. In some other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0131] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modulation and demodulation processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0132] The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0133] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may store the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0134] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0135] It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are only illustrative descriptions and do not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection manners in the above embodiments, or a combination of multiple interface connection manners.
[0136] The terminal device 100 implements the display function through the GPU, the display screen 140, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 140 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0137] The display screen 140 is used to display images, videos, etc. The display screen 140 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include one or N display screens 140, where N is a positive integer greater than 1.
[0138] The internal memory 130 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory may include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation of DDR SDRAM is generally referred to as DDR5 SDRAM), etc. The non-volatile memory may include disk storage devices and flash memory. Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle, and can be divided into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the number of potential levels of the storage unit, and can be divided into universal flash storage (UFS), embedded multi-media card (eMMC), etc. according to the storage specification.
[0139] The random access memory can be directly read and written by the processor 110, and can be used to store the operating system or the executable programs (such as machine instructions) of other running programs, and can also be used to store user and application data, etc.
[0140] The non-volatile memory can also store executable programs and store user and application data, etc., and can be pre-loaded into the random access memory for direct reading and writing by the processor 110.
[0141] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to achieve the data storage function. For example, files such as music and videos are saved in the external non-volatile memory.
[0142] The internal memory 130 or the external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include a plurality of instructions. When the plurality of instructions are executed by the processor 110, the data collection management method executed on the terminal device 100 in the above embodiments can be implemented to realize the data collection management function of the terminal device 100.
[0143] This embodiment also provides a computer program product. When the computer program product runs on a computer, the computer is enabled to execute the above related steps to implement the data collection management in the above embodiments.
[0144] In addition, some embodiments of the present application also provide a device, which may specifically be a chip, a component or a module. The device may include a processor and a memory connected to each other. Wherein, the memory is used to store computer execution instructions. When the device runs, the processor can execute the computer execution instructions stored in the memory so that the chip executes the data collection management in the above method embodiments.
[0145] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, which will not be elaborated here.
[0146] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0147] In the several embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the module or unit is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, and the indirect coupling or communication connection of the device or unit may be in an electrical, mechanical or other form.
[0148] The unit described as a separate component may or may not be physically separated. The component shown as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0149] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of some embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0150] The above embodiments are only used to illustrate the technical solution of the present application and not to limit it. Although the present application has been described in detail with reference to the above preferred embodiments, those of ordinary skill in the art should understand that the technical solution of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A data collection management method, applied to a terminal device, characterized in that, The method includes: In response to a preset operation, start the collection space application and display the user interface of the collection space application; In response to a drag operation of dragging a material object to the user interface, trigger a drag event, determine the drag frame structure of the material object according to the drag event, and import the data or storage path of the material object into the drag frame structure; Obtain the data type of the material object from the drag frame structure; Parse and obtain the data or storage path of the material object from the drag frame structure according to the data type of the material object, and store the parsed data or storage path in the database corresponding to the collection space application; Display the material object on the user interface.
2. The data collection management method according to claim 1, characterized in that The step of "In response to a preset operation, start the collection space application" includes: In response to a click operation on the application icon of the collection space application on the desktop of the terminal device, start the collection space application; or If it is detected that the material object is dragged to the area position of the application icon, start the collection space application; or In response to a call of a preset shortcut, start the collection space application; or After the terminal device is powered on, start the collection space application.
3. The data collection management method according to claim 1, wherein The display of the user interface includes any of the following methods: After the collection space application is started, if the displayed user interface is closed, display an interface trigger control in a preset area on the desktop of the terminal device, and the interface trigger control is used to trigger the display of the user interface; After the collection space application is started, display the interface trigger control in the preset area.
4. The data collection management method according to claim 3, characterized in that, The method further includes: In response to a drag operation of dragging the material object to a preset range of the interface trigger control, display the user interface.
5. The data collection management method according to claim 1, characterized in that When the material object is text, the step of "In response to a drag operation of dragging a material object to the user interface, trigger a drag event, determine the drag frame structure of the material object according to the drag event, and import the data or storage path of the material object into the drag frame structure" includes: If it is detected that the user drags the text as a material object to the user interface, trigger a first drag event, and according to the first drag event, determine the drag frame structure of the material object, and import the text data of the material object into the drag frame structure.
6. The data collection management method according to claim 5, wherein The step of "Parse and obtain the data or storage path of the material object from the drag frame structure according to the data type of the material object, and store the parsed data or storage path in the database corresponding to the collection space application" includes: If the data type of the material object is a text type, parse and obtain a first index from the drag frame structure of the material object, and the first index indicates the storage position of the text data of the material object in the drag frame structure; Obtain the text data of the material object from the drag frame structure according to the first index, and store the obtained text data in the database of the collection space application.
7. The data collection management method according to claim 1, characterized in that The material object is one or more of an image, a video, or an audio. The response to the drag operation of dragging the material object to the user interface triggers a drag event, determines a drag frame structure of the material object according to the drag event, and imports the data or storage path of the material object into the drag frame structure, including: If it is detected that the user drags at least one of the image, the video, or the audio as a material object to the user interface, a second drag event is triggered, a drag frame structure of the material object is determined according to the second drag event, and the image data, video data, or audio data of the material object is imported into the drag frame structure.
8. The data collection management method according to claim 7, characterized in that, Parsing the data or storage path of the material object from the drag frame structure according to the data type of the material object, and storing the parsed data or storage path in the database corresponding to the collection space application, including: If the data type of the material object is a file type, a second index is parsed from the drag frame structure of the material object, and the second index indicates the storage position of the storage path of the image data, video data, or audio data of the material object in the drag frame structure; Obtaining the storage path of the image data, video data, or audio data of the material object from the drag frame structure according to the second index, and storing the obtained storage path in the database of the collection space application.
9. The data collection management method according to claim 1, characterized in that The material object is hypertext markup language (html) data. The response to the drag operation of dragging the material object to the user interface triggers a drag event, determines a drag frame structure of the material object according to the drag event, and imports the data or storage path of the material object into the drag frame structure, including: If it is detected that the user drags html data as the material object to the user interface, a third drag event is triggered, a drag frame structure of the material object is determined according to the third drag event, and the html data is imported into the drag frame structure.
10. The data collection management method according to claim 9, characterized in that, Parsing the data or storage path of the material object from the drag frame structure according to the data type of the material object, and storing the parsed data or storage path in the database corresponding to the collection space application, including: If the data type of the material object is an html document type, a third index is parsed from the drag frame structure, and the third index indicates the storage position of the html data in the drag frame structure; Obtaining the html data from the drag frame structure according to the third index, and parsing the html data to obtain at least one html node; If the data type of the at least one html node is a text type, storing the data of the at least one html node in the database of the collection space application; If the data type of the at least one html node is a file type, download the data of the at least one html node to the memory of the terminal device according to the Uniform Resource Locator (URL) of the at least one html node, generate a local URL, and generate a thumbnail of the file corresponding to the at least one html node, and store the local URL and the thumbnail of the data of the at least one html node in the database of the collection space application.
11. The data collection management method according to claim 1, characterized in that, The obtaining the data type of the material object from the drag frame structure includes: Obtaining the field of the data type of the material object from the drag frame structure through a first preset call function, and determining the data type of the material object according to the field of the data type.
12. The data collection management method according to claim 1, wherein The displaying the material object on the user interface includes: After dragging the material object to the user interface, determining the position of the material object in the user interface according to the release position of the drag operation; Adjusting the timestamp of the material object according to the position of the material object in the user interface; Sorting and displaying all the materials on the user interface according to the timestamps of the material objects.
13. The data collection management method according to claim 12, wherein, The adjusting the timestamp of the material object according to the position of the material object in the user interface includes: If the material object is located between two material objects, adjusting the timestamp of the material object to a time value between the timestamps of the two material objects; If the position of the material object in the user interface is the first among all the material objects, using the current system time as the timestamp of the material object; If the position of the material object in the user interface is the last among all the material objects, determining the timestamp of the material object based on the difference between the timestamp of the material object in the previous position and a preset time constant.
14. The data collection management method according to claim 13, characterized in that, The displaying the material object on the user interface includes: Sorting all the material objects according to the descending order of the timestamps of the material objects and displaying them sequentially on the user interface.
15. The data collection management method according to claim 13, wherein The adjusting the timestamp of the material object according to the position of the material object in the user interface includes: If it is detected that the position of the material object coincides with the position of any material object, generating a material group based on the material object and the any material object; Using the timestamp of the any material object as the timestamp of the material group, and adjusting the timestamp of the material object to the current system time.
16. The data collection management method according to claim 15, wherein The displaying the material object on the user interface includes: Sorting and displaying all the material objects and material groups on the user interface according to the descending order of the timestamps of the material objects and the material groups.
17. The data collection management method according to claim 1, characterized in that The method further includes: Receiving a click operation on the material object on the user interface and displaying the data of the material object.
18. A terminal device, characterized in that, The terminal device includes a memory and a processor: The memory is used for storing program instructions; The processor is configured to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, cause the terminal device to execute the data collection management method according to any one of claims 1 to 17.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program instructions, and when the program instructions are run on a terminal device, cause the terminal device to execute the data collection management method according to any one of claims 1 to 17.
Citation Information
Patent Citations
Method and device for saving web page elements, and browser client
CN104346465A
Method and system for dragging picture resource materials and text materials to software interface
CN110516192A
File sorting method and device
CN110807004A
Content collection method and device, terminal equipment and storage medium
CN113360065A
Data backup method and system, storage medium and electronic equipment
CN116483618A