Summary of the invention
The technical problem to be solved in the present invention provides a kind of portable terminal and data maintaining method thereof, thereby simplifies user's operation in the complicated applications layoutprocedure.
In order to address the above problem, the invention provides a kind of method of safeguarding data in mobile phone, comprising:
The user initiates the data maintenance request by browser of mobile terminal, and portable terminal is according to the type of this request, the data of application corresponding module is inquired about or is upgraded operation, and operating result is turned back to described user by described browser.
Further, said method specifically is divided into following steps:
After described browser of mobile terminal linked with local service agency foundation, the user initiated the data maintenance request by described browser of mobile terminal to described local service agency;
After described local service agency receives described request, this request is resolved and parameter extraction, and judge the type of described request according to analysis result;
If described request is a query requests, then according to the parameter of being extracted, in the data of application corresponding module, carries out query manipulation, and Query Result is returned to described user by browser of mobile terminal;
If described request for submitting request to, then according to the parameter of being extracted, is upgraded the data of application corresponding module, and will upgrade the result and return to described user by browser of mobile terminal.
Wherein, the data of described application module comprise the configuration data and/or the deal with data of application module.
The data of described application module are kept among the described local service agency or in described each application module, its preservation form is database, file or internal memory.
Described renewal is operating as regularly to be upgraded or immediate updating, and described renewal result is for upgrading successfully or upgrade failure.
The invention also discloses a kind of portable terminal, at least comprise various application modules, browser, an and local service agency who links to each other with described various application modules and browser respectively, this local service agency comprises a Central Control Module, and the network protocol module that links to each other with this Central Control Module respectively, webpage parsing module and group of web bag module, wherein
Central Control Module: be used to judge request type, and the data of application corresponding module are inquired about or upgrade operation, call other module and finish the data maintenance operation according to request type;
Network protocol module: be used to receive the described data maintenance request that described browser sends;
The webpage parsing module: be used for described data maintenance requested webpage is resolved, and parameter extraction;
Group of web bag module: be used for generating response page and sending to described browser according to described data maintenance processing of request result.
Further, in the above-mentioned terminal, the described request type is the query requests type or submits request type to;
Described Central Control Module judges that then the parameter of being extracted according to described webpage parsing module was carried out query manipulation in the data of application corresponding module, and Query Result is sent to described group of web bag module when described request was query requests;
Described request is when submitting request to, and then the parameter of being extracted according to described webpage parsing module is upgraded the data of application corresponding module, and will upgrade the result and send to described group of web bag module.
Wherein, the data of described application module comprise the configuration data and/or the deal with data of application module.
The data of described application module are kept among the described local service agency or in described each application module, its preservation form is database, file or internal memory.
Further, in the above-mentioned terminal, described network protocol module, webpage parsing module and group of web bag module are http protocol module, html web page parsing module and html web page group bag module, perhaps wap protocol module, WML webpage parsing module and WML group of web bag module.
Technical solution of the present invention is convenient to the familiar and understanding of user, has simplified the operation easier of complicated interface; For the mobile phone development merchant, technical solution of the present invention has been simplified the workload that UI designs and develops, in addition, the technical solution of the present invention versatility is high, and than the UI that depends on platform specific more the operation interface of hommization can finish the increasing of data, delete, change, operation such as inquiry, and then promoted availability and practicality.
Embodiment
Below in conjunction with the drawings and the specific embodiments technical solution of the present invention is described in further detail.
A kind of portable terminal, at least comprise a plurality of application modules, browser and the local service agency who is used for the data of each application module are carried out attended operation, wherein, the data of each application module comprise configuration data and/or deal with data, this local service agency's concrete formation as shown in Figure 1, comprise a Central Control Module, and the http protocol module that links to each other with this Central Control Module respectively, HTTP webpage parsing module, HTTP group of web bag module and data interface module, wherein, Central Control Module links to each other with each application module by data interface module, and the http protocol module links to each other with browser.Further, the local service agency can also comprise a configuration data memory module (not drawing among the figure).Introduce the effect of each functional module below in detail.
Central Control Module: be used to judge request type, and carry out local service agency's flow scheduling control, promptly call the different logical process that other module is finished according to request type;
Http protocol module: be used for the reception of the intercepting of HTTP link, request msg, the parsing of HTTP message, the transmission of operation response, the group bag of HTTP message etc.;
Html web page parsing module: be used for parsing, Parameter Extraction to the HTML SGML;
Html web page group bag module: the page that is used for generating response according to the request result;
Configuration data memory module: the configuration data that is used to store each application module; In other embodiments, also can omit this module, and be kept at configuration data in the application corresponding module or in the portable terminal internal memory.
Data interface module: be used for the configuration data memory module, with the data interaction of various application modules, present embodiment can provide various inquiry approach for the cellphone subscriber by data-interface, and accurately coupling and fuzzy matching; Support text box, list box, list etc.; Wherein the data-interface form can be indirect interface forms such as database, file, also can be direct interface forms such as the communication interface used of application module and local service agency, global variable.
Certainly, because the difference of the kind of present browser of mobile terminal (browser of mobile terminal comprises HTTP or WAP at present), also http protocol module, HTTP webpage parsing module and HTTP group of web bag module can be replaced with wap protocol module, WML webpage parsing module and WML group of web bag module in other embodiments.
Above-mentioned portable terminal has the function to various application module data maintenances, wherein, data maintenance comprises the data configuration to each application module, the data that each application module has been disposed increase, delete, change and/or inquire about and the deal with data of each application module is increased, delete, change and/or operation such as inquiry, this attended operation can be directed to intelligent incoming call handling, telephone program, application such as note, wherein, data configuration to intelligent incoming call handling comprises the classification chart of checking numbers, time period is provided with table, the operation of call processing method table, wherein, the physical store of the various data messages of required maintenance can be selected embedded database storage mode or document storage mode for use.Above-mentioned data maintenance process specifically is divided into following steps, as shown in Figure 2:
Step 201: the user opens the browser of portable terminal, and links with local service agency foundation;
In this step, the collection of cellphone subscriber by browser presets that configuration link URL (URL(uniform resource locator), Uniform Resource Location) is selected in link or can set up with the local service agency in the address that address field is directly imported the local service agency and link.
Step 202: the local service agency will dispose homepage and send browser of mobile terminal to;
Step 203: after the user receives the configuration homepage,, initiate the data maintenance request by the browser of mobile terminal navigation;
In this step, the data maintenance request comprises the requests such as data query, Data Update and data configuration to each application module of portable terminal, and for example, the user can inquire about the data of application modules such as cell phone incoming call daily record, the daily record of automatic incoming call result; Further, configuration homepage face can also provide the hyperlink of " page up ", " following one page " and other navigation for the user and corresponding shortcut mode of operation is provided.
Step 204: local service agency's Http protocol module is resolved and parameter extraction request message by HTTP webpage parsing module, and is notified Central Control Module with analysis result after receiving request from browser of mobile terminal;
In this step, also the parameter that HTTP webpage parsing module can be extracted is buffered in the internal memory.
Step 205: if Central Control Module is judged Client-initiated request inquiry (Get) request according to the analysis result of receiving, then enterstep 206,, then enterstep 208 if submit (Post) request to;
In the present embodiment, Central Control Module is judged the Client-initiated request type according to the method name of HTTP, and promptly GET is a query requests; POST is for submitting request to.
Step 206: Central Control Module by data interface module with extraction query argument corresponding database, file or internal memory in carry out query manipulation;
In this step, refer to that the data of the application module of the portable terminal that query argument is related, these data can be kept among the local service agency, perhaps in each application module with extraction query argument corresponding database, file or internal memory.
Step 207: after Central Control Module inquires the result, Query Result is generated the Html page, and return to browser of mobile terminal, process ends by http protocol module generation http response message (Http Ack) by HTTP group of web bag module;
Step 208: Central Control Module extracts the message parameter by HTTP webpage parsing module, and by data-interface with each parameter update of being extracted in corresponding database or file, wherein, upgrade operation and can regularly carry out or carry out immediately;
In this step, refer to that the data of the application module of the portable terminal that the parameter of being extracted is related, these data can be kept among the local service agency, perhaps in each application module with institute extracting parameter corresponding database, file or internal memory.
Step 209:HTTP group of web bag module will be submitted to successfully or the result that fails generates the Html page, and generate http response message (Http Ack) by the http protocol module and return to browser of mobile terminal, process ends.
The foregoing description is applicable to the portable terminal of any standard, comprises GSM/WCDMA/TD-SCDMA/CDMA2000 single mode or multi mode terminal, also is applicable to any portable terminal simultaneously, comprises mobile phone, smart mobile phone, PDA, PPC etc.
From the foregoing description as can be seen technical solution of the present invention carry browser based on portable terminal and finish maintenance day regular data such as configuration information, daily record, be familiar with and understanding by the user easily, simplified the operation easier of complicated interface, and the workload designed and developed of UI.In addition, the standard of browser of mobile terminal interface (Http-Html/Wap-Wml) has guaranteed the versatility of technical solution of the present invention, thereby can provide than the UI that depends on platform specific more the operation interface of hommization finish to data increase, delete, change, inquiry etc., promote availability and practicality.
The present invention also can have in other multiple examples; under the situation that does not deviate from spirit of the present invention and essence thereof; those skilled in the art can make corresponding change and distortion according to the present invention, but these corresponding changes and distortion all should belong within the protection range of the appended claim of the present invention.