CN105426403B - Bookmark synchronization method and device - Google Patents
Bookmark synchronization method and device Download PDFInfo
- Publication number
- CN105426403B CN105426403B CN201510725243.6A CN201510725243A CN105426403B CN 105426403 B CN105426403 B CN 105426403B CN 201510725243 A CN201510725243 A CN 201510725243A CN 105426403 B CN105426403 B CN 105426403B
- Authority
- CN
- China
- Prior art keywords
- bookmark
- version number
- downloading
- mobile terminal
- record
- 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
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9562—Bookmark management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a bookmark synchronization method and device, and belongs to the technical field of communication. The device comprises: the recording module is used for changing the local bookmark table of the mobile terminal according to the user operation and recording each changing operation to the local bookmark operation recording table; a judging module for judging the synchronous instruction as synchronous uploading instruction or synchronous downloading instruction according to the received synchronous instruction; acquiring all operation records with the recorded version numbers equal to the uploaded version numbers in the local bookmark operation record table according to the uploaded version numbers in the local bookmark version number table, and uploading all the operation records to an uploading module of the server; and the downloading module is used for judging the synchronization mode according to the downloading version number in the local bookmark version number table, and downloading corresponding cloud data according to different synchronization modes to update the local bookmark record. The invention realizes the incremental uploading operation record when uploading data, and the combination of the incremental bookmark downloading operation record and the full bookmark downloading table when downloading data, thereby ensuring that omission and redundancy do not occur when the bookmarks are synchronous.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a browser bookmark synchronization method and device in a mobile terminal.
Background
With the rapid development of communication technology, mobile terminals such as mobile phones are owned by more and more users, and the users can not leave the mobile phones in life. In daily life, a situation is often encountered: when a user uses a browser on different mobile phone devices and logs in an account, the browser APP which the user wants to use can have the same bookmark list, and bookmark synchronization among different devices is involved. The traditional bookmark synchronization design scheme can be divided into two modes, one mode is full synchronization, and by using the mode, a part of traffic is wasted on bookmark data which does not need to be synchronized each time a client is synchronized; the other mode is incremental synchronization, and by using the mode, only bookmarks with changed data can be synchronized, however, in the current incremental synchronization solution, the situations of bookmark redundancy and bookmark false deletion caused in the bookmark synchronization process cannot be avoided.
Therefore, it is necessary to provide a bookmark synchronization method and apparatus, which avoid the above situations and improve the user experience.
Disclosure of Invention
The invention mainly aims to provide a bookmark synchronization method and a bookmark synchronization device, and aims to solve the problems of bookmark redundancy and bookmark mistaken deletion in the bookmark synchronization process in the prior art.
To achieve the above object, the present invention provides a bookmark synchronizing device, the device including: the recording module is used for changing a local bookmark table of a mobile terminal browser according to user operation and recording each changing operation into the local bookmark operation recording table of the mobile terminal browser; the judging module is used for judging that the synchronous instruction is a synchronous uploading instruction or a synchronous downloading instruction according to the received synchronous instruction; the uploading module is used for acquiring all operation records with the record version numbers equal to the uploading version numbers in a local bookmark operation record table according to the uploading version numbers in the local bookmark version number table of the mobile terminal browser when the synchronous instruction is the synchronous uploading instruction, and uploading all the operation records to a server to update the cloud bookmark records; and the downloading module is used for judging whether the current synchronization mode is full-scale downloading or incremental downloading according to the downloading version number in the local bookmark version number table when the synchronization instruction is a synchronization downloading instruction, and downloading corresponding cloud data according to different synchronization modes so as to update the local bookmark record of the mobile terminal browser.
Optionally, the local bookmark operation record table includes a plurality of operation records, each operation record corresponds to one change operation, a record version number, bookmark content, and an operation type corresponding to each operation record are recorded, the record version number is equal to an upload version number in the local bookmark version number table when the operation record is recorded, and the operation type includes addition or deletion.
Optionally, the uploading module includes: the acquisition unit is used for acquiring a first version value corresponding to an uploading version number in the current local bookmark version number table when the synchronous instruction is a synchronous uploading instruction; the searching unit is used for searching all operation records with the version numbers equal to the first version values recorded in the local bookmark operation record table, using all the operation records obtained through searching as target data, and uploading the target data to the server to update the cloud bookmark records; and the updating unit is used for adding 1 to the first version value after receiving the information of successful uploading returned by the server.
Optionally, the downloading module includes: the acquisition unit is used for acquiring a second version value corresponding to the download version number in the local bookmark version number table when the synchronous instruction is a synchronous download instruction; the determining unit is used for judging that the synchronization mode is full-volume downloading when the second version value is a first preset value, and judging that the synchronization mode is incremental downloading when the second version value is a second preset value; the copying unit is used for directly downloading all bookmark entries in a cloud bookmark table of the server to update the local bookmark table when the synchronization mode is full-volume downloading; the copying unit is further used for downloading an operation version number in a cloud bookmark operation record table of the server when the synchronous mode is incremental downloading, wherein the operation version number is larger than a download version number in a cloud bookmark version number table in the server and operation sources of all operation records of other mobile terminals, and updating the local bookmark table according to all the operation records.
In addition, in order to achieve the above object, the present invention further provides a bookmark synchronization method, including: changing a local bookmark table of a mobile terminal browser according to user operation and recording each change operation into the local bookmark operation record table of the mobile terminal browser; judging the synchronous instruction as a synchronous uploading instruction or a synchronous downloading instruction according to the received synchronous instruction; when the synchronous instruction is a synchronous uploading instruction, acquiring all operation records with the recorded version numbers equal to the uploading version numbers in a local bookmark operation record table according to the uploading version numbers in the local bookmark version number table of the mobile terminal browser, and uploading all the operation records to a server to update the cloud bookmark records; and when the synchronous instruction is a synchronous downloading instruction, judging that the synchronous mode is full-scale downloading or incremental downloading according to the downloading version number in the local bookmark version number table, and downloading corresponding cloud data according to different synchronous modes to update the local bookmark record of the terminal browser.
Optionally, the local bookmark operation record table includes a plurality of operation records, each operation record corresponds to one change operation, a record version number, bookmark content, and an operation type corresponding to each operation record are recorded, the record version number is equal to an upload version number in the local bookmark version number table when the operation record is recorded, and the operation type includes addition or deletion.
Optionally, when the synchronization instruction is a synchronization uploading instruction, acquiring all operation records with a record version number equal to the uploading version number in a local bookmark version number table of a mobile terminal browser according to the uploading version number in the local bookmark version number table, and uploading all the operation records to a server to update a cloud bookmark record, includes: when the synchronous instruction is a synchronous uploading instruction, acquiring a first version value corresponding to an uploading version number in the current local bookmark version number table; searching all operation records with the record version numbers equal to the first version value in the local bookmark operation record table, taking all the operation records obtained through searching as target data, and uploading the target data to the server to update the cloud bookmark record; and after receiving the information of successful uploading returned by the server, adding 1 to the first version value.
Optionally, when the synchronization instruction is a synchronization downloading instruction, determining that the synchronization mode is full-volume downloading or incremental downloading according to a downloading version number in the local bookmark version number table, and downloading corresponding cloud data according to different synchronization modes to update the local bookmark record of the mobile terminal browser includes: when the synchronous instruction is a synchronous downloading instruction, acquiring a second version value corresponding to a downloading version number in the local bookmark version number table; when the second version value is a first preset value, the synchronous mode is judged to be full-scale downloading, and when the second version value is a second preset value, the synchronous mode is judged to be incremental downloading; when the synchronization mode is full-volume downloading, directly downloading all bookmark entries in a cloud bookmark table of the server to update the local bookmark table; and when the synchronous mode is incremental downloading, downloading all operation records of which the operation version number in the cloud bookmark operation record table of the server is greater than the download version number in the cloud bookmark version number table in the server and the operation sources are other mobile terminals, and updating the local bookmark table according to all the operation records.
In addition, in order to achieve the above object, the present invention further provides a bookmark synchronization method, including: receiving mobile terminal operation records uploaded by a plurality of mobile terminals logged in through a first account name; changing a cloud bookmark table of a server according to the operation record of the mobile terminal and recording each change operation into the cloud bookmark operation record table of the server; and when a synchronous downloading instruction of the first mobile terminal logged in through the first account name is received, selecting corresponding synchronous data according to different synchronous modes and sending the corresponding synchronous data to the first mobile terminal so as to update the local bookmark record of the first mobile terminal.
Optionally, the cloud bookmark operation record table includes a plurality of operation records, each operation record corresponds to a change operation, and an operation version number, bookmark content, an account name, a mobile terminal ID, and an operation type corresponding to each operation record are recorded, where the operation version number is an integer sequentially incremented from 0, the operation type is addition or deletion, and the mobile terminal ID is a device identifier of a mobile terminal that uploads the mobile terminal operation record corresponding to the operation record.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a block diagram of a bookmark synchronization apparatus at a mobile terminal according to a first embodiment of the present invention;
FIG. 4 is a diagram illustrating a bookmark list of a browser page of the mobile terminal according to a first embodiment of the present invention;
fig. 5 is a flowchart illustrating a bookmark synchronization method at a mobile terminal according to a fourth embodiment of the present invention;
fig. 6 is a flowchart illustrating a bookmark synchronization method at a mobile terminal according to a fifth embodiment of the present invention;
fig. 7 is a flowchart illustrating a bookmark synchronization method at a mobile terminal according to a sixth embodiment of the present invention;
FIG. 8 is a block diagram of a bookmark synchronization apparatus at a server side according to a seventh embodiment of the present invention;
fig. 9 is a flowchart illustrating a bookmark synchronization method at a server side according to a ninth embodiment of the present invention;
fig. 10 is a flowchart illustrating a bookmark synchronization method on a server side according to a tenth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive a broadcast signal by using a signal such as multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO)@) A digital broadcasting system of a terrestrial digital broadcasting integrated service (ISDB-T), etc. receives digital broadcasting. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. Receiving module via broadcast111 may be stored in memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd so on.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning system). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 1220, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 1210 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 1410 as will be described below in connection with a touch screen.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (incomingmunication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 1810 for reproducing (or playing back) multimedia data, and the multimedia module 1810 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 2750.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 as shown in fig. 1 is generally configured to cooperate with satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
As shown in fig. 3, a first embodiment of the present invention proposes a bookmark apparatus, which includes, at a mobile terminal side:
the recording module 300 is configured to change a local bookmark table of a mobile terminal browser according to user operation and record each change operation into the local bookmark operation record table of the mobile terminal browser;
specifically, please refer to fig. 4, which is a schematic diagram of a bookmark list of a browser page of the mobile terminal. Each time the user browses a web page using a browser, when the user wants to collect the page (the content of the page is not shown in the figure), the user can click a collection key (virtual) to collect the page. Meanwhile, the user may also call up the bookmark list (for example, call up in the following list form) by clicking a favorite key (virtually), click a corresponding function option to select to add the current page as a new bookmark list, and then the recording module 300 adds the current page as a new bookmark entry in the local bookmark list after receiving the user operation instruction. Of course, the user may also select and delete a bookmark entry in the bookmark list, and the bookmark entry in the local bookmark table will be deleted by the recording module 300. It should be understood that the bookmark list diagram shown in fig. 4 is only one way to display the local bookmark list, and the specific display way and display interface thereof may be various and are not limited to the one shown in fig. 5.
Please refer to table 1, table 2 and table 3 simultaneously. Table 1 is a local bookmark table stored in the mobile terminal, and specifically, each bookmark entry has an ID generated by the recording module 300 for distinguishing the bookmark entry, and the bookmark content of each bookmark entry includes, but is not limited to, a web page name, a web page address, a web page icon, and the like. For example, when the Baidu search top page is recorded as a bookmark, the corresponding web page name is Baidu, the web page address is www.baidu.com, and the corresponding web page icon is a Baidu icon, as shown in the bookmark entry with ID 100 in table 1. The recording module 300 arranges the local bookmark list into the browser bookmark list shown in fig. 5 according to the local bookmark list, and displays the browser bookmark list to the user, and when the user performs the above change operation, such as adding a bookmark entry or deleting a bookmark entry, the browser background changes and stores the local bookmark list. Table 2 is a local bookmark operation record table stored in the mobile terminal, and includes a plurality of operation records, each operation record corresponds to a change operation of the local bookmark table, and is used to record a change operation of a user on the local bookmark table, and as can be seen from the table, the recording module 300 assigns a record ID to each operation record to identify the operation record, and the content of each operation record includes, but is not limited to, a record version number, bookmark content, and operation type corresponding to the operation record. Table 3 is a local bookmark version number table stored in the mobile terminal, and includes an upload version number and a download version number, where the upload version number is used to mark a record between two times of synchronous upload data, and may also be understood as a record of upload times, and the initialization value is 0, and is sequentially incremented according to the upload times. The record version number in table 2 is equal to the upload version number in the local bookmark version number table when the operation record is recorded. For example, when the local data is not uploaded to the server, the upload version number is 0, after the first upload, the upload version number is updated to 1, and after that, the record version number of the operation record corresponding to any operation of the user on the bookmark list in the local bookmark record table is 1, so that the operation record with the upload record version number of 1 only needs to be considered during the second upload. In each embodiment of the present invention, the download version number is 0 to indicate first download, and 1 to indicate non-first download, and the initial value is 0.
TABLE 1 local bookmark List
TABLE 2 local bookmark operation record Table
TABLE 3 local bookmark version number table
The determining module 310 is configured to determine, according to the received synchronization instruction, that the synchronization instruction is a synchronization uploading instruction or a synchronization downloading instruction;
specifically, bookmark synchronization includes uploading local data to a server and downloading the data of the server to a local end. The determining module 310 determines the type of the received synchronization command according to the selection of the user.
The uploading module 320 is configured to, when the synchronization instruction is a synchronization uploading instruction, obtain all operation records with a record version number equal to the uploading version number in a local bookmark version number table of the mobile terminal browser according to the uploading version number in the local bookmark version number table, and upload all the operation records to the server to update the cloud bookmark record;
specifically, when the synchronization instruction is a synchronization uploading instruction, local data needs to be synchronized to the server, at this time, please refer to the local bookmark operation record in table 2 and the local bookmark version number table in table 3, assuming that the local bookmark operation record is uploaded for the first time, the uploading version number in the current local bookmark version number table should be 0, at this time, the data needing to be uploaded can be obtained only by searching all operation records with the record version number equal to 0 in the local bookmark operation record table, the data needing to be uploaded is uploaded to the server, and the server can update the cloud bookmark record according to the received operation records. And in analogy, … the nth upload can be realized by uploading the operation record with the record version number equal to 1 only in the second upload. Therefore, each uploading is the increment last time, and the uploading is the operation record instead of the bookmark entries, so that the condition that a certain bookmark is omitted or the same bookmark appears for multiple times is ensured not to occur.
And the downloading module 330 is configured to, when the synchronization instruction is a synchronization downloading instruction, determine that the current synchronization mode is full-volume downloading or incremental downloading according to a downloading version number in the local bookmark version number table, and download corresponding cloud data according to different synchronization modes to update a local bookmark record of the mobile terminal browser.
Specifically, when the synchronization instruction is a synchronization downloading instruction, server data needs to be synchronized to the local. At this time, the value of the download version number in the local bookmark version number table determines the synchronization mode. And when the value of the version number downloaded for the first time is 0, adopting a full-download mode, directly downloading a cloud bookmark table in the server to update a current local bookmark list of the mobile terminal browser, and directly covering bookmark entries if the bookmark entries with the same webpage name, webpage address and webpage icon are encountered. And when the first downloading is not carried out, namely the downloading version number is 1, an incremental downloading mode is adopted, and only the cloud bookmark operation records added by other mobile terminals by the server between two synchronous downloading are downloaded.
It can be understood that, in the embodiments of the present invention, when the mobile terminal needs to perform bookmark synchronization with the server, the browser needs to log in to the server through the pre-registered account name, and when data is uploaded in synchronization, each bookmark entry or operation record necessarily carries the account ID and the mobile terminal ID so that the server can distinguish the data from other mobile terminals or mobile terminals using other registered account names for logging in. For example, a user a may log in to a server through an account name m via a mobile terminal a, and upload current local bookmark data (including bookmark entries) synchronously, and bookmark records performed in the server according to the uploaded data all take the identifier of the mobile terminal a and the account name m as identifiers. The user a can log in the server by the mobile terminal A with the account name n, and synchronously upload the current local bookmark data (including bookmark entries). The data uploaded by the account names m and n are not interfered with each other and cannot be synchronized, and the server can distinguish different bookmark data under different account names. However, the data uploaded by different mobile terminals through the same account name may be synchronized with each other, for example, the mobile terminal a may log in to the server through the account m to synchronously download the data uploaded by the mobile terminal B when logging in through the account m.
The bookmark device provided by the invention changes the local bookmark table of the mobile terminal browser through the recording module and records each change operation to the local bookmark operation recording table, when synchronously uploading data to the server, the uploading module only uploads the operation record of which the record version number is equal to the uploading version number in the local bookmark version number table in the local bookmark operation recording table, when synchronously downloading the data of the server, the downloading module judges the synchronous mode to be full-volume downloading or incremental downloading according to the downloading version number in the local bookmark version number table, downloads corresponding cloud data according to different synchronous modes to update the local bookmark record of the mobile terminal browser, thereby realizing the incremental uploading operation record when synchronously uploading data, ensuring that no bookmark omission or redundancy occurs when uploading data, and combining the incremental downloading bookmark operation record with the full-volume downloading bookmark table when synchronously downloading data, and bookmark omission and redundancy are further avoided during data downloading.
The second embodiment of the invention further provides a bookmark synchronizing device. In the second embodiment, on the mobile terminal side, the bookmark synchronization apparatus is different from the first embodiment in that, in this embodiment, the upload module 320 includes:
the acquisition unit is used for acquiring a first version value corresponding to an uploading version number in the current local bookmark version number table when the synchronous instruction is a synchronous uploading instruction;
the searching unit is used for searching all operation records with the version numbers equal to the first version values recorded in the local bookmark operation record table, using all the operation records obtained through searching as target data, and uploading the target data to the server to update the cloud bookmark records;
and the updating unit is used for adding 1 to the first version value after receiving the information that the server returns the uploading success.
Specifically, when the synchronization instruction is a synchronization uploading instruction, the local end data needs to be synchronized to the server, the obtaining unit queries a first version value corresponding to a currently uploaded version number in the local bookmark version number table to determine a record version number of the operation record required to be uploaded at this time, for example, if the currently uploaded version number is 4, it indicates that the operation record required to be uploaded at this time only needs to be uploaded at this time, the searching unit searches the local bookmark operation record table to obtain all operation records with the record version number of 4, all the operation records obtained by searching are target data required to be uploaded to the server, the server updates the cloud bookmark record according to the received target data, returns information of successful uploading after receiving the target data as feedback, and after receiving the information by the updating unit, and adding 1 to the first version value, and updating the uploading version number to be 5.
The bookmark device provided by the invention changes the local bookmark table of the mobile terminal browser through the recording module and records each change operation to the local bookmark operation recording table, when synchronously uploading data to the server, the uploading module only uploads the operation record of which the record version number is equal to the uploading version number in the local bookmark version number table in the local bookmark operation recording table, when synchronously downloading the data of the server, the downloading module judges the synchronous mode to be full-volume downloading or incremental downloading according to the downloading version number in the local bookmark version number table, downloads corresponding cloud data according to different synchronous modes to update the local bookmark record of the mobile terminal browser, thereby realizing the incremental uploading operation record when synchronously uploading data, ensuring that no bookmark omission or redundancy occurs when uploading data, and combining the incremental downloading bookmark operation record with the full-volume downloading bookmark table when synchronously downloading data, and bookmark omission and redundancy are further avoided during data downloading.
The third embodiment of the invention further provides a bookmark synchronizing device. In the third embodiment, at the mobile terminal side, the bookmark synchronization apparatus is different from the first embodiment in that, in this embodiment, the downloading module 330 specifically includes:
the acquisition unit is used for acquiring a second version value corresponding to the download version number in the local bookmark version number table when the synchronous instruction is a synchronous download instruction;
the determining unit is used for judging that the synchronization mode is full-volume downloading when the second version value is a first preset value, and judging that the synchronization mode is incremental downloading when the second version value is a second preset value;
specifically, when the synchronization instruction is a synchronization downloading instruction, server data needs to be synchronized to the local. At this time, the value of the download version number in the local bookmark version number table, i.e. the second version value, determines the synchronization mode. The acquisition unit acquires the second version value. When the first download is the download version number value is 0, the determining unit determines that the full-volume download mode is adopted at this time, and when the first download is not the download version number is 1, the determining unit determines that the incremental download mode is adopted at this time.
The copying unit is used for directly downloading all bookmark entries in a cloud bookmark table of the server to update the local bookmark table when the synchronization mode is full-volume downloading;
specifically, when a full-download mode is adopted, the cloud bookmark list in the server is directly downloaded to update the current local bookmark list of the mobile terminal browser, and if bookmark entries with the same webpage name, webpage address and webpage icon are encountered, the bookmark entries are directly covered.
The copying unit is further used for downloading an operation version number in a cloud bookmark operation record table of the server when the synchronous mode is incremental downloading, wherein the operation version number is larger than a download version number in a cloud bookmark version number table in the server and operation sources of all operation records of other mobile terminals, and updating the local bookmark table according to all the operation records.
Specifically, when incremental downloading is adopted, only the cloud bookmark operation records added by other mobile terminals by the server between two times of synchronous downloading are downloaded. The method comprises the steps of firstly obtaining a value q of a downloaded version number in a cloud bookmark version number table, searching all operation records of which the values of operation version numbers are larger than q in the cloud bookmark operation record table, then removing operation records of which the operation sources are the operation records of the mobile terminal from all the operation records obtained through searching, wherein all the remaining operation records are target data to be downloaded at the moment, downloading the target data and updating the local tag according to the target data.
It can be understood that, data synchronously downloaded by a mobile terminal from a server through a certain account must necessarily be data with an account id, and therefore, in the data downloaded by the mobile terminal from the server, if the data is an operation record, an account name corresponding to each operation record must be an account name used when the mobile terminal logs in the server, and if the data is a bookmark entry, an account name corresponding to the bookmark wood must also be an account name used when the mobile terminal logs in the server.
It should be noted that, in each embodiment of the present invention, the cloud bookmark table, the cloud bookmark operation record table, and the cloud bookmark version number at the server side are all similar to the local bookmark table, the local bookmark record table, and the local bookmark version number table of the mobile terminal browser, and a detailed description will be made at the server side later.
The bookmark device provided by the invention changes the local bookmark table of the mobile terminal browser through the recording module and records each change operation to the local bookmark operation recording table, when synchronously uploading data to the server, the uploading module only uploads the operation record of which the record version number is equal to the uploading version number in the local bookmark version number table in the local bookmark operation recording table, when synchronously downloading the data of the server, the downloading module judges the synchronous mode to be full-volume downloading or incremental downloading according to the downloading version number in the local bookmark version number table, downloads corresponding cloud data according to different synchronous modes to update the local bookmark record of the mobile terminal browser, thereby realizing the incremental uploading operation record when synchronously uploading data, ensuring that no bookmark omission or redundancy occurs when uploading data, and combining the incremental downloading bookmark operation record with the full-volume downloading bookmark table when synchronously downloading data, and bookmark omission and redundancy are further avoided during data downloading.
Referring to fig. 5, the method in the mobile terminal further includes:
s500, changing a local bookmark table of a mobile terminal browser according to user operation and recording each changing operation into the local bookmark operation record table of the mobile terminal browser;
specifically, please refer to fig. 4, which is a schematic diagram of a bookmark list of a browser page of the mobile terminal. Each time the user browses a web page using a browser, when the user wants to collect the page (the content of the page is not shown in the figure), the user can click a collection key (virtual) to collect the page. Meanwhile, the user may also call up the bookmark list (for example, call up in a pull list form) by clicking a favorite key (virtually), click a corresponding function option to select to add the current page as a new bookmark list, and then the recording module 300 adds the current page as a new bookmark entry in the local bookmark list after receiving the user operation instruction. Of course, the user may also select and delete a bookmark entry in the bookmark list, and the bookmark entry in the local bookmark table will be deleted by the recording module 300. It should be understood that the bookmark list diagram shown in fig. 4 is only one way to display the local bookmark list, and the specific display way and display interface thereof may be various and are not limited to the one shown in fig. 5.
Please refer to table 1, table 2 and table 3 simultaneously. Table 1 is a local bookmark table stored in the mobile terminal, and specifically, each bookmark entry has an ID generated by the recording module 300 for distinguishing the bookmark entry, and the bookmark content of each bookmark entry includes, but is not limited to, a web page name, a web page address, a web page icon, and the like. For example, when the Baidu search top page is recorded as a bookmark, the corresponding web page name is Baidu, the web page address is www.baidu.com, and the corresponding web page icon is a Baidu icon, as shown in the bookmark entry with ID 100 in table 1. The recording module 300 arranges the local bookmark list into the browser bookmark list shown in fig. 5 according to the local bookmark list, that is, displays the browser bookmark list to the user, and when the user performs the above change operation, such as adding a bookmark entry or deleting a bookmark entry, the browser background changes and stores the local bookmark list. Table 2 is a local bookmark operation record table stored in the mobile terminal, and includes a plurality of operation records, each operation record corresponds to a change operation of the local bookmark table, and is used to record a change operation of a user on the local bookmark table, as can be seen from the table, the recording module 300 assigns a record ID to each operation record to identify the operation record, and the content of each operation record includes, but is not limited to, a record version number, bookmark content, and operation type corresponding to the operation record. Table 3 is a local bookmark version number table stored in the mobile terminal, and includes an upload version number and a download version number, where the upload version number is used to mark a record between two times of synchronous upload data, and may also be understood as a record of upload times, and the initialization value is 0, and is sequentially incremented according to the upload times. The record version number in table 2 is equal to the upload version number in the local bookmark version number table when the operation record is recorded. For example, when the local data is not uploaded to the server, the upload version number is 0, after the first upload, the upload version number is updated to 1, and after that, the record version number of the operation record corresponding to any operation of the user on the bookmark list in the local bookmark record table is 1, so that the operation record with the upload record version number of 1 only needs to be considered during the second upload. In each embodiment of the present invention, the download version number is 0 to indicate first download, and 1 to indicate non-first download, and the initial value is 0.
S510, judging that the synchronous instruction is a synchronous uploading instruction or a synchronous downloading instruction according to the received synchronous instruction;
specifically, bookmark synchronization includes uploading local data to a server and downloading the data of the server to a local end. The determining module 310 determines the type of the received synchronization command according to the selection of the user.
S520, when the synchronous instruction is a synchronous uploading instruction, acquiring all operation records with the version numbers equal to the uploading version numbers recorded in the local bookmark operation record table according to the uploading version numbers in the local bookmark version number table of the mobile terminal browser, and uploading all the operation records to a server to update the cloud bookmark records;
specifically, when the synchronization instruction is a synchronization uploading instruction, local data needs to be synchronized to the server, at this time, please refer to the local bookmark operation record in table 2 and the local bookmark version number table in table 3, assuming that the local bookmark operation record is uploaded for the first time, the uploading version number in the current local bookmark version number table should be 0, at this time, the data needing to be uploaded can be obtained only by searching all operation records with the record version number equal to 0 in the local bookmark operation record table, the data needing to be uploaded is uploaded to the server, and the server can update the cloud bookmark record according to the received operation records. And in analogy, … the nth upload can be realized by uploading the operation record with the record version number equal to 1 only in the second upload. Therefore, each uploading is the increment last time, and the uploading is the operation record instead of the bookmark entries, so that the condition that a certain bookmark is omitted or the same bookmark appears for multiple times is ensured not to occur.
And S530, when the synchronization instruction is a synchronization downloading instruction, judging that the synchronization mode is full-volume downloading or incremental downloading according to the downloading version number in the local bookmark version number table, and downloading corresponding cloud data according to different synchronization modes to update the local bookmark record of the mobile terminal browser.
Specifically, when the synchronization instruction is a synchronization downloading instruction, server data needs to be synchronized to the local. At this time, the value of the download version number in the local bookmark version number table determines the synchronization mode. And when the value of the version number downloaded for the first time is 0, adopting a full-download mode, directly downloading a cloud bookmark table in the server to update a current local bookmark list of the mobile terminal browser, and directly covering bookmark entries if the bookmark entries with the same webpage name, webpage address and webpage icon are encountered. And when the first downloading is not carried out, namely the downloading version number is 1, an incremental downloading mode is adopted, and only the cloud bookmark operation records added by other mobile terminals by the server between two synchronous downloading are downloaded.
It can be understood that, in the embodiments of the present invention, when the mobile terminal needs to perform bookmark synchronization with the server, the browser needs to log in to the server through the pre-registered account name, and when data is uploaded in synchronization, each bookmark entry or operation record necessarily carries the account ID and the mobile terminal ID so that the server can distinguish the data from other mobile terminals or mobile terminals using other registered account names for logging in. For example, a user a may log in to a server through an account name m via a mobile terminal a, and upload current local bookmark data (including bookmark entries) synchronously, and bookmark records performed in the server according to the uploaded data all take the identifier of the mobile terminal a and the account name m as identifiers. The user a can log in the server by the mobile terminal A with the account name n, and synchronously upload the current local bookmark data (including bookmark entries). The data uploaded by the account names m and n are not interfered with each other and cannot be synchronized, and the server can distinguish different bookmark data under different account names. However, the data uploaded by different mobile terminals through the same account name may be synchronized with each other, for example, the mobile terminal a may log in to the server through the account m to synchronously download the data uploaded by the mobile terminal B when logging in through the account m.
The bookmark method provided by the invention records each change operation to the local bookmark operation record table while changing the local bookmark table of the mobile terminal browser, only uploads the operation record with the version number equal to the uploaded version number in the local bookmark version number table when synchronously uploading data to a server, judges the synchronous mode to be full download or incremental download according to the download version number in the local bookmark version number table when synchronously downloading the server data, downloads corresponding cloud data according to different synchronous modes to update the local bookmark record of the mobile terminal browser, thereby realizing the incremental uploading operation record when synchronously uploading data, ensuring that no bookmark omission or redundancy occurs when uploading data, and combining the incremental downloading bookmark operation record and the full downloading bookmark table when synchronously downloading data, and bookmark omission and redundancy are further avoided during data downloading.
The fifth embodiment of the invention further provides a bookmark synchronization method. Referring to fig. 6, in a fifth embodiment, at a mobile terminal side, a difference between the bookmark synchronization method and the fourth embodiment is that, in this embodiment, step S520 specifically includes:
step S521, when the synchronous instruction is a synchronous uploading instruction, acquiring a first version value corresponding to an uploading version number in the current local bookmark version number table;
step S522, configured to search all operation records with a version number equal to the first version value recorded in the local bookmark operation record table, use all operation records obtained through the search as target data, and upload the target data to the server to update the cloud bookmark record;
step S523, configured to add 1 to the first version value after receiving the information that the upload is successful and returned by the server.
Specifically, when the synchronization instruction is a synchronization uploading instruction, the local end data needs to be synchronized to the server, the obtaining unit queries a first version value corresponding to a currently uploaded version number in the local bookmark version number table to determine a record version number of the operation record required to be uploaded at this time, for example, if the currently uploaded version number is 4, it indicates that the operation record required to be uploaded at this time only needs to be uploaded at this time, the searching unit searches the local bookmark operation record table to obtain all operation records with the record version number of 4, all the operation records obtained by searching are target data required to be uploaded to the server, the server updates the cloud bookmark record according to the received target data, returns information of successful uploading after receiving the target data as feedback, and after receiving the information by the updating unit, and adding 1 to the first version value, and updating the uploading version number to be 5.
The bookmark method provided by the invention records each change operation to the local bookmark operation record table while changing the local bookmark table of the mobile terminal browser, only uploads the operation record with the version number equal to the uploaded version number in the local bookmark version number table when synchronously uploading data to a server, judges the synchronous mode to be full download or incremental download according to the download version number in the local bookmark version number table when synchronously downloading the server data, downloads corresponding cloud data according to different synchronous modes to update the local bookmark record of the mobile terminal browser, thereby realizing the incremental uploading operation record when synchronously uploading data, ensuring that no bookmark omission or redundancy occurs when uploading data, and combining the incremental downloading bookmark operation record and the full downloading bookmark table when synchronously downloading data, and bookmark omission and redundancy are further avoided during data downloading.
The sixth embodiment of the invention further provides a bookmark synchronization method. Referring to fig. 7, in a sixth embodiment, at a mobile terminal side, a difference between the bookmark synchronization method and the fourth embodiment is that, in this embodiment, step S530 specifically includes:
step S531, when the synchronous instruction is a synchronous downloading instruction, acquiring a second version value corresponding to a downloading version number in the local bookmark version number table;
step S532, when the second version value is a first preset value, the synchronization mode is judged to be full download, and when the second version value is a second preset value, the synchronization mode is judged to be incremental download;
specifically, when the synchronization instruction is a synchronization downloading instruction, server data needs to be synchronized to the local. At this time, the value of the download version number in the local bookmark version number table, i.e. the second version value, determines the synchronization mode. The acquisition unit acquires the second version value. When the first download is the download version number value is 0, the determining unit determines that the full-volume download mode is adopted at this time, and when the first download is not the download version number is 1, the determining unit determines that the incremental download mode is adopted at this time.
Step S533, when the synchronization mode is full download, directly downloading all bookmark entries in the cloud bookmark table of the server to update the local bookmark table;
specifically, when a full-download mode is adopted, the cloud bookmark list in the server is directly downloaded to update the current local bookmark list of the mobile terminal browser, and if bookmark entries with the same webpage name, webpage address and webpage icon are encountered, the bookmark entries are directly covered.
Step S534, when the synchronization mode is incremental downloading, downloading an operation version number in the cloud bookmark operation record table of the server, where the operation version number is greater than a download version number in the cloud bookmark version number table in the server and the operation source is all operation records of other mobile terminals, and updating the local bookmark table according to all the operation records.
Specifically, when incremental downloading is adopted, only the cloud bookmark operation records added by other mobile terminals by the server between two times of synchronous downloading are downloaded. The method comprises the steps of firstly obtaining a value q of a downloaded version number in a cloud bookmark version number table, searching all operation records of which the values of operation version numbers are larger than q in the cloud bookmark operation record table, then removing operation records of which the operation sources are the operation records of the mobile terminal from all the operation records obtained through searching, wherein all the remaining operation records are target data to be downloaded at the moment, downloading the target data and updating the local tag according to the target data.
It can be understood that, data synchronously downloaded by a mobile terminal from a server through a certain account must necessarily be data with an account id, and therefore, in the data downloaded by the mobile terminal from the server, if the data is an operation record, an account name corresponding to each operation record must be an account name used when the mobile terminal logs in the server, and if the data is a bookmark entry, an account name corresponding to the bookmark wood must also be an account name used when the mobile terminal logs in the server.
It should be noted that, in each embodiment of the present invention, the cloud bookmark table, the cloud bookmark operation record table, and the cloud bookmark version number at the server side are all similar to the local bookmark table, the local bookmark record table, and the local bookmark version number table of the mobile terminal browser, and a detailed description will be made at the server side later.
The bookmark method provided by the invention records each change operation to the local bookmark operation record table while changing the local bookmark table of the mobile terminal browser, only uploads the operation record with the version number equal to the uploaded version number in the local bookmark version number table when synchronously uploading data to a server, judges the synchronous mode to be full download or incremental download according to the download version number in the local bookmark version number table when synchronously downloading the server data, downloads corresponding cloud data according to different synchronous modes to update the local bookmark record of the mobile terminal browser, thereby realizing the incremental uploading operation record when synchronously uploading data, ensuring that no bookmark omission or redundancy occurs when uploading data, and combining the incremental downloading bookmark operation record and the full downloading bookmark table when synchronously downloading data, and bookmark omission and redundancy are further avoided during data downloading.
As shown in fig. 8, a seventh embodiment of the present invention proposes a bookmarking apparatus, which includes, on a server side:
a receiving module 800, configured to receive mobile terminal operation records uploaded by multiple mobile terminals logged in by a first account name;
specifically, a plurality of mobile terminals may log in to the server through the same account name, such as the first account name m, at different times, and upload respective mobile terminal operation records, where the mobile terminal operation records refer to operation records of a user on a local bookmark table of a mobile terminal browser, and table 2 may be specifically referred to. And uploading the terminal identification of the mobile terminal by different mobile terminals while uploading the operation record of the mobile terminal.
The changing module 810 is configured to change the cloud bookmark table of the server according to the mobile terminal operation record and record each change operation to the cloud bookmark operation record table of the server;
specifically, please refer to table 4, table 5 and table 6 simultaneously. Table 4 is a cloud bookmark table of the storage server, each bookmark entry has an identification ID generated by the change module 810 for distinguishing the bookmark entry, and bookmark contents of each bookmark entry include, but are not limited to, a web page name, a web page address, a web page icon, an account name, and the like. For example, when the received operation record of the mobile terminal is the operation record with the record ID of 1 in table 2, the changing module 810 adds the bookmark entry with the local identifier ID of 100 to the cloud bookmark table, that is, table 4, according to the operation record, and at the same time, allocates 200 to the bookmark entry as the identifier ID of the server, and records the first account name m as the account name corresponding to the bookmark entry. Table 5 is a cloud bookmark operation record table stored in the server, and includes a plurality of operation records, each operation record corresponds to a change operation of the cloud bookmark table, and is used to record a change operation of the cloud bookmark table, and as can be seen from the table, the change module 800 allocates a record ID to identify the operation record for each operation record, and the content of each operation record includes, but is not limited to, an operation version number, bookmark content, account name, mobile terminal ID, and operation type corresponding to the operation record. Assuming that the mobile terminal operation record (for example, the operation record with the record ID of 1 in the local bookmark operation record table) according to the change operation (adding the bookmark directory 200) of the cloud bookmark table by the change module 810 is uploaded by the first mobile terminal a, the change operation record is the operation record with the record ID of 2 in table 5 in the cloud bookmark record table, and the mobile terminal ID (source mobile terminal) of the operation record is a, because the mobile terminal operation record (the record ID of 1) corresponding to the operation record (the record ID of 2) is uploaded by the first mobile terminal, and the device identifier of the first mobile terminal is a. The account name is an account name m used by the first mobile terminal for logging in the server. Table 6 is a cloud bookmark version number table stored in the server, and the number of the cloud bookmark version number table is determined according to the number of the terminals and the number of the registered account names provided by the server. Each table only comprises an account name, a mobile terminal ID and a download version number, and the account name and the mobile terminal ID are consistent with the table 5 in meaning and used for determining that the cloud bookmark table belongs to the mobile terminal logged in through the account name. The download version number is used for marking the number of cloud operation records downloaded by the mobile terminal through the account name, the initialization value is 0, and the number of the cloud operation records is changed after each download. The cloud bookmark version number shown in table 6 is the version number to which the first mobile terminal a belongs when logging in through the first account name m.
Table 4 cloud bookmark table
Table 5 cloud bookmark operation recording table
Table 6 cloud bookmark version number table
uid | m (account name) |
device_id | A (Mobile terminal ID) |
download_version | Downloading version numbers |
The transmitting module 820 is configured to, when receiving a synchronous downloading instruction of the first mobile terminal logged in by the first account name, select corresponding synchronous data according to different synchronous modes and send the corresponding synchronous data to the first mobile terminal to update the local bookmark record of the first mobile terminal.
Specifically, a plurality of mobile terminals can log in the server through the same account name such as the first account name m at different times, and send a synchronous downloading instruction to the server to synchronize the current cloud bookmark table or cloud bookmark change operation records of the server. The difference of the synchronous downloading instructions determines the difference of synchronous modes, and the difference of the synchronous modes determines whether server-side bookmark records are synchronized by a full-volume bookmark table downloading mode or server-side bookmark records are transmitted to the mobile terminal by an incremental bookmark changing operation recording mode.
According to the bookmark device, the receiving module is used for receiving mobile terminal operation records uploaded by a plurality of mobile terminals logged in through a first account name, the changing module is used for changing the cloud bookmark table of the server according to the mobile terminal operation records and recording each changing operation into the cloud bookmark operation record table of the server, and the transmitting module is used for selecting corresponding synchronous data according to different synchronous modes and sending the corresponding synchronous data to the first mobile terminal to update the local bookmark record of the first mobile terminal when receiving a synchronous downloading instruction of the first mobile terminal logged in through the first account name. Therefore, the bookmark operation records are downloaded in an incremental mode and the bookmark tables are downloaded in a full mode when data are synchronously transmitted to the mobile terminal, and bookmark omission and redundancy are avoided when the data are downloaded.
The eighth embodiment of the invention further provides a bookmark synchronizing device. In the eighth embodiment, on the server side, the bookmark synchronizing apparatus is different from the seventh embodiment in that, in this embodiment, the transmitting module 820 includes
The receiving unit is used for receiving a synchronous downloading instruction of the first mobile terminal logged in by the first account name;
the judging unit is used for judging the type of the synchronous mode according to the synchronous downloading instruction;
specifically, the first mobile terminal logging in the server through the first account can judge whether the synchronization mode is full-volume downloading or incremental downloading according to the downloading version number in the local bookmark version number table, and sends a synchronization downloading instruction to the server according to the judgment result, and the judgment unit can determine the type of the synchronization mode according to the synchronization downloading instruction.
A transmitting unit, configured to transmit, when a synchronization mode is full-volume downloading, all bookmark entries with account names of the first account name in the cloud bookmark table as the synchronization data to the first mobile terminal to update the local bookmark table;
specifically, if the downloading is full-volume downloading, all bookmark entries with account names of first account names in the cloud bookmark table are data needing to be synchronized, the data needing to be synchronized are transmitted to the first mobile terminal, the first mobile terminal directly updates the local bookmark table according to the synchronous data, and if bookmark entries with the same webpage names, webpage addresses and webpage icons are encountered, the bookmark entries are directly covered.
The acquisition unit is used for acquiring a third version value corresponding to a download version number in a cloud bookmark version number table of the server when the synchronization instruction is incremental download;
specifically, the cloud bookmark version number table at this time should be the cloud bookmark version number table to which the first mobile terminal logged in through the first account name belongs, that is, the account name in the table should be the first account name m, and the mobile terminal ID should be the device identifier a of the first mobile terminal, as shown in table 6. After the obtaining unit determines the cloud bookmark version number table, a third version value corresponding to the download version number in the table is obtained, for example, 10.
The transmission unit is further configured to send, when the synchronization mode is incremental downloading, all operation records, in the cloud bookmark operation record table, of which the mobile terminal ID is not the first mobile terminal and the operation version number is greater than the third version value and of which the corresponding account name is the first account name, as the synchronization data to the first mobile terminal;
specifically, during incremental downloading, the transmitting unit searches all operation records of which the mobile terminal IDs are not the first mobile terminal and the corresponding account names are the first account names, selects an operation record of which the operation version number is greater than a third version value (10) from all the operation records obtained through searching as synchronous data, sends the synchronous data to the first mobile terminal, and the first mobile terminal correspondingly operates the local bookmark list according to the received operation record to update the local bookmark list and returns information of successful downloading to the server.
And the updating unit is used for updating the third version value in the cloud bookmark version table to the maximum operation version number currently existing in the cloud bookmark operation record table after receiving the information of successful downloading returned by the first terminal.
Specifically, after receiving the information of successful downloading returned by the first terminal, the updating unit updates the determined third version value corresponding to the downloading version number in the cloud bookmark version table to the maximum operation version number existing in the current cloud bookmark operation record table, that is, the version number of the last operation record of the synchronization data. For example, if the version number of the last operation record of the sync data is 110, then the third version value should be 110 at this time.
According to the bookmark device, the receiving module is used for receiving mobile terminal operation records uploaded by a plurality of mobile terminals logged in through a first account name, the changing module is used for changing the cloud bookmark table of the server according to the mobile terminal operation records and recording each changing operation into the cloud bookmark operation record table of the server, and the transmitting module is used for selecting corresponding synchronous data according to different synchronous modes and sending the corresponding synchronous data to the first mobile terminal to update the local bookmark record of the first mobile terminal when receiving a synchronous downloading instruction of the first mobile terminal logged in through the first account name. Therefore, the bookmark operation records are downloaded in an incremental mode and the bookmark tables are downloaded in a full mode when data are synchronously transmitted to the mobile terminal, and bookmark omission and redundancy are avoided when the data are downloaded.
As shown in fig. 9, a ninth embodiment of the present invention proposes a bookmarking method, which includes, on a server side, the steps of:
s900, receiving mobile terminal operation records uploaded by a plurality of mobile terminals logged in through first account names;
specifically, a plurality of mobile terminals may log in to the server through the same account name, such as the first account name m, at different times, and upload respective mobile terminal operation records, where the mobile terminal operation records refer to operation records of a user on a local bookmark table of a mobile terminal browser, and table 2 may be specifically referred to. And the mobile terminal uploads the mobile terminal operation record and the mobile terminal identification of the mobile terminal at the same time.
S910, changing a cloud bookmark table of a server according to the operation records of the mobile terminal and recording each change operation into the cloud bookmark operation record table of the server;
specifically, please refer to table 4, table 5 and table 6 simultaneously. Table 4 is a cloud bookmark table of the storage server, each bookmark entry has an identification ID generated by the change module 810 for distinguishing the bookmark entry, and bookmark contents of each bookmark entry include, but are not limited to, a web page name, a web page address, a web page icon, an account name, and the like. For example, when the received operation record of the mobile terminal is the operation record with the record ID of 1 in table 2, the changing module 810 adds the bookmark entry with the local identifier ID of 100 to the cloud bookmark table, that is, table 4, according to the operation record, and at the same time, allocates 200 to the bookmark entry as the identifier ID of the server, and records the first account name m as the account name corresponding to the bookmark entry. Table 5 is a cloud bookmark operation record table stored in the server, and includes a plurality of operation records, each operation record corresponds to a change operation of the cloud bookmark table, and is used to record a change operation of the cloud bookmark table, and as can be seen from the table, the change module 800 allocates a record ID to identify the operation record for each operation record, and each operation record includes, but is not limited to, an operation version number, bookmark content, account name, mobile terminal ID, and operation type corresponding to the operation record. Assuming that the mobile terminal operation record (for example, the operation record with the record ID of 1 in the local bookmark operation record table) according to the change operation (adding the bookmark directory 200) of the cloud bookmark table by the change module 810 is uploaded by the first mobile terminal a, the change operation record is the operation record with the record ID of 2 in table 5 in the cloud bookmark record table, and the mobile terminal ID (source mobile terminal) of the operation record is a, because the mobile terminal operation record (the record ID of 1) corresponding to the operation record (the record ID of 2) is uploaded by the first mobile terminal, and the device identifier of the first mobile terminal is a. The account name is an account name m used by the first mobile terminal for logging in the server. Table 6 is a cloud bookmark version number table stored in the server, and the number of the cloud bookmark version number table is determined according to the number of the mobile terminals and the number of the registered account names provided by the server. Each table only comprises an account name, a mobile terminal ID and a download version number, and the account name and the mobile terminal ID are consistent with the table 5 in meaning and used for determining that the cloud bookmark table belongs to the mobile terminal logged in through the account name. The download version number is used for marking the number of cloud operation records downloaded by the mobile terminal through the account name, the initialization value is 0, and the number of the cloud operation records is changed after each download. The cloud bookmark version number shown in table 6 is the version number to which the first mobile terminal a belongs when logging in through the first account name m.
And S920, when a synchronous downloading instruction of the first mobile terminal logged in by the first account name is received, selecting corresponding synchronous data according to different synchronous modes and sending the corresponding synchronous data to the first mobile terminal so as to update the local bookmark record of the first mobile terminal.
Specifically, a plurality of mobile terminals can log in the server through the same account name such as the first account name m at different times, and send a synchronous downloading instruction to the server to synchronize the current cloud bookmark table or cloud bookmark change operation records of the server. The difference of the synchronous downloading instructions determines the difference of synchronous modes, and the difference of the synchronous modes determines whether server-side bookmark records are synchronized by a full-volume bookmark table downloading mode or server-side bookmark records are transmitted to the mobile terminal by an incremental bookmark changing operation recording mode.
According to the bookmark method, the operation records of the mobile terminals uploaded by the plurality of mobile terminals logged in through the first account name are received, the cloud bookmark table of the server is changed according to the operation records of the mobile terminals, each change operation record is recorded into the cloud bookmark operation record table of the server, and when a synchronous downloading instruction of the first mobile terminal logged in through the first account name is received, corresponding synchronous data are selected according to different synchronous modes and sent to the first mobile terminal to update the local bookmark record of the first mobile terminal. Therefore, the bookmark operation records are downloaded in an incremental mode and the bookmark tables are downloaded in a full mode when data are synchronously transmitted to the mobile terminal, and bookmark omission and redundancy are avoided when the data are downloaded.
The tenth embodiment of the invention further provides a bookmark synchronization method. In the tenth embodiment, on the server side, the bookmark synchronization method is different from the ninth embodiment in that, in the present embodiment, the step S920 includes the following steps
S921, receiving a synchronous downloading instruction of the first mobile terminal logged in by the first account name;
s922, a judging unit for judging the type of the synchronization mode according to the synchronization downloading instruction;
specifically, the first mobile terminal logging in the server through the first account can judge whether the synchronization mode is full-volume downloading or incremental downloading according to the downloading version number in the local bookmark version number table, and sends a synchronization downloading instruction to the server according to the judgment result, and the judgment unit can determine the type of the synchronization mode according to the synchronization downloading instruction.
S923, configured to transmit all bookmark entries with account names of the first account name in the cloud bookmark table as the synchronization data to the first mobile terminal to update the local bookmark table when the synchronization mode is full download;
specifically, if the downloading is full-volume downloading, all bookmark entries with account names of first account names in the cloud bookmark table are data needing to be synchronized, the data needing to be synchronized are transmitted to the first mobile terminal, the first mobile terminal directly updates the local bookmark table according to the synchronous data, and if bookmark entries with the same webpage names, webpage addresses and webpage icons are encountered, the bookmark entries are directly covered.
S924, configured to, when the synchronization instruction is incremental download, obtain a third version value corresponding to a download version number in a cloud bookmark version number table of the server;
specifically, the cloud bookmark version number table at this time should be the cloud bookmark version number table to which the first mobile terminal logged in through the first account name belongs, that is, the account name in the table should be the first account name, and the mobile terminal ID should be the device identifier a of the first mobile terminal, as shown in table 6. After the obtaining unit determines the cloud bookmark version number table, a third version value corresponding to the download version number in the table is obtained, for example, 10.
S925, all operation records of which the mobile terminal ID is not the first mobile terminal and the operation version number is larger than the third version value and of which the corresponding account name is the first account name are taken as the synchronous data to be sent to the first mobile terminal;
specifically, during incremental downloading, the transmitting unit searches all operation records of which the mobile terminal IDs are not the first mobile terminal and the corresponding account names are the first account names, selects an operation record of which the operation version number is greater than a third version value (10) from all the operation records obtained through searching as synchronous data, sends the synchronous data to the first mobile terminal, and the first mobile terminal correspondingly operates the local bookmark list according to the received operation record to update the local bookmark list and returns information of successful downloading to the server.
S926, after receiving the information of successful downloading returned by the first terminal, updating the third version value in the cloud bookmark version table to the maximum operation version number currently existing in the cloud bookmark operation record table.
Specifically, after receiving the information of successful downloading returned by the first terminal, the updating unit updates the determined third version value corresponding to the downloading version number in the cloud bookmark version table to the maximum operation version number existing in the current cloud bookmark operation record table, that is, the version number of the last operation record of the synchronization data. For example, if the version number of the last operation record of the sync data is 110, then the third version value should be 110 at this time.
According to the bookmark method, the operation records of the mobile terminals uploaded by the plurality of mobile terminals logged in through the first account name are received, the cloud bookmark table of the server is changed according to the operation records of the mobile terminals, each change operation record is recorded into the cloud bookmark operation record table of the server, and when a synchronous downloading instruction of the first mobile terminal logged in through the first account name is received, corresponding synchronous data are selected according to different synchronous modes and sent to the first mobile terminal to update the local bookmark record of the first mobile terminal. Therefore, the bookmark operation records are downloaded in an incremental mode and the bookmark tables are downloaded in a full mode when data are synchronously transmitted to the mobile terminal, and bookmark omission and redundancy are avoided when the data are downloaded.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description, and do not represent advantages and disadvantages of the embodiments, and features in the embodiments and the embodiments of the present invention may be implemented in combination with each other without conflict.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A bookmark synchronization apparatus, the apparatus comprising:
the recording module is used for changing a local bookmark table of a mobile terminal browser according to user operation and recording each changing operation into the local bookmark operation recording table of the mobile terminal browser;
the judging module is used for judging that the synchronous instruction is a synchronous uploading instruction or a synchronous downloading instruction according to the received synchronous instruction;
the uploading module is used for acquiring all operation records with the record version numbers equal to the uploading version numbers in a local bookmark operation record table according to the uploading version numbers in the local bookmark version number table of the mobile terminal browser when the synchronous instruction is the synchronous uploading instruction, and uploading all the operation records to a server to update the cloud bookmark records;
a downloading module, configured to determine, when the synchronization instruction is a synchronization downloading instruction, that the synchronization mode is full-volume downloading or incremental downloading according to a downloading version number in the local bookmark version number table, and download corresponding cloud data according to different synchronization modes to update local bookmark records of the mobile terminal browser, where the downloading module further includes a copying unit, and the copying unit is configured to download, when the synchronization mode is incremental downloading, all operation records in the cloud bookmark operation record table of the server, in which an operation version number is greater than a downloading version number in the cloud bookmark version number table in the server and an operation source is other mobile terminals, and update the local bookmark table according to all the operation records, where the cloud bookmark operation record table includes a plurality of operation records, and each operation record corresponds to an operation version number corresponding to each change operation, and the download version number is used for marking the number of cloud operation records downloaded by the mobile terminal through the account name.
2. The bookmark synchronization device of claim 1, wherein the local bookmark operation record table includes a plurality of operation records, each operation record corresponds to a change operation, a record version number, bookmark content, and an operation type corresponding to each operation record are recorded, the record version number is equal to an upload version number in the local bookmark version number table when the operation record is recorded, and the operation type includes addition or deletion.
3. The bookmark synchronization apparatus of claim 2, wherein the upload module comprises:
the acquisition unit is used for acquiring a first version value corresponding to an uploading version number in the current local bookmark version number table when the synchronous instruction is a synchronous uploading instruction;
the searching unit is used for searching all operation records with the version numbers equal to the first version values recorded in the local bookmark operation record table, using all the operation records obtained through searching as target data, and uploading the target data to the server to update the cloud bookmark records;
and the updating unit is used for adding 1 to the first version value after receiving the information of successful uploading returned by the server.
4. The bookmark synchronization apparatus of claim 1, wherein the download module comprises:
the acquisition unit is used for acquiring a second version value corresponding to the download version number in the local bookmark version number table when the synchronous instruction is a synchronous download instruction;
the determining unit is used for judging that the synchronization mode is full-volume downloading when the second version value is a first preset value, and judging that the synchronization mode is incremental downloading when the second version value is a second preset value;
and the copying unit is used for directly downloading all bookmark entries in the cloud bookmark table of the server to update the local bookmark table when the synchronization mode is full-volume downloading.
5. A bookmark synchronization method, characterized in that the method comprises the steps of:
changing a local bookmark table of a mobile terminal browser according to user operation and recording each change operation into the local bookmark operation record table of the mobile terminal browser;
judging the synchronous instruction as a synchronous uploading instruction or a synchronous downloading instruction according to the received synchronous instruction;
when the synchronous instruction is a synchronous uploading instruction, acquiring all operation records with the recorded version numbers equal to the uploading version numbers in a local bookmark operation record table according to the uploading version numbers in the local bookmark version number table of the mobile terminal browser, and uploading all the operation records to a server to update the cloud bookmark records;
when the synchronous instruction is a synchronous downloading instruction, judging that the synchronous mode is full-scale downloading or incremental downloading according to the downloading version number in the local bookmark version number table, downloading corresponding cloud data according to different synchronous modes to update the local bookmark record of the mobile terminal browser, wherein, when the synchronous mode is incremental downloading, the operation version number in the cloud bookmark operation record table downloaded from the server is larger than the download version number in the cloud bookmark version number table in the server and the operation source is all the operation records of other mobile terminals, the local bookmark table is updated according to all the operation records, wherein, the cloud bookmark operation record table comprises a plurality of operation records, each operation record correspondingly records an operation version number corresponding to each change operation, and the download version number is used for marking the number of cloud operation records downloaded by the mobile terminal through the account name.
6. The bookmark synchronization method of claim 5, wherein the local bookmark operation record table includes a plurality of operation records, each operation record corresponds to a change operation, a record version number, bookmark content and an operation type corresponding to each operation record are recorded, the record version number is equal to an upload version number in the local bookmark version number table when the operation record is recorded, and the operation type includes addition or deletion.
7. The bookmark synchronization method of claim 6, wherein when the synchronization instruction is a synchronous upload instruction, acquiring all operation records with a record version number equal to the upload version number in a local bookmark version number table of the mobile terminal browser according to the upload version number in the local bookmark version number table, and uploading all the operation records to a server to update a cloud bookmark record comprises:
when the synchronous instruction is a synchronous uploading instruction, acquiring a first version value corresponding to an uploading version number in the current local bookmark version number table;
searching all operation records with the record version numbers equal to the first version value in the local bookmark operation record table, taking all the operation records obtained through searching as target data, and uploading the target data to the server to update the cloud bookmark record;
and after receiving the information of successful uploading returned by the server, adding 1 to the first version value.
8. The bookmark synchronization method of claim 5, wherein when the synchronization command is a synchronization download command, determining that the synchronization mode is full-volume download or incremental download according to a download version number in the local bookmark version number table, and downloading corresponding cloud data according to different synchronization modes to update the local bookmark record of the mobile terminal browser includes:
when the synchronous instruction is a synchronous downloading instruction, acquiring a second version value corresponding to a downloading version number in the local bookmark version number table;
when the second version value is a first preset value, the synchronous mode is judged to be full-scale downloading, and when the second version value is a second preset value, the synchronous mode is judged to be incremental downloading;
and when the synchronization mode is full downloading, directly downloading all bookmark entries in the cloud bookmark table of the server to update the local bookmark table.
9. A bookmark synchronization method, characterized in that the method comprises the steps of:
receiving mobile terminal operation records uploaded by a plurality of mobile terminals logged in through a first account name;
changing a cloud bookmark table of a server according to the operation record of the mobile terminal and recording each change operation into the cloud bookmark operation record table of the server;
when receiving a synchronous downloading instruction of a first mobile terminal logged in through the first account name, selecting corresponding synchronous data according to different synchronous modes and sending the corresponding synchronous data to the first mobile terminal so as to update the local bookmark record of the first mobile terminal, wherein, when the synchronization mode is incremental downloading, all operation records which are sent to the first mobile terminal and have operation sources of other mobile terminals are sent to the first mobile terminal so as to update the local bookmark table according to all the operation records, wherein the operation version number in the cloud bookmark operation record table of the server is larger than the download version number in the cloud bookmark version number table in the server, wherein, the cloud bookmark operation record table comprises a plurality of operation records, each operation record correspondingly records an operation version number corresponding to each change operation, and the download version number is used for marking the number of cloud operation records downloaded by the mobile terminal through the account name.
10. The bookmark synchronization method according to claim 9, wherein each operation record is recorded with bookmark content, an account name, a mobile terminal ID, and an operation type corresponding to each change operation, wherein the operation version number is an integer sequentially incremented from 0, the operation type is addition or deletion, and the mobile terminal ID is a device identifier of a mobile terminal that uploads the mobile terminal operation record corresponding to the operation record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510725243.6A CN105426403B (en) | 2015-10-30 | 2015-10-30 | Bookmark synchronization method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510725243.6A CN105426403B (en) | 2015-10-30 | 2015-10-30 | Bookmark synchronization method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105426403A CN105426403A (en) | 2016-03-23 |
CN105426403B true CN105426403B (en) | 2020-06-23 |
Family
ID=55504615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510725243.6A Active CN105426403B (en) | 2015-10-30 | 2015-10-30 | Bookmark synchronization method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105426403B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107807925A (en) * | 2016-09-08 | 2018-03-16 | 广州市动景计算机科技有限公司 | Browser bookmark method to set up and device and computing device |
CN106375861A (en) * | 2016-10-10 | 2017-02-01 | 合网络技术(北京)有限公司 | Video playing method and device |
CN106970974B (en) * | 2017-03-27 | 2020-10-30 | 车智互联(北京)科技有限公司 | Version-based APP low-flow data updating system and method |
CN107682431A (en) * | 2017-09-28 | 2018-02-09 | 成都路行通信息技术有限公司 | A kind of more data synchronization between devices optimization methods and system |
CN108076134A (en) * | 2017-10-31 | 2018-05-25 | 努比亚技术有限公司 | Record information acquisition method, terminal, server and computer readable storage medium |
CN108111598B (en) * | 2017-12-19 | 2021-10-08 | 腾讯科技(深圳)有限公司 | Cloud disk data issuing method and device and storage medium |
CN109086304B (en) * | 2018-06-21 | 2023-10-27 | 腾讯科技(武汉)有限公司 | Electronic bookmark updating method, device and storage medium |
CN110691214B (en) * | 2018-07-05 | 2022-04-26 | 视联动力信息技术股份有限公司 | Data processing method and device for business object |
CN109246247A (en) * | 2018-10-31 | 2019-01-18 | 广州市百果园信息技术有限公司 | Address book synchronization method, device, computer storage medium and terminal |
CN110134891A (en) * | 2019-05-23 | 2019-08-16 | 中国联合网络通信集团有限公司 | Terminal equipment control method and device, USIM control method and device |
CN111046104B (en) * | 2019-12-11 | 2023-05-19 | 北京中网易企秀科技有限公司 | Method and device for synchronizing data and method and device for retrieving synchronous data |
CN111339107B (en) * | 2020-02-10 | 2023-07-28 | 支付宝(杭州)信息技术有限公司 | Method and device for synchronizing comparison source data, electronic equipment and storage medium |
CN113067848B (en) * | 2021-02-05 | 2023-09-26 | 厦门亿联网络技术股份有限公司 | Call record synchronization method and system and electronic equipment |
CN114726872A (en) * | 2022-04-07 | 2022-07-08 | 平安资产管理有限责任公司 | Data synchronization method and device, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024026A (en) * | 2012-12-07 | 2013-04-03 | 康佳集团股份有限公司 | Multi-screen interactive software auto update method and system based on Android |
CN103701930A (en) * | 2014-01-07 | 2014-04-02 | 浙江大学 | Mobile application program real-time updating method and system |
CN104243429A (en) * | 2013-06-20 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Method, device and system for achieving browser bookmark synchronization |
CN104361007A (en) * | 2014-10-11 | 2015-02-18 | 北京奇虎科技有限公司 | Browser and processing method for browser favorites |
CN104793970A (en) * | 2015-04-02 | 2015-07-22 | 安徽四创电子股份有限公司 | Online upgrade method based on FTP |
CN104852933A (en) * | 2014-02-13 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method for synchronizing browser bookmark data, system and device thereof |
CN105005499A (en) * | 2015-06-19 | 2015-10-28 | 上海久云信息科技有限公司 | Multi-client cooperative grouping and displaying method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080096761A (en) * | 2006-02-28 | 2008-11-03 | 샌디스크 아이엘 엘티디 | Bookmarked synchronization of files |
US8682851B2 (en) * | 2011-11-01 | 2014-03-25 | Google Inc. | Device specific folders for bookmark synchronization |
-
2015
- 2015-10-30 CN CN201510725243.6A patent/CN105426403B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024026A (en) * | 2012-12-07 | 2013-04-03 | 康佳集团股份有限公司 | Multi-screen interactive software auto update method and system based on Android |
CN104243429A (en) * | 2013-06-20 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Method, device and system for achieving browser bookmark synchronization |
CN103701930A (en) * | 2014-01-07 | 2014-04-02 | 浙江大学 | Mobile application program real-time updating method and system |
CN104852933A (en) * | 2014-02-13 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method for synchronizing browser bookmark data, system and device thereof |
CN104361007A (en) * | 2014-10-11 | 2015-02-18 | 北京奇虎科技有限公司 | Browser and processing method for browser favorites |
CN104793970A (en) * | 2015-04-02 | 2015-07-22 | 安徽四创电子股份有限公司 | Online upgrade method based on FTP |
CN105005499A (en) * | 2015-06-19 | 2015-10-28 | 上海久云信息科技有限公司 | Multi-client cooperative grouping and displaying method |
Also Published As
Publication number | Publication date |
---|---|
CN105426403A (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426403B (en) | Bookmark synchronization method and device | |
CN106302651B (en) | Social picture sharing method and terminal with social picture sharing system | |
CN106157970B (en) | Audio identification method and terminal | |
CN106610770A (en) | Picture viewing method and device | |
CN105357370A (en) | Chat message positioning method and terminal | |
CN106250268B (en) | Content of text recovery device and method | |
CN105187534A (en) | Information backup equipment and method, and information backup system | |
CN107066604B (en) | Junk file cleaning method and terminal | |
CN106598538B (en) | Instruction set updating method and system | |
CN105072279B (en) | A kind of back-up device based on mobile terminal and method | |
CN106341554B (en) | Method and device for quickly searching data content and mobile terminal | |
CN105302899A (en) | Mobile terminal and picture processing method | |
CN105430042B (en) | A kind of method, server-side and mobile terminal for realizing data transmission | |
CN106293330B (en) | Prompting method and device for upgrading application program icon | |
CN105260096A (en) | Method for controlling user operation and mobile terminal | |
CN106385494B (en) | Method and device for acquiring dynamic home page of mobile terminal application | |
CN105094598A (en) | Device and method for processing operational objects | |
CN105307156B (en) | Device and method for requesting downloading of application | |
CN105245707A (en) | Mobile terminal and method for processing information | |
CN106325677B (en) | Method for presenting multiple application program interfaces and mobile terminal | |
CN105094636B (en) | A kind of control method and device of application view browsing | |
CN106873979B (en) | Information processing method and mobile terminal | |
CN107037958B (en) | Application program switching method and terminal | |
CN105847361B (en) | Contact person information management method, server and terminal | |
CN105101133A (en) | Mobile terminal, and call transfer realization system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200527 Address after: Room 601, floor 6, building 1, Lane ditch 1, Haidian District, Beijing 100089 Applicant after: BEIJING SHUKE WANGWEI TECHNOLOGY Co.,Ltd. Address before: 518000 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor Applicant before: NUBIA TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |