CN101355548A - Method and system for processing terminal data on PC side - Google Patents
Method and system for processing terminal data on PC side Download PDFInfo
- Publication number
- CN101355548A CN101355548A CNA200810216089XA CN200810216089A CN101355548A CN 101355548 A CN101355548 A CN 101355548A CN A200810216089X A CNA200810216089X A CN A200810216089XA CN 200810216089 A CN200810216089 A CN 200810216089A CN 101355548 A CN101355548 A CN 101355548A
- Authority
- CN
- China
- Prior art keywords
- terminal data
- data
- terminal
- module
- stored
- 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.)
- Pending
Links
Images
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a method and a system for processing terminal data by the PC side. The method comprises the following: the terminal data on the PC side and in a mobile terminal are generated as a uniform target to be stored; according to the operation of a user, the corresponding operation of the terminal data is completed; and the information after operation is displayed. The system for processing the terminal data by the PC part comprises a UI module used for interacting with a user, a persistence layer module used for storing the terminal data on the PC part and in the mobile terminal, and a service layer module used for processing the terminal data stored in the persistence layer module and for responding to the operation of the user as well as for performing the data interaction with the UI module and the persistence layer module. The method and the system increases the speed for reading and writing as well as searching the terminal data when the terminal data is processed on the PC, improves the utilization rate of the sources of the system, and facilitates the extension of the service on the PC side.
Description
Technical field
The present invention relates to field of mobile communication and other IT field, especially relate to processing method and the system of a kind of PC side terminal data.
Background technology
Along with the fast development of 3G network, the user has not only proposed high request to mobile network's traditional voice service, and mobile network's wireless data service is also more and more paid attention to.Wireless data service is closely-related with the PC application, and therefore, the function that the user can provide the PC side has also had more and more higher requirement.
At present, the method that has a kind of PC side commonly used that terminal data is handled.Fig. 1 is the realization block diagram of this method.Its specific implementation is: the entire process framework is divided into 2 layers: UI (User Interface, user interface) layer and persistent layer.Wherein, persistent layer memory mobile terminal and PC go up the terminal data (as: telephone directory information, short message etc.) of storage.When the UI layer used terminal data, needing to distinguish be from data on the portable terminal or the data on the PC, used different modes directly to read portable terminal then or PC goes up the terminal data of storage, gave the UI layer again and showed.The UI layer is directly handled mutual with persistent layer, and promptly direct control is stored in the terminal data on portable terminal and the PC respectively, needs a large amount of I/O operations.Simultaneously, the UI layer is coupled Presentation Function and service processing function, wants to realize the loose coupling of UI display logic and business processing logic, just the Business Processing code must be extracted from the UI reveal codes.
This method has following shortcoming:
At first, the UI layer needs constantly mutual with the terminal data that is stored on portable terminal and the PC, can the more system resource that expends.
Secondly, the display logic of UI layer and the coupling of business processing logic height are unfavorable for professional expansion and code maintenance.
Summary of the invention
Technical problem to be solved by this invention provides the method that a kind of PC side is handled terminal data, when solving on PC the processing terminal data, read and write and search the particular terminal data more time-consuming, expend than multi-system resource; And the PC side business is expanded, the problem of code maintenance difficulty.
For achieving the above object, the invention provides the processing method of a kind of PC side to terminal data, this method comprises:
Step 1, the object that the generation of the terminal data in PC side and the portable terminal is unified are also preserved;
Step 2, according to user's operation, finish described terminal data operated accordingly;
Information behind step 3, the display operation.
Further, the terminal data in PC side and the portable terminal being generated unified object specifically comprises:
The class of definition terminal data is denoted as same class with the terminal data of same type in PC side and the portable terminal;
Read the terminal data in described PC side and the portable terminal, and every terminal data record is generated corresponding object, and preserve this object.
Further, this PC side indicates every terminal data record to the processing method of terminal data with unique sign.
Further, this PC side indicates from the terminal data in PC side and the portable terminal with the sign difference the processing method of terminal data.
Further, this PC side is to the processing method of terminal data, and the terminal data of PC side is stored with the XML form.
Another object of the present invention is to provide the treatment system of a kind of PC side to terminal data, this system comprises:
The UI module is used for carrying out alternately with the user;
The persistent layer module is used for storing the terminal data of PC side and portable terminal, it is characterized in that, also comprises:
The operation layer module is used to handle the terminal data that is stored in the persistent layer module, and response user operation is carried out data interaction with described UI module, persistent layer module.
Further, the operation layer module specifically comprises:
Data memory module is used for preserving the treated described terminal data that is stored in persistent layer;
Service Processing Module is used for reading the described terminal data that is stored in persistent layer, terminal data is generated unified object and is kept in the described data memory module; And response user operation, carry out data interaction with described UI module, persistent layer module.
Further, data memory module is the Map container.
Further, in the persistent layer module, the terminal data that is positioned at the PC side is stored with the XML form.
Beneficial effect of the present invention is:
When the PC side needs the operating terminal data, directly read these data, do not need continually reading of data from portable terminal or PC respectively, improved when PC side processing terminal data, the read-write and search the particular terminal data speed, improved resource utilization ratio, improved the UI response efficiency
The present invention separates UI layer Presentation Function and service processing function, is convenient to reusing of professional expansion and code.
The present invention is applicable to the occasion at the terminal data of PC side operate wireless data terminal, provides a kind of succinct, high-efficiency method to realize mutual with the user.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the functional block diagram of the present PC side processing terminal data of using always.
Fig. 2 shows the block diagram of PC side according to the present invention to the treatment system of terminal data;
Fig. 3 shows the process flow figure of PC side according to the present invention to terminal data;
Fig. 4 shows PC side according to the embodiment of the invention to telephone directory information process flow figure.
Embodiment
Below in conjunction with accompanying drawing to the present invention preferred embodiment be described in further detail, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 2 shows the block diagram of PC side according to the present invention to the treatment system of terminal data.
With reference to Fig. 2, a kind of system that terminal data is handled in the realization of PC side is provided, it comprises:
UI module 210 is the mutual of only processing and user, comprise the display terminal data, call operation layer module corresponding method after user's action simply judged and realize the operation that the user needs and make response, necessary prompting is carried out in some misoperations of user.
Operation layer module 220 is used to handle all business, and as hinge, it obtains terminal data from the persistent layer module, and does and give the UI layer after certain processing and go to show.When the initialization of PC side, the operation layer module reads the terminal data in the persistent layer, generates unified object, and it is stored.After the initialization of PC side software finished, the operation layer module realized the terminal data that the request of UI module is stored by read operation.Operation layer need be judged the terminal data object of being stored, and determines the object that can not duplicate.
Persistent layer module 230 is used for the terminal data 231 of memory mobile terminal and the terminal data 232 on the PC side, and persistent layer only produces mutual, directly not mutual with the UI module with the operation layer module.
Wherein, the operation layer module specifically comprises Service Processing Module 222 and data memory module 221 again.Wherein,
Service Processing Module is used for when the initialization of PC side, and the operation layer module reads the terminal data in the persistent layer, generates unified object, and it is stored in data memory module.The unified object of concrete generation comprises: the class that at first defines terminal data, dissimilar terminal data in PC side and the portable terminal is represented with different classes, such as: the telephone directory information that will be stored in the PC side indicates with same class with the telephone directory information that is stored in mobile terminal side, and the user's short message information that is stored in the PC side is indicated with same class with the user's short message information that is stored in mobile terminal side.Read the terminal data in described PC side and the portable terminal then, and every terminal data record is generated corresponding object, and preserve this object.
Simultaneously, Service Processing Module also is used to respond UI layer module and transmits next user instruction, the operating data memory module, and required terminal data is read in inquiry, and terminal data is operated accordingly.Wherein, at different user operation, Service Processing Module reads the terminal data that is stored in the data memory module or directly to the terminal data that is stored in persistent layer and operate on it, as: add deletion terminal data etc.
Data memory module is used for when the initialization of PC side, and preservation process operation layer module reads the terminal data in the persistent layer, and terminal data generates unified object.
Wherein, when adding terminal data, Mr. Ying becomes the object of corresponding data, adds terminal data toward persistent layer then, if operate successfully then upgrade data memory module, if fail then point out the UI layer to field feedback; Deletion is during terminal data, according to user's indication, earlier on the deletion portable terminal or the terminal data in the PC side, delete successfully after, the corresponding information in the deleted data memory module again is if fail then point out the UI module to field feedback.
Above-mentioned layered approach is rationally separated whole PC side to the module layering of respectively forming of the treatment system of terminal data, makes each functions of modules clear, and each intermodule loose coupling is convenient to code and is changed and reuse.
Fig. 3 shows the process chart of PC side according to the present invention to terminal data.
With reference to Fig. 3, a kind of method of terminal data being handled in the realization of PC side is provided, it may further comprise the steps:
Terminal data in PC side and the portable terminal is generated unified object and preservation; And
According to user's operation, finish described terminal data is operated accordingly.
Information behind the display operation.
The method according to this invention, when the terminal data in PC side and the portable terminal is generated unified object, at first define the class of terminal data, dissimilar terminal data in PC side and the portable terminal is represented with different classes, such as: the telephone directory information that will be stored in the PC side indicates with same class with the telephone directory information that is stored in mobile terminal side, and the user's short message information that is stored in the PC side is indicated with same class with the user's short message information that is stored in mobile terminal side.Read the terminal data in described PC side and the portable terminal then, and every terminal data record is generated corresponding object, and preserve this object.
When terminal data generates unified object, can also comprise, indicate every terminal data record with unique sign.
When terminal data generates unified object, can also comprise, indicate the terminal data that comes from PC side and the portable terminal with the sign difference.
Fig. 4 shows according to the PC side of the embodiment of the invention flow chart to the telephone directory information processing method.
With reference to Fig. 4, the method that the PC side is handled telephone directory information can may further comprise the steps:
In the present embodiment, the terminal data of processing is the phone directory data, contains a phone directory that only comprises contact person and telephone number in SIM (Subscriber Identity Model, the subscriber identification module) card that the portable terminal product uses usually.And also should store the phone directory that comprises many attributes (such as home phone number, Email etc.) on the PC side software.Among this enforcement Lee, the phone directory data of PC side are stored in the persistent layer with XML formatted file form, and the data memory module in the operation layer is realized by the MAP container.
Step 301, in UI module initialization process, read mobile terminal side phone directory data from mobile terminal side by the AT order respectively, read the PC phone directory data of storing with the XML formatted file from the PC side, if the process of reading is made mistakes, then mistake is reported the operation layer resume module;
Whether step 302 generates the phone directory object from portable terminal according to the phone directory data.Because phone directory has only two of name and telephone numbers in the portable terminal, and PC side phone directory also has other extender among the PC except above-mentioned two, and the phone directory object that herein generates has adopted unified processing, all phone directory objects all have whole, thereby for special number book of mobile terminal data, then its extender is set to sky, and determines whether that by the isSim attribute of phone directory object these phone directory data are from portable terminal.
Step 303, the isSIM attribute that comes from the telephone directory information of SIM card is set to True, and the isSIM attribute that comes from the telephone directory information of PC side is set to False.
Step 304 is added the next unique expression of id attribute to number book of mobile terminal object and PC side phone directory object.
Step 305 is added the phone directory object that generates in the Map container.Id attribute with the phone directory object during interpolation is the key of Map container, with this value as the Map container of phone directory object.
Wherein, step 302 is mixed to 305 and is carried out, and promptly generates to be about to it behind the phone directory object and to add in the Map container, rather than just adds after waiting all objects all to generate;
Step 304, UI module read the phone directory object container and show.This step reads phone directory object in the Map container by the operation of operation layer module, responds the action of UI.To the data that read, give the UI module after operation layer is handled according to the requirement of UI module and show;
Delete the implementation method of certain bar phone directory recording:
Step 314 is deleted successfully back notice UI module and is refreshed and be shown to the user.
Add the implementation method of certain bar phone directory recording:
Step 311 judges whether there has been the record that will add in the Map container.If there is identical record, then operation layer module and UI module are carried out alternately, by the existing identical phone directory recording of UI module prompting user, and if there is no identical recordings, then execution in step 312.
Step 308 is added successfully back notice UI module and is refreshed and be shown to the user, offers the up-to-date phone directory state of user.
Revise the phone directory recording operation similarly.
The UI module is when the response user operates in the foregoing description, calling the operation layer module operates accordingly, if operating process makes mistakes, then directly mistake is reported the UI module by the operation layer module, the UI module feeds back to the different informations of user according to type of error.The robustness of UI and good interaction have been guaranteed like this.
The above only is preferred embodiment of the present invention; be not limited to the present invention; should be understood that; for the person of ordinary skill of the art; every any modification of being done within the spirit and principles in the present invention, be equal to and replace or improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1. a PC side is characterized in that to the processing method of terminal data this method comprises:
Step 1, the object that the generation of the terminal data in PC side and the portable terminal is unified are also preserved;
Step 2, according to user's operation, finish described terminal data operated accordingly;
Information behind step 3, the display operation.
2. PC side according to claim 1 is characterized in that the processing method of terminal data, in the described step 1 terminal data in PC side and the portable terminal is generated unified object and specifically comprises:
The class of definition terminal data is denoted as same class with the terminal data of same type in PC side and the portable terminal;
Read the terminal data in described PC side and the portable terminal, and every terminal data record is generated corresponding object, and preserve this object.
3, PC side according to claim 2 is characterized in that the processing method of terminal data, indicates every terminal data record with unique sign.
4, PC side according to claim 3 is characterized in that the processing method of terminal data, indicates from the terminal data in PC side and the portable terminal with the sign difference.
5, according to the processing method of the described PC side of claim 1 to 4, it is characterized in that the terminal data of described PC side is stored with the XML form to terminal data.
6, a kind of PC side comprises the treatment system of terminal data:
The UI module is used for carrying out alternately with the user;
The persistent layer module is used for storing the terminal data of PC side and portable terminal, it is characterized in that, also comprises:
The operation layer module is used to handle the terminal data that is stored in the persistent layer module, and response user operation is carried out data interaction with described UI module, persistent layer module.
7, PC side according to claim 6 is characterized in that the treatment system of terminal data, and described operation layer module specifically comprises:
Data memory module is used for preserving the treated described terminal data that is stored in persistent layer;
Service Processing Module is used for reading the described terminal data that is stored in persistent layer, terminal data is generated unified object and is kept in the described data memory module; And response user operation, carry out data interaction with described UI module, persistent layer module.
8, PC side according to claim 7 is characterized in that the treatment system of terminal data, and described data memory module is the Map container.
According to the treatment system of each described PC side of claim 6 to 8, it is characterized in that 9, in the described persistent layer module, the terminal data that is positioned at the PC side is stored with the XML form to terminal data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200810216089XA CN101355548A (en) | 2008-09-12 | 2008-09-12 | Method and system for processing terminal data on PC side |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200810216089XA CN101355548A (en) | 2008-09-12 | 2008-09-12 | Method and system for processing terminal data on PC side |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101355548A true CN101355548A (en) | 2009-01-28 |
Family
ID=40308143
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200810216089XA Pending CN101355548A (en) | 2008-09-12 | 2008-09-12 | Method and system for processing terminal data on PC side |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101355548A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102185925A (en) * | 2011-05-18 | 2011-09-14 | 中兴通讯股份有限公司 | System, terminal and method for supporting terminal data processing of computer |
CN102892036A (en) * | 2012-06-29 | 2013-01-23 | 广东九联科技股份有限公司 | Service interaction set-top box-based method |
CN105022966A (en) * | 2015-07-21 | 2015-11-04 | 郭俊雄 | Database data encryption and decryption method and system |
CN110417978A (en) * | 2019-07-24 | 2019-11-05 | 广东商路信息科技有限公司 | Menu configuration method, device, equipment and storage medium |
CN110427213A (en) * | 2019-07-29 | 2019-11-08 | 厦门四信通信科技有限公司 | Method, device, equipment and storage medium for realizing intelligent configuration software |
-
2008
- 2008-09-12 CN CNA200810216089XA patent/CN101355548A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102185925A (en) * | 2011-05-18 | 2011-09-14 | 中兴通讯股份有限公司 | System, terminal and method for supporting terminal data processing of computer |
CN102185925B (en) * | 2011-05-18 | 2016-06-22 | 中兴通讯股份有限公司 | A kind of support by the system of computer disposal terminal data, terminal and method |
CN102892036A (en) * | 2012-06-29 | 2013-01-23 | 广东九联科技股份有限公司 | Service interaction set-top box-based method |
CN105022966A (en) * | 2015-07-21 | 2015-11-04 | 郭俊雄 | Database data encryption and decryption method and system |
CN105022966B (en) * | 2015-07-21 | 2018-11-23 | 郭俊雄 | Database data encryption decryption method and system |
CN110417978A (en) * | 2019-07-24 | 2019-11-05 | 广东商路信息科技有限公司 | Menu configuration method, device, equipment and storage medium |
CN110427213A (en) * | 2019-07-29 | 2019-11-08 | 厦门四信通信科技有限公司 | Method, device, equipment and storage medium for realizing intelligent configuration software |
CN110427213B (en) * | 2019-07-29 | 2022-05-13 | 厦门四信通信科技有限公司 | Method, device, equipment and storage medium for realizing intelligent configuration software |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101882092B (en) | Management method and device for application program | |
CN101454988B (en) | Method and system of user-interests driven launching pad of mobile applications | |
CN100511132C (en) | Method and system for laying out and accessing modules of user interface | |
CN101102565B (en) | A processing method, device and equipment of user data in communication terminal | |
CN101923434B (en) | Type setting method and system of application icon and mobile terminal | |
CN101416159B (en) | Communication terminal, user data transferring system and user data transferring method | |
CN101789998A (en) | Method for displaying scene desktop of mobile terminal and mobile terminal | |
CN101355548A (en) | Method and system for processing terminal data on PC side | |
CN101252702A (en) | Mobile terminal, system and control method of unstructured supplementary data traffic | |
CN101110837A (en) | System and method for implementing mobile phone blog | |
CN101763256A (en) | Expansion application method, device and business system of business objects | |
CN109389299A (en) | Work process flow dispositions method, device, computer equipment and storage medium | |
JP2007206895A (en) | Ic card | |
CN102111487A (en) | Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card | |
CN102045426A (en) | Mobile terminal and method for editing contact information thereof | |
CN102932960A (en) | Exchange system and exchange method for electronic business cards | |
CN103678677A (en) | Operation method and system of intelligent terminal | |
CN101207872B (en) | Method and system for storing mobile telephone book | |
CN101287254B (en) | Management method and system for short message | |
WO2012053194A1 (en) | Subscriber identity module and terminal device | |
CN114201103A (en) | Data input method and terminal equipment | |
CN102055833A (en) | Method of event record storage for low-end mobile phone by using SIM card | |
CN101106758B (en) | Service subscription method and mobile terminal | |
KR100606069B1 (en) | Method for managing database in complex phone for gam/gprs and the complex phone | |
CN102332021B (en) | Device and method for managing contact list of communication device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20090128 |