CN110196662B - Method, device, terminal and storage medium for displaying synchronization state - Google Patents
Method, device, terminal and storage medium for displaying synchronization state Download PDFInfo
- Publication number
- CN110196662B CN110196662B CN201810194868.8A CN201810194868A CN110196662B CN 110196662 B CN110196662 B CN 110196662B CN 201810194868 A CN201810194868 A CN 201810194868A CN 110196662 B CN110196662 B CN 110196662B
- Authority
- CN
- China
- Prior art keywords
- data item
- synchronization
- state
- synchronous
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a method, a device, a terminal and a storage medium for displaying a synchronous state, and belongs to the technical field of computers and internet communication. The method comprises the following steps: monitoring the synchronous event to obtain the synchronous state of the synchronous event; establishing a synchronous state set of synchronous events according to the synchronous state; responding to an operation instruction of a user, and acquiring a first data item list to be displayed; acquiring a first synchronization state of each data item in a first data item list from the synchronization state set; acquiring a first synchronization state identifier corresponding to a first synchronization state; drawing a first display icon of each data item in a first data item list, wherein the first display icon comprises a first synchronization state identifier; and displaying a first display icon of each data item in the first data item list. The method does not need an administrator to install various plug-ins, avoids entering the operating system level to display the synchronous state, does not occupy the resources of the key process, and is favorable for maintaining the performance and the stability of the operating system.
Description
Technical Field
The invention relates to the technical field of computers and internet communication, in particular to a method, a device, a terminal and a storage medium for displaying a synchronous state.
Background
The information synchronization of multiple terminals meets the requirements of individuals on data acquisition and modification in different scenes and occasions, and improves the information sharing and management capacity in enterprises. At present, in the internet, information synchronization between terminals is mainly completed by using cloud storage as an intermediary, and the terminals synchronize information included therein to the cloud storage through an information synchronization technology and can acquire the synchronized information from the cloud storage.
In order to show the state of information synchronization in a terminal, such as uploading and downloading situations, a method of showing information on a system level resource browser process is adopted in the prior art, in the method, an operating system provides a plug-in mode for synchronization software (such as tortoissvn, Dropbox and OneDrive), and the synchronization software is allowed to cover a special icon on a directory and a file icon item of an operating system default file browser (such as a resource manager of Windows and a Finder of Mac OSX) to show the synchronization state.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the adoption of the plug-in mode requires that the plug-in is registered as an operating system plug-in first, and the permission requirement of registering the plug-in as the operating system plug-in is an administrator, so that the process is complicated. The communication between the plug-in and the synchronous software is complex, the plug-in has strong intrusiveness to an operating system default file browser, high performance loss and damage to the system stability, each registered plug-in generates resource consumption to an explorer browsing process, and in severe cases, a user desktop is possibly crashed, and the system cannot be used normally.
In addition, when there are multiple files in the directory of the default file browser of the operating system, each file needs to be queried several times to determine the icon state, which brings more consumption of computing resources and memory resources for system processes and application program plug-ins, and the total number of the displayed icon states is limited by the operating system.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method, an apparatus, a terminal, and a storage medium for displaying a synchronization status. The technical scheme is as follows:
in a first aspect, a method for presenting a synchronization status is provided, where the method includes:
monitoring a synchronization event to obtain a synchronization status of the synchronization event;
establishing a synchronous state set of the synchronous event according to the synchronous state;
responding to an operation instruction of a user, and acquiring a first data item list to be displayed;
acquiring a first synchronization state of each data item in the first data item list from the synchronization state set;
acquiring a first synchronization state identifier corresponding to the first synchronization state;
drawing a first display icon of each data item in the first data item list, wherein the first display icon comprises the first synchronization state identifier;
and displaying a first display icon of each data item in the first data item list.
In a second aspect, there is provided an apparatus for demonstrating synchronization status, the apparatus comprising:
the monitoring module is used for monitoring a synchronous event to obtain the synchronous state of the synchronous event;
the establishing module is used for establishing a synchronous state set of the synchronous event according to the synchronous state;
the first acquisition module is used for responding to an operation instruction of a user and acquiring a first data item list to be displayed;
a second obtaining module, configured to obtain, from the synchronization status set, a first synchronization status of each data item in the first data item list;
a third obtaining module, configured to obtain a first synchronization status identifier corresponding to the first synchronization status;
the first drawing module is used for drawing a first display icon of each data item in the first data item list, and the first display icon comprises the first synchronization state identifier;
and the display module is used for displaying the first display icon of each data item in the first data item list.
In a third aspect, a terminal is provided that includes a processor and a memory;
the memory to store computer program instructions;
the processor, invoking the computer program instructions, for monitoring a synchronization event to obtain a synchronization status of the synchronization event;
establishing a synchronous state set of the synchronous event according to the synchronous state;
responding to an operation instruction of a user, and acquiring a first data item list to be displayed;
acquiring a first synchronization state of each data item in the first data item list from the synchronization state set;
acquiring a first synchronization state identifier corresponding to the first synchronization state;
drawing a first display icon of each data item in the first data item list, wherein the first display icon comprises the first synchronization state identifier;
and displaying a first display icon of each data item in the first data item list.
In a fourth aspect, a computer storage medium is provided, which stores computer program instructions that, when executed, implement the above-described method of presenting a synchronization status.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the synchronization state of the synchronization event is obtained by monitoring the synchronization event, the synchronization state set of the synchronization event is established according to the synchronization state, the first data item list to be displayed is obtained in response to an operation instruction of a user, the first synchronization state of each data item in the first data item list is obtained from the synchronization state set, the corresponding first synchronization state identifier is obtained according to the first synchronization state, then the first display icon of each data item in the first data item list is drawn, the first display icon comprises the first synchronization state identifier, and then the first display icon of each data item in the first data item list is displayed, so that the user can clearly see the synchronization state of each data item through the first synchronization state identifier on the first display icon. By adopting the method, an administrator does not need to install various plug-ins, the synchronous state is prevented from being displayed on the operating system level, the resources of the key process are not occupied, and the performance and the stability of the operating system are favorably maintained.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
FIG. 2 is a flowchart of a method for displaying a synchronization status according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a first displayed icon of each data item in a first list of data items according to an embodiment of the present invention;
FIG. 4 is a flow chart of another method for displaying synchronization status according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a first display icon of each data item in the first data item list shown in another way provided by the present embodiment;
FIG. 6 is a flow chart of another method for indicating a synchronization status according to an embodiment of the present invention;
FIG. 7 is a flowchart of a method for obtaining a context menu of data items in a first data item list shown in an embodiment of the present invention;
FIG. 8 is a diagram of a first context menu displaying locally present data items provided by an embodiment of the present invention;
FIG. 9 is a diagram of a second context menu for displaying data items that are not locally present provided by embodiments of the present invention;
FIG. 10 is a schematic structural diagram of an apparatus for displaying a synchronization status according to an embodiment of the present invention;
FIG. 11 is a schematic structural diagram of another apparatus for displaying a synchronization status according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of an implementation environment provided by an embodiment of the present invention is shown, where the implementation environment includes: terminal 01 and cloud storage 02.
It should be noted that the method for displaying a synchronization state in the embodiment of the present invention can be applied to the apparatus for displaying a synchronization state in the embodiment of the present invention. The means for showing the synchronization status may be client software configured in the terminal 01, for example, installed in the terminal 01 in the form of an application program. The terminal 01 may be a hardware device having various operating systems, such as a mobile phone, a tablet computer, a palm computer, and a personal digital assistant, but is not limited thereto.
The cloud storage 02, which is similar to cloud computing, refers to a system that integrates a large number of storage devices of different types in a network through application software to cooperatively work through functions such as cluster application, a grid technology or a distributed file system, and provides data storage and service access functions to the outside.
The cloud storage 02 may establish a communication connection with the terminal 01 through a network. The network may be a wireless network or a wired network. The data of the terminal 01 can be synchronized with the data in the cloud storage 02 through the network.
Referring to fig. 2, a flowchart of a method for displaying a synchronization status according to an embodiment of the present invention is shown, where the method for displaying a synchronization status can be applied to the terminal 01 shown in fig. 1. As shown in fig. 2, the method for demonstrating the synchronization status may include:
The synchronous event refers to synchronous uploading of data or synchronous downloading of data, for example, after the terminal 01 establishes a connection with the cloud storage 02, the terminal 01 uploads the data to the cloud storage 02 synchronously, or the terminal 01 downloads the data from the cloud storage 02 synchronously.
The synchronization state of the synchronization event is used to indicate the synchronization state of each data (e.g. file) in the synchronization event, and it should be noted that, in the embodiment of the present invention, in addition to the synchronization state of each data (e.g. file) in the synchronization event, it also relates to the synchronization state of the data container (e.g. directory) storing the data in the synchronization event.
In the embodiment of the invention, the synchronization state comprises successful synchronization, error synchronization, synchronous uploading, synchronous downloading and synchronous proceeding.
Specifically, for data (e.g., files), the synchronization status includes synchronization success, synchronization error, synchronization upload, and synchronization download.
For a data container (e.g., a directory), its synchronization status includes synchronization success, synchronization error, and synchronization in progress. When the synchronization state of all the data stored in the data container is synchronous successfully, the synchronization state of the corresponding data container is synchronous successfully, when the synchronization state of any data in the data container is synchronous error, the synchronization state of the corresponding data container is synchronous error, and when the synchronization state of the data in the data container is synchronous uploading or synchronous downloading and no synchronous error exists, the synchronization state of the data container is synchronous in progress.
For example, the directory 1 of the terminal 01 stores the file 1 and the file 2, and the directory 2 stores the file 3 and the file 4. After the terminal 01 is connected with the cloud storage 02, the terminal 01 uploads the file 1 and the file 2 to the cloud storage 02 synchronously, the file 4 is downloaded from the cloud storage 02 synchronously, and if the file 3 is in synchronization error in the synchronization process, the file 1 is in synchronization uploading, the file 2 is in synchronization uploading, the file 3 is in synchronization error, the file 4 is in synchronization downloading, the directory 1 is in synchronization, and the directory 2 is in synchronization error.
And after the terminal monitors the synchronous event and obtains the synchronous state of the synchronous event, establishing a synchronous state set of the synchronous event according to the obtained synchronous state of the synchronous event. The synchronization state set of the synchronization event is used to record the current synchronization state of the synchronization event.
It should be noted that, in the embodiment of the present invention, in addition to recording the synchronization state of each data (e.g., file) in the synchronization event, the synchronization state set also records the synchronization state of the data container (e.g., directory) storing the data in the synchronization event.
If the synchronous state of the file 1 is recorded in the synchronous state set as synchronous uploading, the synchronous state of the file 2 is recorded as synchronous uploading, the synchronous state of the file 3 is synchronous error, the synchronous state of the file 4 is synchronous downloading, the synchronous state of the directory 1 is synchronous in progress, and the synchronous state of the directory 2 is synchronous error.
When a user needs to know the synchronization state of some data or data containers, an operation instruction for displaying the corresponding data or data containers can be sent to the terminal 01 through the human-computer interface.
It should be noted that, in the embodiment of the present invention, data (e.g., a file) and/or a data container (e.g., a directory) may be simply referred to as a data item.
Correspondingly, the terminal 01 responds to an operation instruction sent by a user to acquire a first data item list to be displayed. Specifically, the terminal 01 sends a request for obtaining a first data item list to the background server after receiving an operation instruction sent by a user, and the background server returns the first data item list to the terminal 01 after receiving the request, where the first data item list may include data (e.g., a file) and a data container (e.g., a directory).
In the embodiment of the present invention, after the terminal acquires the first data item list to be presented in response to an operation instruction of a user, the terminal acquires, from the synchronization state set, the first synchronization state of each data item corresponding to each data item in the first data item list to be presented, where the first synchronization state is a synchronization state of each data item in the first data item list at a current time.
For example, when the terminal 01 responds to an operation instruction of a user and acquires that the first data item list to be displayed is the directory 1 and the directory 2, the terminal acquires a first synchronization state corresponding to the directory 1 and the directory 2 from the synchronization state set, and if the synchronization states of the current times of the directory 1 and the directory 2 recorded in the synchronization state set are in-process synchronization and synchronization errors respectively, the first synchronization state of the directory 1 in the first data item list acquired by the terminal is in-process synchronization, and the first synchronization state of the directory 2 is in-process synchronization.
In the embodiment of the invention, after acquiring the first synchronization state of each data item in the first data item list to be displayed, the terminal acquires the corresponding first synchronization state identifier according to the first synchronization state.
The first synchronization status identifier is used for visually representing the first synchronization status, that is, the user can know the synchronization status when seeing the first synchronization status identifier.
In the embodiment of the present invention, the first synchronization status identifier may be a description in a text form, or may be an icon. When the first synchronization status is identified as an icon, the icon form shown in table 1 can be referred to, but is not limited to this, and other icon forms can also be used to represent the synchronization statuses.
TABLE 1
In the embodiment of the invention, after the terminal acquires the first synchronization state identifier corresponding to the first synchronization state, the terminal draws the first display icon of each data item in the first data item list to be displayed, and the first display icon comprises the corresponding first synchronization state identifier.
For example, the first data item list to be displayed is directory a, directory b and file 1, where the first synchronization status of directory a is in process of synchronization, the first synchronization status of directory b is synchronization error, and the first synchronization status of file 1 is synchronization uploading. After the terminal acquires the first synchronization state of the data item, acquiring corresponding first synchronization state identifiers according to the first synchronization state, and if the synchronization state is represented by an icon, acquiring the corresponding first synchronization state identifiers by the terminal respectivelyIs composed ofThen the terminal draws a corresponding first display icon for each data item in the first data item list, specifically, when drawing the first display icon, the terminal may first draw a display icon of the data item, for example, a display icon of a data container (e.g., a directory) may be drawn as a folder icon, a display icon of data (e.g., a file) is drawn as a file icon, and then draw a corresponding first synchronization status identifier on the display icon of the data item to form the first display icon, for example, the first synchronization status identifier may be drawn at a corner position of the display icon of the data item.
In this embodiment of the present invention, after the terminal draws the first display icon of each data item in the first data item list to be displayed, the terminal displays the first display icon, so that the user can see the first display icon of each data item in the first data item list, as shown in fig. 3, which is a schematic diagram of the first display icon of each data item in the displayed first data item list provided in this embodiment of the present invention.
In summary, the method for displaying the synchronization state provided by the embodiment of the present invention does not require an administrator to install various plug-ins, avoids entering the operating system level for displaying, can directly display the synchronization state of the data item in the device for displaying the synchronization state provided by the embodiment of the present invention, does not occupy resources of a key process of the operating system, and is beneficial to maintaining performance and stability of the operating system.
In addition, the traditional display of the synchronization state performed on the operating system level, for example, the Windows operating system only supports the display of less than 20 icons, but generally one synchronization software needs at least 3 icons, and some icons even need 8-10 icons, so that resources need to be mutually occupied among the synchronization software, and when there are a plurality of plug-ins corresponding to the synchronization software, at most, only the synchronization state displayed by the plug-in of one synchronization software is displayed, and conflicts exist with each other, and a user cannot correctly see the synchronization state of data in different synchronization software. For example, there are three synchronization software, namely a hundred-degree network disk, a cloudlet and an enterprise cloud disk, for the same data item, the hundred-degree network disk is synchronously completed at a certain time, and the synchronous completed state is pre-displayed, while the cloudlet is only synchronized by half, and the synchronous in-progress state is pre-displayed, and the enterprise cloud disk is synchronized at this time and is synchronized wrongly. When the traditional method for displaying the synchronous state on the operating system level is adopted, the Baidu network disk, the micro cloud and the enterprise cloud disk all use Windows plug-in modes, the three programs simultaneously occupy resources, the first program is arranged to be in priority to decide not to display the current synchronous state, if the first program is arranged to display the synchronous state, the subsequent other programs cannot display the synchronous state, if the first program is arranged to be the micro cloud and the current synchronous state is displayed to be in synchronous progress, the synchronous states of the Baidu network disk and the enterprise cloud disk cannot be displayed and conflict with each other, and a user cannot correctly see the synchronous state of data in different synchronous software.
By adopting the method for displaying the synchronous state provided by the embodiment of the invention, the synchronous state is prevented from being displayed on the operating system level, so that the total number of the displayed data items in the synchronous state is not limited, the synchronous state can be directly displayed in the device for displaying the synchronous state provided by the embodiment of the invention, the display of the synchronous state of data in other synchronous software is not influenced without depending on any platform-related plug-in technology, the influence of whether the synchronous state is displayed by other synchronous software is avoided, the conflict among the synchronous software is avoided, a user can correctly see the synchronous state of each data item, and the synchronous state can be displayed in operating systems such as Windows, Apple Mac OSX, Android, iOS and the like.
In addition, when the newly added data item is stored in the cloud and the data item does not exist locally, the synchronous downloading state of the data item can be still displayed, and compared with the synchronous state display performed on the traditional operating system level, the synchronous state display method cannot display the synchronous state under the condition, the synchronous state display method provided by the embodiment of the invention has a more complete display effect.
Referring to fig. 4, a flowchart of another method for displaying a synchronization status according to an embodiment of the present invention is shown, where the method for displaying a synchronization status may be applied to the terminal 01 shown in fig. 1. As shown in fig. 4, the method for demonstrating the synchronization status may include:
In the embodiment of the present invention, a synchronization status identifier is stored in the terminal, and the synchronization status identifier may be a description in a text form or various icons. And the user sends a synchronous state identifier distribution instruction, and correspondingly, the terminal receives the synchronous state identifier distribution instruction and acquires the synchronous state identifier corresponding to the instruction.
In the embodiment of the present invention, a user may preset a preset synchronization state, and may preset a corresponding relationship between the acquired synchronization state identifier and the preset synchronization state, where the corresponding relationship is used to subsequently search for and acquire a corresponding synchronization state identifier through the synchronization state.
For example, when the synchronization status is identified as an icon, the icon form shown in the following table can be referred to, but is not limited to this, and other icon forms can also be used to represent various preset synchronization statuses.
TABLE 2
In step 403, the synchronization event is monitored to obtain a synchronization status of the synchronization event.
The synchronous event refers to synchronous uploading of data or synchronous downloading of data, for example, after the terminal 01 establishes a connection with the cloud storage 02, the terminal 01 uploads the data to the cloud storage 02 synchronously, or the terminal 01 downloads the data from the cloud storage 02 synchronously.
The synchronization state of the synchronization event is used to indicate the synchronization state of each data (e.g. file) in the synchronization event, and it should be noted that, in the embodiment of the present invention, in addition to the synchronization state of each data (e.g. file) in the synchronization event, the synchronization state of the data container (e.g. directory) storing the data in the synchronization event is also referred to.
In the embodiment of the invention, the synchronization state comprises successful synchronization, error synchronization, synchronous uploading, synchronous downloading and synchronous proceeding.
Specifically, for data (e.g., files), the synchronization status includes synchronization success, synchronization error, synchronization upload, and synchronization download.
For a data container (e.g., a directory), its synchronization status includes synchronization success, synchronization error, and synchronization in progress. When the synchronization state of all the data stored in the data container is synchronized successfully, the synchronization state of the corresponding data container is synchronized successfully, when the synchronization state of any data in the data container is a synchronization error, the synchronization state of the corresponding data container is a synchronization error, and when the synchronization state of the data in the data container is synchronized and uploaded or downloaded and no synchronization error exists, the synchronization state of the data container is synchronized.
For example, the directory 1 of the terminal 01 stores the file 1 and the file 2, and the directory 2 stores the file 3 and the file 4. After the terminal 01 is connected with the cloud storage 02, the terminal 01 uploads the file 1 and the file 2 to the cloud storage 02 synchronously, the file 4 is downloaded from the cloud storage 02 synchronously, and if the file 3 is in synchronization error in the synchronization process, the file 1 is in synchronization uploading, the file 2 is in synchronization uploading, the file 3 is in synchronization error, the file 4 is in synchronization downloading, the directory 1 is in synchronization, and the directory 2 is in synchronization error.
And after the terminal monitors the synchronous event and obtains the synchronous state of the synchronous event, establishing a synchronous state set of the synchronous event according to the obtained synchronous state of the synchronous event. The synchronization state set of the synchronization event is used to record the current synchronization state of the synchronization event.
It should be noted that, in the embodiment of the present invention, in addition to recording the synchronization status of each data (e.g., file) in the synchronization event, the synchronization status set also records the synchronization status of the data container (e.g., directory) storing the data in the synchronization event.
If the synchronous state of the file 1 is recorded in the synchronous state set as synchronous uploading, the synchronous state of the file 2 is recorded as synchronous uploading, the synchronous state of the file 3 is synchronous error, the synchronous state of the file 4 is synchronous downloading, the synchronous state of the directory 1 is synchronous in progress, and the synchronous state of the directory 2 is synchronous error.
When a user needs to know the synchronization state of some data or data containers, an operation instruction for displaying the corresponding data or data containers can be sent to the terminal through the human-computer interface.
It should be noted that, in the embodiment of the present invention, data (e.g., a file) and/or a data container (e.g., a directory) may be simply referred to as a data item.
Correspondingly, the terminal responds to an operation instruction sent by the user to acquire a first data item list to be displayed. Specifically, after receiving an operation instruction sent by a user, the terminal sends a request for obtaining a first data item list to the background server, and after receiving the request, the background server returns the first data item list to the terminal, where the first data item list may include data (e.g., a file) and a data container (e.g., a directory).
In the embodiment of the present invention, after the terminal acquires the first data item list to be presented in response to an operation instruction of a user, the terminal acquires, from the synchronization state set, the first synchronization state of each data item corresponding to each data item in the first data item list to be presented, where the first synchronization state is a synchronization state of each data item in the first data item list at a current time.
In the embodiment of the invention, after acquiring the first synchronization state of each data item in the first data item list to be displayed, the terminal searches the corresponding relation between the synchronization state identifier and the preset synchronization state according to the first synchronization state and acquires the corresponding first synchronization state identifier.
In the embodiment of the invention, after the terminal acquires the first synchronization state identifier corresponding to the first synchronization state, the terminal draws the first display icon of each data item in the first data item list to be displayed, and the first display icon comprises the corresponding first synchronization state identifier.
For example, the first data item list to be displayed is directory a, directory b and file 1, where the first synchronization status of directory a is in process of synchronization, the first synchronization status of directory b is synchronization error, and the first synchronization status of file 1 is synchronization uploading. After the terminal acquires the first synchronization state of the data item, acquiring a corresponding first synchronization state identifier according to the first synchronization state, wherein if the synchronization state is represented by an icon, the corresponding first synchronization state identifiers acquired by the terminal are respectivelyThen the terminal draws a corresponding first display icon for each data item in the first data item list, specifically, when drawing the first display icon, the terminal may first draw a display icon of the data item, for example, a display icon of a data container (e.g., a directory) may be drawn as a folder icon, a display icon of data (e.g., a file) is drawn as a file icon, and then draw a corresponding first synchronization status identifier on the display icon of the data item to form the first display icon, for example, the first synchronization status identifier may be drawn at a corner position of the display icon of the data item.
In the embodiment of the present invention, after the terminal finishes drawing the first display icon of each data item in the first data item list, it determines whether each data item in the first data item list exists locally, where the local includes database software and a file system, the database software may be accessed through a network, for example, the database software may be sqlite3, and the file system is stored in the memory.
It should be noted that, in the embodiment of the present invention, a plurality of data (for example, files) may be stored in a data container (for example, a directory), and when it is determined whether the data container exists locally, according to whether the data stored in the data container exists locally, as long as any data in the data container does not exist locally, it is determined that the data container does not exist locally, and only when all data stored in the data container exists locally, it is determined that the data container exists locally.
In the embodiment of the present invention, when one or some data items in the first data item list to be displayed do not exist locally, the terminal performs a first mode processing on the first display icon corresponding to the corresponding data item, and when the data item exists locally, the terminal performs a second mode processing on the first display icon corresponding to the data item.
The first mode processing and the second mode processing are used for facilitating the user to see which data items exist locally and which data items do not exist locally in the first data item list.
The first processing mode may be to adjust any one or a combination of several of transparency, gray scale and color difference of the first display icon, for example, the first display picture processed by the first processing mode is displayed as a semi-transparent gray scale.
The second mode processing may also be to adjust any one or a combination of several of transparency, gray scale and color difference of the first display icon, but it is necessary to enable a user to easily distinguish the first display icon processed by the second mode from the first display icon processed by the first mode. If the first display icon of the data item which does not exist locally is processed in the first mode, the transparency of the first display picture of the data item which does not exist locally is 50% and gray scale display is carried out, and the transparency of the first display picture of the data item which exists locally is 0% and gray scale display is carried out.
In the embodiment of the present invention, the terminal displays the first display icon of each data item processed in step 410, so that the user can see the first display icon of each data item in the first data item list. Fig. 5 is a schematic diagram of a first displayed icon of each data item in the first data item list, provided by this embodiment, where the transparency of the file 3.txt is 50% and is displayed in gray scale, which indicates that the file does not exist locally and the synchronization status is synchronous downloading.
In the embodiment of the present invention, a terminal monitors a synchronization event in real time, and after the terminal displays a first display icon of each data item in a first data item list, if it is monitored that a synchronization state of the data items in the first data item list changes, the terminal acquires a current synchronization state of the data items of which the synchronization state changes from a synchronization state set.
For example, the first display icon of the directory 1 in the first data item list displayed by the terminal indicates that the synchronization state of the directory 1 is in the process of synchronization, the synchronization process is gradually completed as time goes on, when the terminal monitors that the synchronization state of the directory 1 is changed from the process of synchronization to the completion of synchronization, the terminal centrally obtains the synchronization completion state of the directory 1 from the synchronization state, and uses the synchronization completion state as the second synchronization state of the directory 1.
In the embodiment of the present invention, after acquiring the second synchronization state of the data item whose synchronization state changes, the terminal searches for the corresponding relationship between the synchronization state identifier and the preset synchronization state according to the second synchronization state, and acquires the corresponding second synchronization state identifier.
In the embodiment of the present invention, after the terminal acquires the second synchronization state identifier corresponding to the second synchronization state, the terminal draws the second display icon of the data item whose synchronization state is changed, where the second display icon includes the corresponding second synchronization state identifier.
For example, the synchronization status of the directory 1 is changed from in-process synchronization to synchronous completion, and the terminal acquires a corresponding second synchronization status identifier asThe terminal may then first draw the display icon for directory 1 as a folder icon and then associate the corresponding second synchronization statusThe logo is drawn on the folder icon, such as may be drawn at a corner location of the folder icon, forming a second display icon for directory 1.
In the embodiment of the present invention, after drawing the second display icon of the data item whose synchronization status has changed, the terminal determines whether the data item currently exists locally, where the locally includes database software and a file system, and the database software may be accessed through a network, for example, the database software may be sqlite3, and the file system is stored in the memory.
It should be noted that, in the embodiment of the present invention, a plurality of data (e.g., files) may be stored in a data container (e.g., a directory), and when it is determined whether the data container exists locally, according to whether the data stored in the data container exists locally, as long as any data in the data container does not exist locally, it is determined that the data container does not exist locally, and only when all data stored in the data container exists locally, it is determined that the data container exists locally.
The first mode processing and the second mode processing are used for facilitating the user to see which data items exist locally and which data items do not exist locally in the first data item list.
The first mode processing may be to adjust any one or a combination of several of transparency, gray scale and color difference of the second display icon, for example, the second display picture processed by the first mode is displayed as a semi-transparent gray scale.
The second mode processing may be to adjust any one or a combination of several of transparency, gray scale and color difference of the first display icon, but it is necessary to enable a user to easily distinguish the second display icon processed by the second mode from the second display icon processed by the first mode. If the first display icon of the data item which does not exist locally is processed in the first mode, the transparency of the first display picture of the data item which does not exist locally is 50% and gray scale display is carried out, and the second display picture of the data item which exists locally is processed in the second mode, the transparency of the second display picture of the data item which exists locally is 0% and gray scale display is not carried out.
For example, the first display icon of the file 1 is a semi-transparent gray display and is drawn with a synchronization status identifier of the synchronous download, which indicates that the current file 1 is not present locally and is in a synchronous download status. And when the synchronous state of the file 1 is changed from synchronous downloading to synchronous completion, the terminal draws a second display icon of the file 1, wherein the second display icon comprises a synchronous state identifier of synchronous completion. And because the synchronous state is changed into synchronous completion, and the terminal judges that the current file 1 exists locally, the terminal performs second mode processing on a second display icon of the drawn file 1, so that the transparency of the second display picture is 0% and no display is carried out.
After the terminal draws the second display icon of the data item with the changed synchronization state, the first display icon of the currently displayed data item is replaced by the second display icon, and the user can easily see that the synchronization state of the data item has changed through the second display icon of the data item. In the above example, the terminal changes the first display picture of the displayed file 1, which is semi-transparent and gray-scale displayed and contains the synchronous download identifier, into the second display picture, which is non-gray-scale displayed and has the transparency of 0% and contains the synchronous completion identifier.
In summary, the method for displaying the synchronization state provided by the embodiment of the present invention does not require an administrator to install various plug-ins, avoids entering the operating system level for displaying, can directly display the synchronization state of the data item in the device for displaying the synchronization state provided by the embodiment of the present invention, does not occupy resources of a key process of the operating system, and is beneficial to maintaining performance and stability of the operating system.
In addition, the traditional display of the synchronization state performed on the operating system level, for example, the Windows operating system only supports the display of less than 20 icons, but generally one synchronization software needs at least 3 icons, and some icons even need 8-10 icons, so that resources need to be mutually occupied among the synchronization software, and when there are a plurality of plug-ins corresponding to the synchronization software, at most, only the synchronization state displayed by the plug-in of one synchronization software is displayed, and conflicts exist with each other, and a user cannot correctly see the synchronization state of data in different synchronization software. For example, there are three synchronization software, namely a hundred-degree network disk, a cloudlet and an enterprise cloud disk, for the same data item, the hundred-degree network disk is synchronously completed at a certain time, and the synchronous completed state is pre-displayed, while the cloudlet is only synchronized by half, and the synchronous in-progress state is pre-displayed, and the enterprise cloud disk is synchronized at this time and is synchronized wrongly. When the traditional method for displaying the synchronization state on the operating system level is adopted, the Baidu network disk, the micro cloud and the enterprise cloud disk all use Windows plug-in modes, the three programs simultaneously occupy resources, the first program is arranged to be in priority to not display the current synchronization state, if the first program is arranged to display the synchronization state, the subsequent other programs cannot display the synchronization state, if the first program is arranged to be the micro cloud and the current synchronization state is displayed to be in synchronization, the synchronization states of the Baidu network disk and the enterprise cloud disk cannot be displayed, conflicts exist between the synchronization states, and a user cannot correctly see the synchronization state of data in different synchronization software.
By adopting the method for displaying the synchronous state provided by the embodiment of the invention, the synchronous state is prevented from being displayed in an operating system layer, so that the total number of the displayed data items in the synchronous state is not limited, the data items can be directly displayed in the device for displaying the synchronous state provided by the embodiment of the invention, the device does not depend on any platform-related plug-in technology, the display of the data synchronous state in other synchronous software is not influenced, the influence of whether other synchronous software displays the synchronous state is avoided, the conflict among the data items is avoided, a user can correctly see the synchronous state of each data item, and the synchronous state can be displayed in operating systems such as Windows, Apple Mac OSX, Android and iOS.
In addition, when the newly added data item is stored in the cloud and the data item does not exist locally, the synchronous downloading state of the data item can be still displayed, and compared with the synchronous state display performed on the traditional operating system level, the synchronous state display method cannot display the synchronous state under the condition, the synchronous state display method provided by the embodiment of the invention has a more complete display effect.
Referring to fig. 6, a flowchart of another method for displaying a synchronization status according to an embodiment of the present invention is shown, where the method for displaying a synchronization status may be applied to the terminal 01 shown in fig. 1. As shown in fig. 6, the method for demonstrating the synchronization status may include:
In the embodiment of the invention, after a user sees the first display icon of each data item in the first data item list displayed by the terminal, when a corresponding operation needs to be performed on a displayed certain data item, such as user pre-copying or deleting the certain data item, an operation instruction for opening an operation menu can be sent to the terminal through the human-computer interface.
Correspondingly, the terminal receives the sent operation instruction for opening the operation menu and calls a menu interface of the operation system.
In the embodiment of the invention, after the terminal calls the menu interface of the operating system, the context menu of the data item is obtained and displayed.
It should be noted that the step of the terminal obtaining the context menu of the data item in step 609 may include the steps shown in fig. 7. Fig. 7 is a flowchart of a method for obtaining a context menu of data items in a first data item list according to an embodiment of the present invention. As shown in fig. 7, the method includes:
And after the terminal responds to the operation instruction of the user and calls a menu interface of the operating system, the terminal judges whether the data item of the pre-opened operation menu of the user exists locally.
In step 6092, if the data item exists locally, a first context menu of the data item is obtained, and the first context menu is displayed.
In the embodiment of the invention, when the terminal judges that the data item of the operation menu pre-opened by the user exists locally, the terminal acquires a first context menu of the data item and displays the first context menu, wherein the first context menu is used for displaying the operation corresponding to the operation system.
The first context menu may include various system operations and application extension operations, where the various system operations may include copying, deleting, renaming, and the like, and the application extension operations may include submitting, checking, and killing operations of third-party applications such as Git and Svn, and the like, and specifically, refer to a schematic diagram of the first context menu in which the terminal displays data items existing locally as shown in fig. 8.
In the embodiment of the invention, when the terminal judges that the data item of the operation menu pre-opened by the user does not exist locally, the terminal acquires a second context menu of the data item and displays the second context menu, wherein the second context menu is used for displaying the operation corresponding to the cloud.
As shown in fig. 9, the terminal displays a second context menu of data items that do not exist locally, where the second context menu may include operations such as cutting a cloud end, copying a cloud end, pasting a cloud end, and deleting a cloud end, and through the second context menu, a user may perform a corresponding operation on the data item in the cloud storage.
In summary, the method for displaying the synchronization state provided by the embodiment of the present invention can also keep the use habit of the user in the operating system, so that the user can operate the displayed data items more conveniently, and the experience effect of the user is improved.
The embodiments of the method for displaying a synchronous state provided by the embodiments of the present invention are also applicable to the apparatus for displaying a synchronous state provided by the embodiments of the present invention, and a detailed description thereof is omitted here.
Referring to fig. 10, a schematic structural diagram of an apparatus for displaying a synchronization status according to an embodiment of the present invention is shown, where the apparatus may be configured in the terminal 01 shown in fig. 1. As shown in fig. 10, the apparatus may include: the system comprises a monitoring module 701, an establishing module 702, a first obtaining module 703, a second obtaining module 704, a third obtaining module 705, a first drawing module 706 and a display module 707.
The monitoring module 701 may be used to monitor the synchronization event to obtain a synchronization status of the synchronization event.
The establishing module 702 may be configured to establish a synchronization state set of synchronization events based on a synchronization state.
The first obtaining module 703 may be configured to obtain a first data item list to be presented in response to an operation instruction of a user.
The second obtaining module 704 may be configured to obtain a first synchronization status of each data item in the first list of data items from the set of synchronization statuses.
The third obtaining module 705 may be configured to obtain a first synchronization status identifier corresponding to the first synchronization status.
The first drawing module 706 may be configured to draw a first display icon of each data item in the first data item list, where the first display icon includes the first synchronization status identifier.
The presentation module 707 may be configured to present a first display icon of each data item in the first data item list.
Referring to fig. 11, a schematic structural diagram of another apparatus for displaying a synchronization status according to an embodiment of the present invention is shown, and as shown in fig. 11, the apparatus may further include: a fourth acquisition module 708, a fifth acquisition module 709, a second rendering module 710, and a replacement module 711.
A fourth obtaining module 708, configured to obtain, when monitoring that the synchronization status of the data items in the first data item list changes, a second synchronization status of the data items from the synchronization status set, where the second synchronization status is a current synchronization status of the data items.
A fifth obtaining module 709, configured to obtain a corresponding second synchronization status identifier according to the second synchronization status of the data item.
A second drawing module 710, configured to draw a second display icon of the data item, where the second display icon includes the second synchronization status identifier.
A replacing module 711, configured to replace the displayed first display icon of the data item with the second display icon.
Optionally, as shown in fig. 11, the apparatus may further include: a decision block 712, a first processing block 713, and a second processing block 714.
A judging module 712, configured to judge whether the data item exists locally.
The first processing module 713 is configured to, when the data item does not exist locally, perform a first mode processing on a first display icon corresponding to the data item.
The second processing module 714 is configured to, when the data item exists locally, perform second-mode processing on the first display icon corresponding to the data item.
Optionally, the first processing module 713 may be further configured to: and when the data item does not exist locally, processing a second display icon corresponding to the data item in a first mode.
Optionally, the second processing module 714 may be further configured to: and when the data item exists locally, processing a second display icon corresponding to the data item in a second mode.
Optionally, as shown in fig. 11, the apparatus may further include: a receiving module 715 and a creating module 716.
The receiving module 715 is configured to receive a synchronization status identifier allocation instruction, and acquire a synchronization status identifier corresponding to the synchronization status identifier allocation instruction.
A creating module 716, configured to create a corresponding relationship between the synchronization status identifier and a preset synchronization status.
Optionally, as shown in fig. 11, the apparatus may further include: a calling module 717 and a sixth obtaining module 718.
And a calling module 717 for calling a menu interface of the operating system in response to the operation instruction of the user.
A sixth obtaining module 718, configured to obtain a context menu of the data item, and display the context menu.
In summary, the device for displaying the synchronization state provided by the embodiment of the present invention does not require an administrator to install various plug-ins, thereby avoiding entering the operating system level for displaying, and can directly display the synchronization state of the data item in the device for displaying the synchronization state provided by the embodiment of the present invention, without occupying resources of a key process of the operating system, which is beneficial to maintaining the performance and stability of the operating system.
In addition, the traditional display of the synchronization state performed on the operating system level, for example, the Windows operating system only supports the display of less than 20 icons, but generally one synchronization software needs at least 3 icons, and some icons even need 8-10 icons, so that resources need to be mutually occupied among the synchronization software, and when there are a plurality of plug-ins corresponding to the synchronization software, at most, only the synchronization state displayed by the plug-in of one synchronization software is displayed, and conflicts exist with each other, and a user cannot correctly see the synchronization state of data in different synchronization software. For example, there are three synchronization software, namely a hundred-degree network disk, a cloudlet and an enterprise cloud disk, for the same data item, the hundred-degree network disk is synchronously completed at a certain time, and the synchronous completed state is pre-displayed, while the cloudlet is only synchronized by half, and the synchronous in-progress state is pre-displayed, and the enterprise cloud disk is synchronized at this time and is synchronized wrongly. When the traditional method for displaying the synchronization state on the operating system level is adopted, the Baidu network disk, the micro cloud and the enterprise cloud disk all use Windows plug-in modes, the three programs simultaneously occupy resources, the first program is arranged to be in priority to not display the current synchronization state, if the first program is arranged to display the synchronization state, the subsequent other programs cannot display the synchronization state, if the first program is arranged to be the micro cloud and the current synchronization state is displayed to be in synchronization, the synchronization states of the Baidu network disk and the enterprise cloud disk cannot be displayed, conflicts exist between the synchronization states, and a user cannot correctly see the synchronization state of data in different synchronization software.
By adopting the device for displaying the synchronous state provided by the embodiment of the invention, the device is prevented from entering the operating system for displaying, so that the total number of the displayed data items in the synchronous state is not limited, the data items can be directly displayed in the device for displaying the synchronous state provided by the embodiment of the invention, the device does not depend on any platform-related plug-in technology, does not influence the display of the data synchronous state in other synchronous software, is not influenced by whether other synchronous software displays the synchronous state or not, avoids mutual conflict, enables a user to correctly see the synchronous state of each data item, and can display the synchronous state in operating systems such as Windows, Apple Mac OSX, Android, iOS and the like.
In addition, when the newly added data item is stored in the cloud and the data item does not exist locally, the synchronous downloading state of the data item can be still displayed, and compared with the synchronous state display performed on the traditional operating system level, the synchronous state display device for displaying the synchronous state provided by the embodiment of the invention cannot display the synchronous state under the condition, the display effect of the synchronous state display device for displaying the synchronous state is more complete.
In addition, the device for displaying the synchronous state provided by the embodiment of the invention can also keep the use habit of the user in the operating system, so that the user can more conveniently operate the displayed data item, and the experience effect of the user is improved.
Embodiments of the present invention provide a terminal, where the terminal may be configured to execute the method for displaying a synchronization state provided in each of the above embodiments. Referring to fig. 12, the terminal 1200 includes:
the terminal 1200 may include RF (Radio Frequency) circuitry 1210, memory 1220 including one or more computer-readable storage media, an input unit 1230, a display unit 1240, sensors 1250, audio circuitry 1260, a WiFi (Wireless Fidelity) module 1270, a processor 1280 including one or more processing cores, and power supply 120. Those skilled in the art will appreciate that the terminal structure shown in fig. 12 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 1210 is configured to receive and transmit signals during a message transmission or communication process, and in particular, receive downlink information of a base station and then send the received downlink information to one or more processors 1280 for processing; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 1210 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 1220 may be used to store computer program instructions, and the processor 1280 may execute various functional applications and data processing by calling the computer program instructions stored in the memory 1220. The memory 1220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 1200, and the like. Further, the memory 1220 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1220 may also include a memory controller to provide the processor 1280 and the input unit 1230 access to the memory 1220.
The input unit 1230 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 1230 may include a touch-sensitive surface 1231 and other input devices 1232. The touch-sensitive surface 1231, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 1231 (e.g., operations by a user on or near the touch-sensitive surface 1231 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch-sensitive surface 1231 may comprise both touch detection means and touch controller portions. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1280, and can receive and execute commands sent by the processor 1280. Additionally, the touch-sensitive surface 1231 can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic wave. The input unit 1230 may include other input devices 1232 in addition to the touch-sensitive surface 1231. In particular, other input devices 1232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1240 may be used to display information input by or provided to the user as well as various graphical user interfaces of the terminal 1200, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 1240 may include a Display panel 1241, and optionally, the Display panel 1241 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 1231 may overlay display panel 1241, and when touch-sensitive surface 1231 detects a touch operation thereon or thereabout, processor 1280 may determine the type of touch event, and processor 1280 may then provide a corresponding visual output on display panel 1241 based on the type of touch event. Although in FIG. 12, touch-sensitive surface 1231 and display panel 1241 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 1231 may be integrated with display panel 1241 for input and output functions.
The terminal 1200 can also include at least one sensor 1250, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 1241 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1241 and/or a backlight when the terminal 1200 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the terminal 1200, detailed descriptions thereof are omitted.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 1200 can help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the WiFi module 1270, and provides the user with wireless broadband internet access. Although fig. 12 shows the WiFi module 1270, it is understood that it does not belong to the essential constitution of the terminal 1200, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 1280 is a control center of the terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 1220 and calling data stored in the memory 1220, thereby performing overall monitoring of the mobile phone. Optionally, processor 1280 may include one or more processing cores; preferably, the processor 1280 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into the processor 1280.
The terminal 1200 also includes a power supply 120 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1280 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 120 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 1200 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for: monitoring the synchronous event to obtain the synchronous state of the synchronous event; establishing a synchronous state set of synchronous events according to the synchronous state; responding to an operation instruction of a user, and acquiring a first data item list to be displayed; acquiring a first synchronization state of each data item in the first data item list from the synchronization state set; acquiring a first synchronization state identifier corresponding to the first synchronization state; drawing a first display icon of each data item in the first data item list, wherein the first display icon comprises the first synchronization state identifier; and displaying a first display icon of each data item in the first data item list.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store computer program instructions, where the instructions are suitable for being loaded by a processor and being executed by the method for displaying a synchronization state in the foregoing embodiments, and a specific execution process may refer to descriptions of relevant contents in the foregoing embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (14)
1. A method for exposing synchronization status, wherein the method does not require administrator authority to install plug-ins, the method comprising:
monitoring a synchronization event to obtain a synchronization status of the synchronization event;
establishing a synchronous state set of the synchronous event according to the synchronous state;
responding to an operation instruction of a user, and acquiring a first data item list to be displayed;
acquiring a first synchronization state of each data item in the first data item list from the synchronization state set;
searching a corresponding relation between a synchronous state identifier and a preset synchronous state to acquire a first synchronous state identifier corresponding to the first synchronous state;
drawing display icons of all data items in the first data item list, and drawing corresponding first synchronous state identifications on the display icons of the corresponding data items to obtain first display icons of the data items;
and displaying a first display icon of each data item in the first data item list.
2. The method for showing the synchronization status according to claim 1, wherein after showing the first display icon of each data item in the first data item list, the method further comprises:
when monitoring that the synchronization state of the data items in the first data item list changes, acquiring a second synchronization state of the data items from the synchronization state set, wherein the second synchronization state is the current synchronization state of the data items;
acquiring a corresponding second synchronous state identifier according to the second synchronous state of the data item;
drawing a second display icon of the data item, wherein the second display icon comprises the second synchronization state identifier;
and replacing the displayed first display icon of the data item with the second display icon.
3. The method of claim 1, wherein after obtaining the first displayed icon for the data item, the method further comprises:
judging whether the data item exists locally;
if the data item does not exist locally, processing a first display icon corresponding to the data item in a first mode;
and if the data item exists locally, processing the first display icon corresponding to the data item in a second mode.
4. The method of claim 2, wherein after drawing the second displayed icon for the data item, the method further comprises:
judging whether the data item exists locally;
if the data item does not exist locally, processing a second display icon corresponding to the data item in a first mode;
and if the data item exists locally, processing a second display icon corresponding to the data item in a second mode.
5. The method for demonstrating synchronization status according to claim 1, said method further comprising:
receiving a synchronous state identifier distribution instruction, and acquiring a synchronous state identifier corresponding to the synchronous state identifier distribution instruction;
and creating a corresponding relation between the synchronous state identification and a preset synchronous state.
6. The method of claim 1, wherein after presenting the first display icon for each data item in the first list of data items, the method further comprises:
responding to an operation instruction of a user, and calling a menu interface of an operating system;
and acquiring a context menu of the data item, and displaying the context menu.
7. An apparatus for exhibiting a synchronized state, wherein the apparatus does not require an administrator authority to install a plug-in, the apparatus comprising:
the monitoring module is used for monitoring a synchronous event to obtain the synchronous state of the synchronous event;
the establishing module is used for establishing a synchronous state set of the synchronous event according to the synchronous state;
the first acquisition module is used for responding to an operation instruction of a user and acquiring a first data item list to be displayed;
a second obtaining module, configured to search for a corresponding relationship between a synchronization status identifier and a preset synchronization status, so as to obtain, from the synchronization status set, a first synchronization status of each data item in the first data item list;
a third obtaining module, configured to obtain a first synchronization status identifier corresponding to the first synchronization status;
the first drawing module is used for drawing the display icon of each data item in the first data item list and drawing a corresponding first synchronous state identifier on the display icon of the corresponding data item to obtain a first display icon of the data item;
and the display module is used for displaying the first display icon of each data item in the first data item list.
8. The apparatus for demonstrating synchronized state according to claim 7, further comprising:
a fourth obtaining module, configured to obtain a second synchronization state of the data item from the synchronization state set when monitoring that a synchronization state of the data item in the first data item list changes, where the second synchronization state is a current synchronization state of the data item;
a fifth obtaining module, configured to obtain a corresponding second synchronization status identifier according to the second synchronization status of the data item;
the second drawing module is used for drawing a second display icon of the data item, wherein the second display icon comprises the second synchronous state identifier;
and the replacing module is used for replacing the displayed first display icon of the data item with the second display icon.
9. The apparatus for demonstrating synchronized state according to claim 7, further comprising:
the judging module is used for judging whether the data item exists locally;
the first processing module is used for processing a first display icon corresponding to the data item in a first mode when the data item does not exist locally;
and the second processing module is used for processing the first display icon corresponding to the data item in a second mode when the data item exists locally.
10. The apparatus for displaying the synchronous state according to claim 9, wherein the first processing module is further configured to process a second display icon corresponding to the data item in a first manner when the data item does not exist locally;
the second processing module is further configured to perform second mode processing on a second display icon corresponding to the data item when the data item locally exists.
11. The apparatus for demonstrating synchronized state according to claim 7, further comprising:
the receiving module is used for receiving a synchronous state identifier distribution instruction and acquiring a synchronous state identifier corresponding to the synchronous state identifier distribution instruction;
and the creating module is used for creating the corresponding relation between the synchronous state identifier and a preset synchronous state.
12. The apparatus for demonstrating synchronized state according to claim 7, further comprising:
the calling module is used for calling a menu interface of the operating system in response to an operating instruction of a user;
and the sixth acquisition module is used for acquiring the context menu of the data item and displaying the context menu.
13. A terminal comprising a processor and a memory;
the memory to store computer program instructions;
the processor calls the computer program instruction and is used for monitoring the synchronous event to obtain the synchronous state of the synchronous event under the condition that the plug-in is not required to be installed by an administrator;
establishing a synchronous state set of the synchronous event according to the synchronous state;
responding to an operation instruction of a user, and acquiring a first data item list to be displayed;
acquiring a first synchronization state of each data item in the first data item list from the synchronization state set;
searching a corresponding relation between a synchronous state identifier and a preset synchronous state to acquire a first synchronous state identifier corresponding to the first synchronous state;
drawing display icons of all data items in the first data item list, and drawing corresponding first synchronous state identifiers on the display icons of the corresponding data items to obtain first display icons of the data items;
and displaying a first display icon of each data item in the first data item list.
14. A computer storage medium, characterized in that it stores computer program instructions which, when executed, implement the method of any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810194868.8A CN110196662B (en) | 2018-03-09 | 2018-03-09 | Method, device, terminal and storage medium for displaying synchronization state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810194868.8A CN110196662B (en) | 2018-03-09 | 2018-03-09 | Method, device, terminal and storage medium for displaying synchronization state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110196662A CN110196662A (en) | 2019-09-03 |
CN110196662B true CN110196662B (en) | 2022-05-20 |
Family
ID=67751299
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810194868.8A Active CN110196662B (en) | 2018-03-09 | 2018-03-09 | Method, device, terminal and storage medium for displaying synchronization state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110196662B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111125038B (en) * | 2019-12-31 | 2023-04-07 | 成都驰通数码系统有限公司 | Intelligent data synchronization method and system based on cloud storage |
CN114942912B (en) * | 2022-07-25 | 2022-12-23 | 天津联想协同科技有限公司 | Network disk file collection method and device, network disk and storage medium |
WO2024149721A1 (en) * | 2023-01-09 | 2024-07-18 | Telefonaktiebolaget Lm Ericsson (Publ) | Time synchronization status codebooks |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103366012A (en) * | 2013-07-29 | 2013-10-23 | 北京金和软件股份有限公司 | Mutation overlapping icon realizing method based on file synchronization state |
CN103559029A (en) * | 2013-10-24 | 2014-02-05 | 北京奇虎科技有限公司 | Method and device for displaying cloud disk file statuses |
CN103685383A (en) * | 2012-09-12 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for displaying synchronizing state |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10402375B2 (en) * | 2016-07-18 | 2019-09-03 | Microsoft Technology Licensing, Llc | Cloud content states framework |
US10762054B2 (en) * | 2016-07-22 | 2020-09-01 | Microsoft Technology Licensing, Llc | Cloud content states determination logic |
-
2018
- 2018-03-09 CN CN201810194868.8A patent/CN110196662B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685383A (en) * | 2012-09-12 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for displaying synchronizing state |
CN103366012A (en) * | 2013-07-29 | 2013-10-23 | 北京金和软件股份有限公司 | Mutation overlapping icon realizing method based on file synchronization state |
CN103559029A (en) * | 2013-10-24 | 2014-02-05 | 北京奇虎科技有限公司 | Method and device for displaying cloud disk file statuses |
Also Published As
Publication number | Publication date |
---|---|
CN110196662A (en) | 2019-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10635449B2 (en) | Method and apparatus for running game client | |
EP3174253B1 (en) | Message withdrawal method and apparatus, computer program and recording medium | |
US10055220B2 (en) | Method, apparatus, and system for processing desktop data of mobile terminal | |
CN109062467B (en) | Split screen application switching method and device, storage medium and electronic equipment | |
CN104518953B (en) | Method for deleting message, instant communication terminal and system | |
US20190317864A1 (en) | Data backup method, electronic device, and storage medium | |
CN108039963B (en) | Container configuration method and device and storage medium | |
CN110020293B (en) | Multimedia data display method, device and storage medium | |
CN103455330A (en) | Application program management method, terminal, equipment and system | |
CN108874653B (en) | Task testing method, tester, shared server and readable storage medium | |
CN106156097B (en) | Method and device for processing browser input records | |
CN110196662B (en) | Method, device, terminal and storage medium for displaying synchronization state | |
EP2869604B1 (en) | Method, apparatus and device for processing a mobile terminal resource | |
US10298590B2 (en) | Application-based service providing method, apparatus, and system | |
CN105227598B (en) | Resource sharing method, device and system based on cloud storage | |
US9928134B2 (en) | Method and apparatus for repairing dynamic link library file | |
US20160283047A1 (en) | Login interface displaying method and apparatus | |
CN111274463A (en) | Information display method and device based on IM contact person grouping setting and storage medium | |
CN106933626B (en) | Application association method and device | |
CN106657281B (en) | File sharing method and device | |
CN115065609A (en) | B-end SaaS system hybrid deployment method and system | |
CN106209601B (en) | State update message pushing method and device | |
WO2019084783A1 (en) | Service scheduling method and apparatus, computer device, and computer readable storage medium | |
US11327845B2 (en) | Image synchronization method and device, and server | |
CN112347400A (en) | Method, device and equipment for detecting missing of multilingual page data and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |