[go: up one dir, main page]

CN110147334A - A kind of storage method and terminal of content of edit - Google Patents

A kind of storage method and terminal of content of edit Download PDF

Info

Publication number
CN110147334A
CN110147334A CN201910380391.7A CN201910380391A CN110147334A CN 110147334 A CN110147334 A CN 110147334A CN 201910380391 A CN201910380391 A CN 201910380391A CN 110147334 A CN110147334 A CN 110147334A
Authority
CN
China
Prior art keywords
content
terminal
target
edit
class
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.)
Granted
Application number
CN201910380391.7A
Other languages
Chinese (zh)
Other versions
CN110147334B (en
Inventor
王慧
付强
高学智
赵洪飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910380391.7A priority Critical patent/CN110147334B/en
Publication of CN110147334A publication Critical patent/CN110147334A/en
Application granted granted Critical
Publication of CN110147334B publication Critical patent/CN110147334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides the storage method and terminal of a kind of content of edit, this method comprises: receiving the edit operation of user's input, wherein edit operation user edits the content of target service type;In response to edit operation, the invocation target object at least two Edition Contains objects, wherein target object is corresponding with target service type;Interception target content, wherein object content are as follows: the content of the method editor under edit operation based on target object;Object content is stored to database.The storage method of content of edit provided in an embodiment of the present invention, terminal are not necessarily to that a set of independent storage logic is separately provided for each type of service, reduce the workload that automatic real-time storage mechanism is arranged;In addition, without changing to storage logic, promoting the expansion of automatic implementation memory mechanism in the case where the change of the type of service of content of edit.

Description

A kind of storage method and terminal of content of edit
Technical field
The storage method and terminal of technical field of data storage of the present invention more particularly to a kind of content of edit.
Background technique
With the rapid development of information technology, smart phone is with, tablet computer and waits terminals more more and more universal, and become A part in people's daily life.For the requirement for meeting people, terminal has more and more abundant function, especially in editor The function of appearance.User passes through the function of terminal content of edit, can write the contents such as article at the terminal and be issued, make user It is more convenient to write content, promotes user experience effect.
Wherein, it is usually provided with inductionless automatic real-time storage mechanism in terminal, writes content in user's using terminal During, terminal can be cached to local data base in real time when the content of pre-editing automatically, thus terminal occur system, It, can be to avoid the contents lost of editor when network or unstable program.Since user can edit a variety of differences by terminal The content of type, such as editor's title, text, classification type and cover, and in current automatic real-time storage mechanism, eventually The end of content storage in to(for) each type is required to that a set of independent storage logic is arranged, so that the automatic real-time storage of terminal Mechanism is complicated, is unfavorable for the expansion of automatic real-time storage mechanism.
Summary of the invention
The embodiment of the present invention provides the storage method and terminal of a kind of content of edit, to solve automatic real-time storage machine at present System has that expansion is low.
To solve the above problems, the embodiments of the present invention are implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of storage method of content of edit, applied to being provided at least two The terminal of kind Edition Contains object, and different content edit object is corresponding with different service types;The described method includes:
Receive the edit operation of user's input, wherein the edit operation is used to edit the content of target service type;
In response to the edit operation, the invocation target object in at least two Edition Contains object, wherein described Target object is corresponding with the target service type;
Interception target content, wherein the object content are as follows: the side based on the target object under the edit operation The content of method editor;
The object content is stored to database.
Second aspect, the embodiment of the invention also provides a kind of terminal, the terminal is provided at least two Edition Contains Object, and different content edit object is corresponding with different service types;The terminal includes:
Receiving module is operated, for receiving the edit operation of user's input, wherein the edit operation is for editing target The content of type of service;
Object reference module, for being called in at least two Edition Contains object in response to the edit operation Target object, wherein the target object is corresponding with the target service type;
Content intercept module is used for interception target content, wherein the object content are as follows: the base under the edit operation In the content of the method editor of the target object;
Memory module, for storing the object content to database.
The third aspect, the embodiment of the invention also provides a kind of terminals, which is characterized in that including processor, memory and It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing The step of device realizes the storage method of above-mentioned content of edit when executing.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, which is characterized in that the computer program realizes the step of storage method of above-mentioned content of edit when being executed by processor.
The embodiment of the present invention, by the edit operation for receiving user's input, wherein the edit operation is for editing target The content of type of service;In response to the edit operation, the invocation target object in at least two Edition Contains object, In, the target object is corresponding with the target service type;Interception target content, wherein the object content are as follows: described The content of method editor under edit operation based on the target object;The object content is stored to database.In this way, eventually End reduces the work that automatic real-time storage mechanism is arranged it is not necessary that a set of independent storage logic is separately provided for each type of service Amount;In addition, without changing to storage logic, promoting automatic implementation in the case where the change of the type of service of content of edit The expansion of memory mechanism.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow diagram of the storage method of content of edit provided in an embodiment of the present invention;
Fig. 2 is the realization principle figure of real-time storage mechanism provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram that terminal provided in an embodiment of the present invention shows article editing interface;
Fig. 4 is one of the structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 5 is the second structural representation of terminal provided in an embodiment of the present invention;
Fig. 6 is the third structural representation of terminal provided in an embodiment of the present invention;
Fig. 7 is the hardware structural diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It is a kind of flow chart of the storage method of content of edit provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, is applied to It is provided with the terminal of at least two Edition Contains objects, and different content edit object is corresponding with different service types;Such as Fig. 1 institute Show, method the following steps are included:
Step 101, the edit operation for receiving user's input, wherein the edit operation is for editing target service type Content;
Step 102, in response to the edit operation, the invocation target object in at least two Edition Contains object, Wherein, the target object is corresponding with the target service type;
Step 103, interception target content, wherein the object content are as follows: the target is based under the edit operation The content of the method editor of object;
Step 104 stores the object content to database.
Here, terminal can dynamically call on the content that edit operation is edited in the case where receiving edit operation The corresponding Edition Contains object (i.e. target object) of type of service, and intercept edit operation editor content, i.e., based on call Edition Contains object modification content, realization dynamically the content of each type of service of editor is stored, without A set of independent storage logic is separately provided for each type of service, reduces the workload that automatic real-time storage mechanism is set;Separately Outside, it in the case where the change of the type of service of content of edit, without being changed to storage logic, promotes automatic implementation and stores machine The expansion of system.
It should be noted that above-mentioned terminal can be any terminal for capableing of content of edit, and such as: mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal Digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable Equipment (Wearable Device) etc., can also be other terminals, such as digital camera, e-book, navigator.
In above-mentioned steps 101, the feelings of material (content of the material can be shown by multiple pages) are shown in terminal Under condition, if user needs the content to target service type in material to edit, user can be inputted in the terminal for compiling The edit operation of the content of the mark type of service is collected, and terminal can receive edit operation.
Wherein, above-mentioned material can be article, atlas or picture etc., include editable at least two industry in the material The content of service type, such as: it may include title content, body matter, envelope in article in the case where above-mentioned material is article Face content and classification type content etc., i.e., above-mentioned at least two type of service includes title, text, cover and classification type Etc. types of service.
In addition, at least two Edition Contains objects are provided in terminal, the difference of different Edition Contains objects and material Type of service is corresponding, and each Edition Contains object includes method body and attribute volume, and is received in terminal to a certain service class When the edit operation that the content of type is edited, terminal can pass through the method body of the corresponding Edition Contains object of the type of service In method, modify to the content of the type of service, to realize the editor to the content of the type of service.
Illustratively, as shown in Figure 2, in the case where above-mentioned material is article, the Business Logic of terminal includes industry Business interface class, business interface class is provided at least two Edition Contains object of title, such as title edit object, text editing couple As, cover edit object and classification type edit object, etc., and title edit object includes the title for editing title Changing method;Text editing's object includes the text changing method for editing text;Cover edit object includes for editing The cover changing method of cover;Classification type edit object includes the classification type changing method for editing classification type, etc. Deng.
At least one or multiple business type content is compiled it should be noted that above-mentioned edit operation can be The operation collected, i.e., it also may include multiple business type, herein simultaneously that above-mentioned target service type, which can be only a kind of type of service, Without limiting.
In step 102, in the case where terminal receives above-mentioned edit operation, terminal can in response to the edit operation, Corresponding with target service type Edition Contains object, that is, target object is called, so as to from least two Edition Contains objects Middle dynamic call target object corresponding with edit operation.
Wherein, above-mentioned terminal calls Edition Contains object, that is, target object corresponding with target service type, can be logical Cross it is any can be according to edit operation, the dynamic call target pair corresponding with edit operation from least two Edition Contains objects The method of elephant is realized, is not defined herein.
In above-mentioned steps 103, after terminal invocation target object, terminal can intercept terminal under the edit operation Content, that is, object content of method editor based on target object, to obtain the object content that edit operation is edited in real time.
It should be noted that above-mentioned terminal interception target content, can be by it is any can be in the edit operation Under the method that is intercepted of content of the method editor based on target object realize, be also not construed as limiting herein.
In some embodiments, the above-mentioned invocation target object in at least two Edition Contains object, can wrap Include: by agent operation class in at least two Edition Contains object invocation target object;Above-mentioned interception target content, can To include: by dynamic call method interception target content, so that the edit operation for being easily achieved dynamically acquisition user is compiled The object content collected.
Illustratively, in above-mentioned element for article, when above-mentioned edit operation is to article as shown in Figure 3 When writing the operation that title content and body matter are edited in articles page 31, then above-mentioned target service type is title and just Text, then terminal can call title edit object and text to compile by agent operation (ProxyObject) class as shown in Figure 2 Object is collected, i.e., above-mentioned target object includes title edit object and text editing's object;And target industry is used in terminal input In the case where the edit operation of the content of service type, target corresponding to terminal ProxyObject class invocation target type of service Object, and the side by target object is intercepted according to the method for target object by invoke method (i.e. dynamic call method) The content of method change, the content (i.e. object content) which is edited by above-mentioned edit operation, for example, in target service type In the case where the types of service such as title and text, invoke method can method according to title edit object and text editing The method of object intercepts the content that title and text are edited in edit operation.
Wherein, above-mentioned agent operation class is the class for calling the target object in the business interface class of terminal, and at end In the case that termination receives above-mentioned edit operation, terminal can call the agent operation class, to be called by the agent operation class Above-mentioned target object.
In further embodiment, above by agent operation class in at least two Edition Contains object It can also include: to judge in the terminal with the presence or absence of the agent operation class before invocation target object;Determining the end There is no in the case where the agent operation class in end, the dynamic call Processing Interface realization class creation generation is handled by calling Reason operation class.
Here, terminal receive state edit operation in the case where, it can be determined that in terminal with the presence or absence of above-mentioned agency grasp Make class, and can realize that class is created in time by dynamic call Processing Interface there is no in the case where agent operation class in the terminal Build agent operation class so that terminal can under some special screnes the above-mentioned target object of normal call, such as the first time using automatic When real-time storage mechanism.
Illustratively, as shown in Figure 2, when terminal needs to call the object in business interface class, terminal be may determine that It whether there is agent operation class, and determining there is no in the case where ProxyObject class (i.e. agent operation class), terminal passes through InvocationHandler realizes class (i.e. dynamic call Processing Interface realizes class) creation instance of agent, that is, creates ProxyObject class;Certainly, determine that such as last editing process is there are in the case where ProxyObject class in above-mentioned terminal ProxyObject class is created, then the ProxyObject class that terminal can directly adjust last time to create.
In addition, it is necessary to explanation, in the case where terminal receives above-mentioned edit operation, terminal can pass through the editor The content of target service type is edited in the method for operating corresponding target object, realization, that is, passes through the side of target object Method changes the content of target service type.
In above-mentioned steps 104, after terminal interception target content, terminal can be stored object content to database In, when so that system, network or the emergencies such as program is unstable occurring in terminal, avoid the loss of object content.
Wherein, above-mentioned terminal stores object content to database, can be terminal after intercepting object content, directly It connects and stores object content.
Alternatively, above-mentioned steps 104 may include: above by dynamic call method interception target content In the case where the method for the target object is provided with update and explains, the object content is stored to database.
Here, terminal after intercepting object content, can judge whether the method for target object is provided with update note Solution, and in the case where the method for target object is provided with update and explains, just object content is stored to database, so as to Realization selectively stores object content.Certainly, in the case where the method for above-mentioned target object is not provided with update and explains, Terminal does not store object content to database.
Wherein, the update of the method setting of above-mentioned target object is explained, and be can be and any is used to indicate the target object pair The content for the type of service answered needs the mark of real-time storage, and terminal can be some or all of industry in Business Logic The method setting of the corresponding Edition Contains object of service type, which updates, explains.
Illustratively, as shown in Figure 2, terminal can be each type of service for needing real-time storage by business interface class Corresponding method addition, which updates, explains (annotation), and the content by updating annotation tag type of service needs to protect in real time It deposits;When terminal intercepts the content of method editor of target object by invoke method, terminal can be by the side invoke Method determines whether the annotation of the method terminal of the target object is not sky, and in the method for target object In the case that annotation is not empty (i.e. the method for target object is provided with annotation), by the method for target object Content is stored to local data base (i.e. above-mentioned database), such as: business interface class is title changing method, text variation side Method, cover changing method and classification type changing method etc. add update and explain, and terminal is intercepted by invoke method To title changing method editor content when, can be judged by invoke method title changing method annotation whether It is not sky, and in the case where the annotation of title changing method is not sky, it will be by title changing method editor Storage is stored to local data base, etc..
In addition, in the case where above-mentioned material includes the content of multiple business type, it is above-mentioned to store the object content To database, it can be terminal and only store the content edited in material, such as: it is article, and this article packet in material In the case where including the contents such as title, text, cover and classification type, if above-mentioned edit operation is compiled to title and text Volume operation, then in the case that terminal can intercept the title content and body matter of editor by invoke method, terminal Only title content and body matter are stored to local data base.
Alternatively, in some embodiments, it is above-mentioned to store the object content to database, comprising:
It will store as a whole when the material including the object content of pre-editing to the database, wherein described Material includes the content of multiple business type.
Here, terminal can be stored material as a whole when the content of any type of service changes in material To database, the integrality of material thereby may be ensured that, and reduce the complexity for saving object content, and make storage mode more Flexibly.
Such as: it is article in material, and this article includes the case where the content of title, text, cover and classification type Under, if above-mentioned edit operation is the operation only edited to title and text, terminal can be equal by all the elements of article It stores to local data base.
In addition, terminal not only can be by editor's in the case where user edits the content in material by edit operation Content is stored to local data base, can also be updated the content cached in memory.
Specifically, after above-mentioned interception target content, further includes: the data source of the target service type is updated, so that The content of edit entity of target service type is updated to the object content, to realize to the content of the memory cache of terminal It updates.
Illustratively, as shown in Figure 2, it is provided with business realizing class in the service logic of terminal and realizes interface, in terminal In the case where intercepting object content by invoke method, business realizing class realizes that interface can call invoke method to intercept The object content arrived, and data source is changed according to object content, the content of edit entity of target service type is updated to mesh Mark content.
It should be noted that above-mentioned terminal can not only be intercepted by dynamic call method, modified and be saved in real time Object content is stated, can also realize other function by dynamic call method, illustratively, as shown in Figure 2, terminal can be with By invoke method be embodied as object content add log, or by object content upload etc. other functions, herein not into Row repeats.
In the embodiment of the present invention, by the edit operation for receiving user's input, wherein the edit operation is for editing mesh Mark the content of type of service;In response to the edit operation, the invocation target object in at least two Edition Contains object, Wherein, the target object is corresponding with the target service type;Interception target content, wherein the object content are as follows: in institute State the content of the method editor under edit operation based on the target object;The object content is stored to database.In this way, Terminal is not necessarily to that a set of independent storage logic is separately provided for each type of service, reduces the work that automatic real-time storage mechanism is arranged It measures;In addition, without being changed to storage logic, being promoted automatic real in the case where the change of the type of service of content of edit Apply the expansion of memory mechanism.
Referring to fig. 4, Fig. 4 is the structure chart of terminal provided in an embodiment of the present invention, and terminal is provided at least two contents volume Object is collected, and different content edit object is corresponding with different service types, as shown in figure 4, terminal 400 includes:
Receiving module 401 is operated, for receiving the edit operation of user's input, wherein the edit operation is for editing The content of target service type;
Object reference module 402, for being adjusted in at least two Edition Contains object in response to the edit operation With target object, wherein the target object is corresponding with the target service type;
Content intercept module 403 is used for interception target content, wherein the object content are as follows: under the edit operation The content of method editor based on the target object;
Memory module 404, for storing the object content to database.
Optionally, the object reference module 402, is specifically used for:
By agent operation class in at least two Edition Contains object invocation target object;
The content intercept module 403, is specifically used for:
Pass through dynamic call method interception target content.
Optionally, as shown in figure 5, the terminal 400, further includes:
Judgment module 405, for judging in the terminal with the presence or absence of the agent operation class;
Class creation module 406 passes through tune in the case where for the agent operation class to be not present in determining the terminal Realize that class creates the agent operation class with processing dynamic call Processing Interface.
Optionally, the memory module 404, is specifically used for:
In the case where the method for the target object is provided with update and explains, the object content is stored to data Library.
Optionally, as shown in fig. 6, the terminal 400, further includes:
Data source update module 407, for updating the data source of the target service type, so that target service type Content of edit entity is updated to the object content.
Optionally, the memory module 404, is specifically used for:
It will store as a whole when the material including the object content of pre-editing to the database, wherein described Material includes the content of multiple business type.
Terminal 400 provided in an embodiment of the present invention can be realized each process that terminal is realized in embodiment of the method in Fig. 1, To avoid repeating, which is not described herein again.
A kind of hardware structural diagram of Fig. 7 terminal of each embodiment to realize the present invention.
The terminal 700 includes but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input are single Member 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor 710, And the equal components of power supply 711.It will be understood by those skilled in the art that the not structure paired terminal of terminal structure shown in Fig. 7 It limits, terminal may include perhaps combining certain components or different component layouts than illustrating more or fewer components. Wherein, terminal 700 is provided at least two Edition Contains objects, and different content edit object is corresponding with different service types.
Wherein, processor 710 are used for:
Receive the edit operation of user's input, wherein the edit operation is used to edit the content of target service type;
In response to the edit operation, the invocation target object in at least two Edition Contains object, wherein described Target object is corresponding with the target service type;
Interception target content, wherein the object content are as follows: the side based on the target object under the edit operation The content of method editor;
The object content is stored to database.
Optionally, processor 710 are specifically used for:
By agent operation class in at least two Edition Contains object invocation target object;
Pass through dynamic call method interception target content.
Optionally, processor 710 are also used to:
Judge in the terminal with the presence or absence of the agent operation class;
In the case where the agent operation class is not present in determining the terminal, by calling processing dynamic call processing Interface realizes that class creates the agent operation class.
Optionally, processor 710 are specifically used for:
In the case where the method for the target object is provided with update and explains, the object content is stored to data Library.
Optionally, processor 710 are also used to:
Update the data source of the target service type so that the content of edit entity of target service type be updated to it is described Object content.
Optionally, processor 710 are specifically used for:
It will store as a whole when the material including the object content of pre-editing to the database, wherein described Material includes the content of multiple business type.
Terminal 700 provided in an embodiment of the present invention can be realized each process that terminal is realized in embodiment of the method in Fig. 1, To avoid repeating, which is not described herein again.
It should be understood that the embodiment of the present invention in, radio frequency unit 701 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 710 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 701 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 701 can also by wireless communication system and network and other set Standby communication.
Terminal provides wireless broadband internet by network module 702 for user and accesses, and such as user is helped to receive and dispatch electricity Sub- mail, browsing webpage and access streaming video etc..
Audio output unit 703 can be received by radio frequency unit 701 or network module 702 or in memory 709 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 703 can also provide and end The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 700 executes.Sound Frequency output unit 703 includes loudspeaker, buzzer and receiver etc..
Input unit 704 is for receiving audio or video signal.Input unit 704 may include graphics processor (Graphics Processing Unit, GPU) 7041 and microphone 7042, graphics processor 7041 is in video acquisition mode Or the image data of the static images or video obtained in picture acquisition mode by picture acquisition equipment (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 706.Through graphics processor 7041, treated that picture frame can be deposited Storage is sent in memory 709 (or other storage mediums) or via radio frequency unit 701 or network module 702.Mike Wind 7042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 701 is converted in the case where telephone calling model.
Terminal 700 further includes at least one sensor 705, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 7061, and proximity sensor can close display panel when terminal 700 is moved in one's ear 7061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 705 can be with Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensor etc., details are not described herein.
Display unit 706 is for showing information input by user or being supplied to the information of user.Display unit 706 can wrap Display panel 7061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 7061.
User input unit 707 can be used for receiving the number or character information of input, and generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 707 include touch panel 7071 and other Input equipment 7072.Touch panel 7071, also referred to as touch screen, collect user on it or nearby touch operation (such as User is using any suitable objects or attachment such as finger, stylus on touch panel 7071 or near touch panel 7071 Operation).Touch panel 7071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 710, receives processor 710 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch panel 7071.In addition to touch panel 7071, user input unit 707 can also include other input equipments 7072. Specifically, other input equipments 7072 can include but is not limited to physical keyboard, function key (such as volume control button, switch Key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 7071 can be covered on display panel 7061, when touch panel 7071 is detected at it On or near touch operation after, send processor 710 to determine the type of touch event, be followed by subsequent processing device 710 according to touching The type for touching event provides corresponding visual output on display panel 7061.Although in Fig. 7, touch panel 7071 and display Panel 7061 is the function that outputs and inputs of realizing terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of terminal is realized so that touch panel 7071 and display panel 7061 is integrated, is not limited herein specifically It is fixed.
Interface unit 708 is the interface that external device (ED) is connect with terminal 700.For example, external device (ED) may include it is wired or Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port, For connecting port, the port audio input/output (I/O), video i/o port, ear port of the device with identification module Etc..Interface unit 708 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will One or more elements that the input received is transferred in terminal 700 or can be used for terminal 700 and external device (ED) it Between transmit data.
Memory 709 can be used for storing software program and various data.Memory 709 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, picture playing function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 709 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 710 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the software program and/or module being stored in memory 709, and call and be stored in memory 709 Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 710 may include one Or multiple processing units;Preferably, processor 710 can integrate application processor and modem processor, wherein application processing The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 710.
Terminal 700 can also include the power supply 711 (such as battery) powered to all parts, it is preferred that power supply 711 can be with It is logically contiguous by power-supply management system and processor 710, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
In addition, terminal 700 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal, including processor 710, and memory 709 is stored in storage It is real when which is executed by processor 710 on device 709 and the computer program that can be run on the processor 710 Each process of the storage method embodiment of existing above-mentioned content of edit, and identical technical effect can be reached, to avoid repeating, this In repeat no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake of the storage method embodiment of above-mentioned content of edit when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (14)

1. a kind of storage method of content of edit, applied to the terminal for being provided at least two Edition Contains objects, and in difference It is corresponding with different service types to hold edit object;It is characterized in that, which comprises
Receive the edit operation of user's input, wherein the edit operation is used to edit the content of target service type;
In response to the edit operation, the invocation target object in at least two Edition Contains object, wherein the target Object is corresponding with the target service type;
Interception target content, wherein the object content are as follows: the method under the edit operation based on the target object is compiled The content collected;
The object content is stored to database.
2. the method according to claim 1, wherein described call in at least two Edition Contains object Target object, comprising:
By agent operation class in at least two Edition Contains object invocation target object;
The interception target content, comprising:
Pass through dynamic call method interception target content.
3. according to claim require 2 described in method, which is characterized in that it is described by agent operation class described at least two In Edition Contains object before invocation target object, further includes:
Judge in the terminal with the presence or absence of the agent operation class;
In the case where the agent operation class is not present in determining the terminal, dynamic call Processing Interface is handled by calling Realize that class creates the agent operation class.
4. according to the method described in claim 2, it is characterized in that, described store the object content to database, comprising:
In the case where the method for the target object is provided with update and explains, the object content is stored to database.
5. method according to claim 1 to 4, which is characterized in that after the interception target content, also wrap It includes:
The data source of the target service type is updated, so that the content of edit entity of target service type is updated to the target Content.
6. method according to claim 1 to 4, which is characterized in that it is described by the object content store to Database, comprising:
It will store as a whole when the material including the object content of pre-editing to the database, wherein the material Content including multiple business type.
7. a kind of terminal, the terminal is provided at least two Edition Contains objects, and different content edit object with it is not of the same trade or business Service type is corresponding;It is characterized in that, the terminal includes:
Receiving module is operated, for receiving the edit operation of user's input, wherein the edit operation is for editing target service The content of type;
Object reference module is used in response to the edit operation, the invocation target in at least two Edition Contains object Object, wherein the target object is corresponding with the target service type;
Content intercept module is used for interception target content, wherein the object content are as follows: institute is based under the edit operation State the content of the method editor of target object;
Memory module, for storing the object content to database.
8. the method according to the description of claim 7 is characterized in that the object reference module, is specifically used for:
By agent operation class in at least two Edition Contains object invocation target object;
The content intercept module, is specifically used for:
Pass through dynamic call method interception target content.
9. according to terminal described in claim requirement 8, which is characterized in that the terminal, further includes:
Judgment module, for judging in the terminal with the presence or absence of the agent operation class;
Class creation module is handled in the case where for the agent operation class to be not present in determining the terminal by calling Dynamic call Processing Interface realizes that class creates the agent operation class.
10. terminal according to claim 8, which is characterized in that the memory module is specifically used for:
In the case where the method for the target object is provided with update and explains, the object content is stored to database.
11. terminal according to any one of claims 7 to 10, which is characterized in that the terminal, further includes:
Data source update module, for updating the data source of the target service type, so that in the editor of target service type Hold entity and is updated to the object content.
12. terminal according to any one of claims 7 to 10, which is characterized in that the memory module is specifically used for:
It will store as a whole when the material including the object content of pre-editing to the database, wherein the material Content including multiple business type.
13. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory and can be at the place The computer program run on reason device is realized when the computer program is executed by the processor as appointed in claim 1 to 6 The step of storage method of content of edit described in one.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of storage method of content of edit described in any one of claims 1 to 6 is realized when being executed by processor.
CN201910380391.7A 2019-05-08 2019-05-08 Storage method and terminal for edited content Active CN110147334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910380391.7A CN110147334B (en) 2019-05-08 2019-05-08 Storage method and terminal for edited content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910380391.7A CN110147334B (en) 2019-05-08 2019-05-08 Storage method and terminal for edited content

Publications (2)

Publication Number Publication Date
CN110147334A true CN110147334A (en) 2019-08-20
CN110147334B CN110147334B (en) 2021-10-08

Family

ID=67595175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910380391.7A Active CN110147334B (en) 2019-05-08 2019-05-08 Storage method and terminal for edited content

Country Status (1)

Country Link
CN (1) CN110147334B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1368683A (en) * 2001-02-02 2002-09-11 英业达股份有限公司 A Method of Fault Tolerance Using Synchronized Directories
US20030212792A1 (en) * 2002-05-10 2003-11-13 Silicon Graphics, Inc. Real-time storage area network
CN1467642A (en) * 2002-07-09 2004-01-14 ��ʿͨ��ʽ���� Data Protection Procedures and Data Protection Methods
CN101599011A (en) * 2008-06-05 2009-12-09 北京书生国际信息技术有限公司 Document processing system and method
CN103150684A (en) * 2012-12-28 2013-06-12 中国电力科学研究院 Evaluation index degradation impact analysis method based on analytic hierarchy process
CN103365873A (en) * 2012-03-28 2013-10-23 阿里巴巴集团控股有限公司 Push method and device for business data
CN108830268A (en) * 2018-05-28 2018-11-16 北京小米移动软件有限公司 Content acquisition method, device, terminal and storage medium
CN109150992A (en) * 2018-07-27 2019-01-04 深圳Tcl数字技术有限公司 Synchronization drawing practice, device, readable storage medium storing program for executing and system based on Android

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1368683A (en) * 2001-02-02 2002-09-11 英业达股份有限公司 A Method of Fault Tolerance Using Synchronized Directories
US20030212792A1 (en) * 2002-05-10 2003-11-13 Silicon Graphics, Inc. Real-time storage area network
CN1467642A (en) * 2002-07-09 2004-01-14 ��ʿͨ��ʽ���� Data Protection Procedures and Data Protection Methods
CN101599011A (en) * 2008-06-05 2009-12-09 北京书生国际信息技术有限公司 Document processing system and method
CN103365873A (en) * 2012-03-28 2013-10-23 阿里巴巴集团控股有限公司 Push method and device for business data
CN103150684A (en) * 2012-12-28 2013-06-12 中国电力科学研究院 Evaluation index degradation impact analysis method based on analytic hierarchy process
CN108830268A (en) * 2018-05-28 2018-11-16 北京小米移动软件有限公司 Content acquisition method, device, terminal and storage medium
CN109150992A (en) * 2018-07-27 2019-01-04 深圳Tcl数字技术有限公司 Synchronization drawing practice, device, readable storage medium storing program for executing and system based on Android

Also Published As

Publication number Publication date
CN110147334B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN111178012A (en) Form rendering method, device and equipment and storage medium
CN109614061B (en) Display method and terminal
CN109408172A (en) A kind of processing method and terminal device of application program
CN103279288A (en) Method, device and terminal units for transmitting data
CN107748640B (en) Screen-off display method and mobile terminal
CN104166646B (en) A kind of method and apparatus for inputting uniform resource locator
US11392267B2 (en) Icon display control method and terminal
WO2020192322A1 (en) Display method and terminal device
CN109871358A (en) A management method and terminal device
CN109327672A (en) A video call method and terminal
CN109085968A (en) A kind of screenshotss method and terminal device
CN110012152A (en) A kind of interface display method and terminal device
CN110580163B (en) Method and device for manufacturing pendant through template and storage equipment
CN109117054A (en) A kind of display control method and terminal
CN109745699A (en) A method and terminal device for responding to touch operation
CN109491632A (en) A kind of resource sharing method and terminal
WO2020192662A1 (en) Operation method and terminal device
CN108052356A (en) A kind of method and terminal device for starting calculator
CN110442361A (en) A kind of gray scale dissemination method, device and electronic equipment
CN110413639A (en) Data check method and device, electronic equipment and computer readable storage medium
CN109783722A (en) A kind of content outputting method and terminal device
CN109032699A (en) A kind of method and terminal for modifying application environment variable
CN109284146A (en) A kind of light application opening method and mobile terminal
CN109062477A (en) A kind of input method and terminal
CN108924357A (en) A kind of method, apparatus and terminal that adjustment terminal desktop is shown

Legal Events

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