Summary of the invention
The object of the invention is to provide a kind of communicator contacts list management devices and method, in order to solve in prior art when user checks contact person, all need to enter phone directory and start to search from list head, thereby having had a strong impact on the problem of the efficiency used and user's experience.
For achieving the above object, realizing communicator contacts list management devices of the present invention comprises:
Operational administrative module, the various operations for leading subscriber to contact person;
List management module, for managing the display list of phone directory, comprises in management phone directory lists each display items information and shows order during phone directory lists;
Managing contact information module, for managing phone directory contact person's every terms of information;
When user operates contact person by operational administrative module, managing contact information module provides associated person information to operational administrative module, simultaneously when list management module shows phone directory lists, managing contact information module provides the information of every demonstration to list management module, and when user operates associated person information, managing contact information module is recorded at the position in phone directory lists this contact person, and export to list management module, the order when adjustment of list management module shows phone directory lists, using this contact location as the beginning item again showing, when user again enters phone directory lists or associated person information is carried out to various operation, list management module by managing contact information module obtain last time use position information of contact and according to above-mentioned positional information calculation list display position, list management module is obtained associated person information in corresponding display items according to display position afterwards, and need to show that contacts entries item information is put into and show in queue every, last list management module display list, and by last time use contacts with highlighted demonstration.
For achieving the above object, the invention provides a kind of method of utilizing above-mentioned communicator contacts list management devices to manage communicator contacts list, the method comprises the steps:
Step 1: when user operates contact person by operational administrative module, managing contact information module provides associated person information to operational administrative module, managing contact information module is recorded at the position in phone directory lists this contact person simultaneously, and exports to list management module;
Step 2: the order when adjustment of list management module shows phone directory lists, using this contact location as the beginning item again showing, when user again enters phone directory lists or associated person information is carried out to various operation, list management module by managing contact information module obtain last time use position information of contact and according to above-mentioned positional information calculation list display position, list management module is obtained associated person information in corresponding display items according to display position afterwards, and need to show that contacts entries item information is put into and show in queue every, last list management module display list, and by last time use contacts with highlighted demonstration.
According to above-mentioned principal character, the user of operational administrative module management comprises contact person's various operations: add contact person, edit contact, check contact person and use contact person etc., also comprise that user enters the operation of phone directory lists simultaneously.
According to above-mentioned principal character, in the phone directory of managing contact information module management, contact person's every terms of information comprises the preservation of every terms of information in contact person and reads contact person's every terms of information.
According to above-mentioned principal character, managing contact information module is when providing this associated person information, by this contact person in list under the information recording of position and be saved in a variable, this variable save is in the file system of communicator, when this variable update, the simultaneously variable in updating file system, when communication apparatus opening initialization, positional information is read out from file system and assignment to this variable.
Compared with prior art, the present invention by user's last time used contact location remember, when user enters phone list again, the position showing in list directly jumps to used contact location last time, and last time, used contact person was with highlighted demonstration, user can directly operate this contact person, thereby facilitates use and the management of user to telephone directory information, has improved the seek rate of associated person information.
Embodiment
Below in conjunction with accompanying drawing, to implementing the specific embodiment of the present invention, be elaborated.
Refer to shown in Fig. 1, for implementing the structured flowchart of communicator contacts list management devices of the present invention, implement communicator contacts list management devices of the present invention and comprise: operational administrative module 10, list management module 12, managing contact information module 11.
Operational administrative module 10: be mainly in charge of user in the various operations to contact person, comprise: add contact person, edit contact, check contact person and use contact person etc., meanwhile, also comprise that user enters the operation of phone directory lists.
List management module 12: be mainly in charge of the display list of phone directory, comprise each display items information in management phone directory lists, and show during phone directory lists, show in the display device 2 of communicator according to the order of defined.
Managing contact information module 11: the every terms of information that is mainly contact person in all phone directories of management, comprise the preservation of every terms of information in contact person, and read contact person's every terms of information, when user operates contact person by operational administrative module 10, managing contact information module 11 provides associated person information to operational administrative module 10, simultaneously, when list management module 12 shows phone directory lists, managing contact information module 11 provides the information of every demonstration to list management module 12.The most important thing is, when user operates associated person information, managing contact information module 11 is recorded at the position in phone directory lists this contact person, and exports to list management module 12.
In the specific implementation, some key data structure that 1. the present invention occurs in force comprise:
1)PHB_ENTRY_STRUCT?PhoneBook[]
This data structure is mainly the displayed entries (can be name, number etc.) for depositing all contact persons, each member in array is corresponding to a contact person's displayed entries, while showing phone directory lists, it (is also by according to the associated person information that shows diverse location in this array in the present invention that mode by list of content in this array is shown, reach the effect of the position that jumps to operation contact last time), list management module 12 these arrays of management.
2)U16g_phb_name_index[MAX_PHB_ENTRIES]
This is an overall array, MAX_PHB_ENTRIES is all maximum contact persons' quantity, this array is mainly the physical storage locations (namely each contact person's unique ID) for storing each contact person, and the order of this array contact person's logical order (the namely order in contact person's display list: from g_phb_name_index [ 0 ] to g_phb_name_index [ MAX_PHB_ENTRIES ]) just; In the time need to upgrading certain contact person's position, the order of the physical location that only need to adjust this contact person in g_phb_name_index [ ];
Above-mentioned just as a kind of implementation exemplifying, consistent as long as substantially realizing principle, also can adopt other close or similar modes, as storage of array is changed into list storage.
2. record and the use of operation position information of contact
In the use procedure of communication apparatus, user can pass through very multi-mode operation or use associated person information, as user enters phone directory lists, checks associated person information, edit contact information, adds associated person information etc.; Or in other application, use associated person information, during as transmission note, in contacts list, select in sender's number, multimedia message, the number in content to be saved in phone directory and by bluetooth and to be received after vcard, be directly saved in phone directory.Operational administrative module 10 provides corresponding interface for these operations, as obtains contact person's information interface, edit contact information interface, and preserve associated person information interface.And, when needs are used associated person information, to managing contact information module 11, obtain the information of respective contacts, because operational administrative module 10 is when operating associated person information, all need to obtain to managing contact information module 11 this contact person's information, therefore managing contact information module 11, when this associated person information is provided, under the information recording of position, is saved in this contact person in a variable in list.As: user is after the complete note of note interface editing, in phone directory, select the destination Mobile Station International ISDN Number of corresponding contact number as note, it is the selection number interface in SMS module (not shown) call operation administration module 10, operational administrative module 10 contact person's of the selection in list according to user position, according to this position, to managing contact information module 11, obtain this contact person's number, managing contact information module 11 returns to operational administrative module 10 by this contact number, simultaneously, managing contact information module 11 by this contact person in phone directory lists in position information recording to variable (as int last_op_contact_posistion), operational administrative module 10 returns to this number to SMS module again.Like this, in SMS module, select after contact number, this contact person is also just recorded by managing contact information module 11 position in phone directory lists.
For the positional information that operated contact person last time can be preserved after shutdown, can in the file system of communication apparatus, preserve this location variable, when this variable update, the variable in updating file system simultaneously.When communication apparatus opening initialization, positional information is read out from file system, assignment is to location variable (int last_op_contact_posistion).Like this, even communication apparatus shutdown, the position that operated contact person last time also can preserve, and while starting shooting so that next, continues to use.
3. phone directory lists management
List management module 12 is mainly in charge of the display list of phone directory, comprises each display items information in management phone directory lists, and shows during phone directory lists, according to the order of defined, shows.Phone directory lists is when showing, on the screen of communication apparatus, synchronization can only show several associated person informations, when list is during in scroll-up/down, and the position that list management module 12 constantly shows according to the current list, the displaying contents in refresh list.Therefore, in the present invention, the position of the operation contact person that list management module 12 records according to managing contact information module 11 in list, the beginning item using this position as current display list, shows contacts list.As: operating the position of contact person in phone directory lists last time is 28,8 associated person informations in the each display list at most of screen, so, while entering phone directory, phone directory lists starts to show from the 28th of list, and being shown to 35(in list is 28+8-1) record.Like this, phone directory lists is directly shown to the contact person's of operated mistake last time position.It is concrete that to realize details as described below.
The ultimate principle that shows contacts list in phone directory is: the display items corresponding to a contact person of each in list (be both kept at array PhoneBook[] in the content of every), contact person's DISPLAY ORDER and contact person's order in list (be contact person ID U16g_phb_name_index[in array] middle order) corresponding, display list shows the associated person information of some (being generally several entries that can show on screen) at every turn.When list scrolling, display list ceaselessly upgrades the information content of contact person in coordinate position and display items.Operated contact person's positional value the last time of recording according to managing contact information module 11, and can the most multidisplay entry according to screen institute, can draw current need show contact person be in list which, list management module 12 is obtained out from managing contact information module 11 by these associated person informations, and is loaded in list display items.
So, the present invention operated contact person's position last time by memory, so that when enter phone directory lists next time, on screen, shown contact person is the contact person's operated since last time position.
In order to reach above object, only need to be on the realization basis of original phone directory, while entering phone directory lists at every turn, operated contact person's position the last time that list management module 12 records according to managing contact information module 11, calculate the contacts that needs demonstration, the position that list is shown jumps to the contact person's of operation last time position, since last time, operate contact person's position, to the maximum number that shows, the associated person information that needs in list on these positions to show is loaded to the display items in phone directory lists, and show this list, can realize display position and jump to the position that operated contact person last time.So, list management module 12 is when receiving user's operational administrative module 10 and call the operation that enters phone directory lists, start to load content in phone directory lists: each display items in list is updated to the content of displayed entries in its corresponding relationship people, by managing contact information module 11, read items for information corresponding in contact person.
Managing contact information module 11 is also responsible for contact person's information the management such as to store, read, the item that each contact person's packets of information contains has a lot: name, phone number, home number, email address, Business Name, home address etc., in managing contact information module 11, each contact person's information is represented with a structure, in structure, comprise contact person's every terms of information item.All Contacts's structure is all stored in the file system of phone directory, and each contact person's structure has a unique ID, and this ID is the physical storage locations of this contact person in file system namely.Managing contact information module 11 is managed all contacts by the ID of contact person's structure, in the time will editing a contact person, first managing contact information module 11 finds this contact person according to this contact person's ID in file system, and read out every terms of information in contact person's structure, upgrade edit item wherein, finally according to ID, this contact person's structure is stored in the relevant position of ID appointment again.
Managing contact information module 11 by an array (as array PhoneBook[], certainly, also can use other similar modes to store the user profile of all demonstrations) manage all need show associated person informations, associated person information array is when system initialization, and managing contact information module 11 is read all associated person informations that need to show in array (array PhoneBook[]); Certainly, also can be in the process showing, according to the position showing, dynamic load when showing, before i.e. each demonstration, managing contact information module 11 reads out corresponding associated person information in file system, is put in the middle of the correspondence position of associated person information array.
When user enters phone directory lists, list management module 12 needs according to the display items information in the position loaded and displayed lists that calculate (obtain array PhoneBook[] in content), last list operated contact entry since last time and shows, and by the contact person of operation last time with highlighted demonstration (certainly, also can show in other various special modes, as the word with different colours, animation effect etc., object only has one: be exactly by this contact person's difference and other contact persons, just be not described in detail) herein, thereby identify this contact person, be exactly to operate contact person last time, simultaneously, facilitate user directly this contact person to be operated.
Refer to shown in Fig. 2, for implementing the process flow diagram of communicator contacts list management method of the present invention, the method mainly comprises the steps:
Step 1, user enters phone directory lists or associated person information is carried out to various operations (comprise interpolation, edit, check or use associated person information etc., or use associated person information in other application);
Step 2, list management module 12 is obtained the position information of contact using last time by managing contact information module 11; As shown in Figure 3, its concrete steps comprise the flow process that managing contact information module 11 records position information of contact:
A. user uses, edits, adds associated person information by operational administrative module 10;
B. operational administrative module 10 obtains associated person information;
C. managing contact information module 11 records this contact person's positional information.
Step 3, list management module 12 is according to above-mentioned positional information calculation list display position;
Step 4, list management module 12 is obtained associated person information in corresponding display items according to display position;
Step 5, need to show that contacts entries item information is put into show in queue every;
Step 6, list management module 12 display lists, and by last time use contacts with highlighted demonstration.
Compared with prior art, the present invention by user's last time used contact location remember, when user enters phone list again, the position showing in list directly jumps to used contact location last time, and last time, used contact person was with highlighted demonstration, user can directly operate this contact person, thereby facilitates use and the management of user to telephone directory information, has improved the seek rate of associated person information.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection domain of the appended claim of the present invention.