Embodiment
For making purpose of the present invention, technical scheme and beneficial effect clearer,, the present invention is described in further details below in conjunction with execution mode and accompanying drawing.At this, exemplary embodiment of the present invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
Embodiment one:
As shown in Figure 1, be a kind of communication terminal structural representation of the embodiment of the invention, described device 100 comprises as lower unit: as described in communication terminal 100 comprise as lower unit:
Divide set condition determining unit 101, be used for determining the branch set condition of communication terminal information;
Memory cell 102 is used for storing described communication terminal information with the structural data form; Field judging unit 103 is used for judging whether the record of the described communication terminal information of described cell stores has and the described minute corresponding relevant field of set condition;
Retrieves packet unit 104, the record that is used for the described communication terminal information of described field judgment unit judges has and the described minute corresponding relevant field of set condition, then in the record with described communication terminal information, the identical record of information that meets the described relevant field of described minute set condition is classified as same group record;
With the communication terminal information is that associated person information is an example, and when minute set condition was " company ", communication terminal can be classified as same group record as " company " field in the associated person information or the identical record of " enterprise " field information with relevant field in the associated person information.
Information display unit 105 is used for described communication terminal information is presented to the user in the mode that described same group record is arranged in respectively together.
The information block of the communication terminal after information display unit 105 will divide into groups is presented to the user, user friendlyly consults and searches for.
Optionally, please refer to Fig. 3 A and Fig. 3 B, set condition determining unit 101 specifically can be used in described minute: receive the grouping conditional information of user's input, determine described minute set condition according to described grouping conditional information; Or, determine described minute set condition according to the selected instruction of presetting the branch set condition of user; The described branch set condition that presets is the branch set condition that presets in the described communication terminal.
In this optional embodiment, communication terminal can preset some and divide set conditions, selects for the user, makes things convenient for the user to the classification of communication terminal information with search; Also can allow the user import the grouping conditional information, to generate corresponding minute set condition, when associated person information being divided into groups as the user, can be in grouping conditional prompt hurdle input " 13* ", then communication terminal can be searched " telephone number " field in the associated person information, and in, the identical record of information that meets " telephone number " this field of " 13* " this condition is classified as same group record, be about to beginning and be 136 telephone number and be classified as same group record, telephone number with 137 is classified as same group record, and the like.So grouping information can be set neatly, to make things convenient for the user to the classification of information with search.
In a possibility of the present invention, set condition can comprise main set condition and the auxilliary set condition that divides of dividing in described minute; Described field judging unit 103 can comprise: first judging unit 1031 is used for judging whether the record of described communication terminal information has and the corresponding field of described main branch set condition;
Described retrieves packet unit 104 can comprise: first grouped element 1041, the record that is used for judged result at described first judging unit and is described communication terminal information has with described main when dividing corresponding first relevant field of set condition, in the record with described communication terminal information, meet the described main identical record of information of described first relevant field of set condition that divides and be classified as same main group record;
Described field judging unit 103 can also comprise: second judging unit 1032 is used for judging whether the record of described communication terminal information has and the described auxilliary minute corresponding field of set condition;
Described retrieves packet unit 104 can also comprise: second grouped element 1042, when the record that is used for judged result at described second judging unit and is described communication terminal information has second relevant field corresponding with described auxilliary minute set condition, in each described same main group record, the identical record of information that meets described second relevant field of described auxilliary minute set condition is classified as same auxilliary group record;
Described information display unit 105 specifically can be used for described communication terminal information is presented to the user in the mode that described same main group record is arranged in respectively together; Each described same main group record is presented to the user in the mode that described same auxilliary group of information is arranged in respectively together.
In this possibility, divide set condition can have two, main set condition and the auxilliary set condition that divides of dividing, communication terminal information has been undertaken after the grouping by main branch set condition, obtain several main group records, and then main group record divided into groups according to the auxilliary set condition that divides, the information of communication terminal information after by level packet is presented to the user.
Still be that associated person information is that example describes with the communication terminal information, can " company " be the main set condition that divides, and " surname " is the auxilliary set condition that divides, then main group record is the identical record of " company " or " enterprise " field in the associated person information, again main group record is divided into groups by the auxilliary set condition " surname " that divides, then in each main group record, divide into groups by first word of " name " in the associated person information or " title " field, obtain level packet information.
Certainly, similarly, multistage auxilliary minute set condition can be set also, so, can divide into groups step by step to communication terminal information, convenient searching step by step obtains thinking information inquiring.
Optionally, described memory cell 102, specifically can be used for communication terminal information is stored with the form of relation data, the form of storing described structural data comprises relational database, and described relational database is with the database of hiding ID as the major key of the record of described communication terminal information; Described field judging unit 103 specifically can be used for searching according to described hiding ID the record of described communication terminal information, and whether judge in the record of described hiding ID correspondence has and the described minute corresponding relevant field of set condition.102 storages of described memory cell can comprise in the associated person information, short message, message registration information of phone directory one or more as the communication terminal information of major key with the ID that hides: if the associated person information of inquiry phone directory, the described minute set condition that then described minute set condition determining unit determined comprises one or more in surname, sex, company, birthday, the telephone number at least; If short message enquiry information, described minute definite set condition of set condition determining unit comprised sender and/or time of receipt (T of R) at least in then described minute; If inquiring call history information, described minute definite set condition of set condition determining unit comprised contact person and/or conversation date at least in then described minute.
Alternatively, as shown in Figure 4, be the another kind of communication terminal structural representation of the embodiment of the invention.This communication terminal 100 also can comprise query unit 106, is used to receive the Query Information of described minute set condition correspondence of user's input, and the information that inquiry meets the described relevant field of described minute set condition is the record of described Query Information, as Query Result;
Described information display unit 105 also is used for described Query Result is presented to the user.
Import the corresponding Query Information " A company " of branch set condition " company " as the user, then communicating terminal can be found the record of the information of " company " or " enterprise " field in the associated person information for " A company ", and presents to the user.
As shown in Figure 2, be the method flow diagram of the embodiment of the invention based on the communication terminal information grouping of Fig. 1, described method comprises the steps:
Step 201 is determined the branch set condition of communication terminal information.
The branch set condition of described definite communication terminal information is specifically as follows: receive the grouping conditional information of user's input, determine described minute set condition according to described grouping conditional information; Or, determine described minute set condition according to the selected instruction of presetting the branch set condition of user; The described branch set condition that presets is the branch set condition that presets in the described communication terminal.Set condition can comprise main set condition and the auxilliary set condition that divides of dividing in described minute.
Described communication terminal information can comprise in the associated person information, short message, message registration information of phone directory one or more; If the associated person information of inquiry phone directory, then the described minute set condition of Que Dinging comprises a kind of in surname, sex, company, birthday, the telephone number at least; If short message enquiry information, then the described minute set condition of Que Dinging comprises sender and/or time of receipt (T of R) at least; If inquiring call history information, then the described minute set condition of Que Dinging comprises contact person and/or conversation date at least.
Whether step 202, judging has in the record of the described communication terminal information of storing with the structural data form and the described minute corresponding relevant field of set condition.
The form of storing described structural data can comprise relational database (as SQL Server, Oracle, Sybase etc.), and each record of described communication terminal information can have the ID that hides corresponding with the major key of this record; Whether described judgement has the relevant field corresponding with described minute set condition to be specially in the record of the described communication terminal information of storing with the structural data form: whether search the record of described communication terminal information according to described hiding ID, judging in the record of described hiding ID correspondence has and the described minute corresponding relevant field of set condition.
Step 203, if having and the described minute corresponding relevant field of set condition in the record of described communication terminal information, then in the record with described communication terminal information, the identical record of information that meets the described relevant field of described minute set condition is classified as same group record; If do not have, then can point out automatic grouping failure.
Whether whether described judgement has the relevant field corresponding with described minute set condition to comprise in the record of the described communication terminal information of storing with the structural data form: judging has in the record of described communication terminal information and describedly mainly divides set condition a corresponding field; Described if having and the described minute corresponding relevant field of set condition in the record of described communication terminal information, then in the record with described communication terminal information, the identical record of information that meets the described relevant field of described minute set condition is classified as same group record and comprises: if having in the record of described communication terminal information and the first corresponding relevant field of described main branch set condition, then in the record with described communication terminal information, meet the described main identical record of information of described first relevant field of set condition that divides and be classified as same main group record; Whether whether described judgement has the relevant field corresponding with described minute set condition to comprise in the record of the described communication terminal information of storing with the structural data form: judging in the record of described communication terminal information has and the described auxilliary minute corresponding field of set condition; Described if having and the described minute corresponding relevant field of set condition in the record of described communication terminal information, then in the record with described communication terminal information, the identical record of information that meets the described relevant field of described minute set condition is classified as same group record and also comprises: if having and the described auxilliary minute second corresponding relevant field of set condition in the record of described communication terminal information, then with in each described same main group record, the identical record of information that meets described second relevant field of described auxilliary minute set condition is classified as same auxilliary group record.
Step 204 is presented to the user with described communication terminal information in the mode that described same group record is arranged in respectively together.
Describedly described communication terminal information is presented to the user in described same group record together the mode of being arranged in respectively can comprise: described communication terminal information is presented to the user in the mode that described same main group record is arranged in respectively together; Each described same main group record is presented to the user in the mode that described same auxilliary group of information is arranged in respectively together.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct related hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise above-mentioned steps 201~step 204, described storage medium, as: ROM/RAM, disk, CD etc.
The embodiment of the invention offers the function of a kind of communication terminal information grouping of user, judges whether have and the described minute corresponding relevant field of set condition because adopt in the record of the described communication terminal information of storing with the structural data form; If have and the described minute corresponding relevant field of set condition in the record of described communication terminal information, then in the record with described communication terminal information, the identical record of information that meets the described relevant field of described minute set condition is classified as the technological means of same group record, so having overcome existing lookup method only can simply inquire about communication terminal information, the result who checks out also is inconvenient to the problem used, and then reached and make things convenient for the user, thereby dwindle the effect of seek scope; Simultaneously, by automatic grouping, also make the user carry out more convenient to operate to the communication terminal information after dividing into groups.
Embodiment two:
The grouping conditional information can be provided with or be preset in the mobile phone by manufacturer by user oneself.
Associated person information for phone directory, the basis that application example of the present invention is realized is that associated person information is stored in the mobile phone with structurized form, can be to be stored in a relational database, as with a hiding ID as the major key of every record (as, the most simply, be exactly the information of the number field correspondence of each record in following each record form: be the LXR number field of each record in the associated person information, it in the short message DX number field of each record, be the THJL number field of each record in the message registration information), can accelerate grouping and searching speed like this.This relational database can carry out the storage of the associated person information of phone directory according to the form of following table 1.
The LXR numbering |
The LXR sex |
LXR company |
The LXR birthday |
The LXR name |
1 |
The man |
A company |
January |
Zhang San |
2 |
The man |
B company |
January |
Li Si |
3 |
The woman |
A company |
March |
The king five |
The file layout of the associated person information of table 1 phone directory
Relational database can carry out the storage of short message according to the form of following table 2.
The DX numbering |
The DX sender |
The DX time of receipt (T of R) |
1 |
Zhang San |
January |
2 |
Zhang San |
February |
3 |
The king five |
January |
The file layout of table 2 short message
Relational database can carry out the storage of message registration information according to the form of following table 3.
The THJL numbering |
The THJL contact person |
The THJL air time |
1 |
Li Si |
January |
2 |
Li Si |
February |
?3 |
The king five |
January |
The file layout of table 3 message registration information
Shown in Fig. 5 A, be divide into groups the automatically interface operation schematic diagram of associated person information of application example of the present invention.On the basis of contact person with the structured form storage, the mobile phone contact interface just can offer one of user " grouping automatically " interface, after the user selects " function " of grouping automatically, shown in Fig. 5 B, be divide into groups the automatically interface operation schematic diagram of associated person information of application example of the present invention: when entering the related interfaces of certain communication terminal information, communication terminal can be listed all conditions that can divide into groups automatically, for example when entering the associated person information related interfaces, communication terminal can be listed " surname ", " sex ", " company ", " birthday ", or even " telephone number " five equilibrium set condition (telephone number can divide into groups according to former position, for example 130,139 etc.), the user selects the condition of grouping automatically, whether mobile phone is judged in the record of the relational database that the associated person information ID (for example being LXR numbering-1,2,3 in the table 1) with hiding phone directory stores has and the described minute corresponding relevant field of set condition; If have and the described minute corresponding relevant field of set condition in the record of described communication terminal information, then in the record with described communication terminal information, the identical record of information that meets the described relevant field of described minute set condition is classified as same group record; Described communication terminal information is presented to the user in the mode that described same group record is arranged in respectively together.
After having carried out grouping, the user can inquire about based on the information after the grouping, phone directory stored information as the company's project in the database in the question blank 1, determine that dividing the querying condition of set condition is " A company ", relational database that then can retrieve stored, it is 1 that ID is hidden in inquiry, 2,3 record, and find this relevant field of A company " LXR company ", software can be listed all associated person informations of " A companies " automatically and watched to the user this moment, and the user can find " Zhang San " and " king fives' " phone directory stored information.
The user also can self-defined minute set condition, the user can select main set condition and at least one the auxiliary packet condition of dividing, for example, it is the main set condition that divides that the user selects " A company ", sex " man " is the auxiliary packet condition, mobile phone will be a condition grouping associated person information with " A company " earlier, uses " man " to be condition grouping associated person information, the phone directory stored information of having only " Zhang San " of presenting to the user at last then again.
The method of the automatic grouping that the embodiment of the invention proposes not only can be applied to the associated person information interface, also can be applied to short message, other function interfaces such as message registration information.As Fig. 6 A-Fig. 6 B is divide into groups the automatically interface operation schematic diagram of short message of application example of the present invention.At the short message interface, the user can select to be the branch set condition according to sender, time of receipt (T of R); As Fig. 7 A-Fig. 7 B is divide into groups the automatically interface operation schematic diagram of message registration information of application example of the present invention.At the message registration information interface, the user can select according to the contact person, the conversation date as a minute set condition.In a word, so long as, can use the method for automatic grouping with the communication terminal information of structured data format storage.
The embodiment of the invention offers the function of a kind of automatic grouping cellphone information of user, makes things convenient for the information such as different field grouping contact person of user according to the contact person, thereby dwindles seek scope.Simultaneously, by automatic grouping, the information such as contact person after also making things convenient for the user to grouping are operated, for example bulk SMS etc.The user can divide into groups to the contact person with own interested attribute, utilizes the big advantage of database information amount, and we can provide abundant query function to the user, and the inquiry that offers user individual is experienced.
The above is the specific embodiment of the present invention only, and is not intended to limit the scope of the invention, and is within the spirit and principles in the present invention all, any modification of being made, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.