Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and device of automatic deletion note, preferentially deletes the lower note of importance, avoids the mistake of important note to delete.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method of automatic deletion note, this method comprises:
Full and when new message was arranged, the short message state of mobile phone terminal inquiry inbox obtained and preserve the short message of reading short message when inbox, the short message of reading short message is screened and sorts, and according to the deletion of the short message after screening and sequencing note.
In the such scheme, described short message comprises: the time, receiving number, the note numbering that receive note.
In the such scheme, the short message state of described mobile phone terminal inquiry inbox, obtaining and preserve, the short message of reading short message comprises: mobile phone terminal reads in the inbox reading short message number; When the reading short message number is greater than default reading short message thresholding, according to time sequencing, choose in the short message of reading short message, the short message that conforms to reading short message thresholding number is also preserved; When the reading short message number is less than reading short message thresholding, choose all reading short message short message and preserve.
In the such scheme, described short message to the reading short message preserved screens and sorts and comprises: obtain in the short message, receiving number is set to first kind short message for the contact person's; Obtain in the short message, receiving number length is being set between the figure place, and the short message that preceding setting item sign indicating number conforms to list of numbers is set to the second class short message, obtains in the short message, and remaining short message is the 3rd class short message; Above-mentioned three class short messages all are kept among the tabulation according to the time of reception sequence arrangement.
In the such scheme, describedly comprise according to the short message after screening and sequencing deletion note: mobile phone terminal is according to time sequencing, delete the note of the 3rd class short message, the second class short message, first kind short message correspondence successively, count summation when reaching default setting deletion number when the bar of deletion note, promptly stop to delete the note operation.
The present invention also provides a kind of method of automatic deletion note, and this method comprises:
Mobile phone terminal is inquired about the short message state of inbox at regular intervals, obtains and preserve the short message of reading short message, and the short message of reading short message is screened and sorts, and according to the deletion of the short message after screening and sequencing note.
In the such scheme, described short message comprises: the time, receiving number, the note numbering that receive note.
In the such scheme, the short message state of described inquiry inbox, obtaining and preserve, the short message of reading short message comprises: mobile phone terminal reads in the inbox reading short message number; When the reading short message number is deleted number greater than timing, continue relatively, determine that the reading short message number is greater than reading short message thresholding, according to time sequencing with reading short message thresholding, choose in the short message of reading short message, the short message that conforms to reading short message thresholding number is also preserved; When the reading short message number is less than reading short message thresholding, choose all reading short message short message and preserve.
In the such scheme, described short message to the reading short message preserved screens and sorts and comprises: obtain in the short message, receiving number is set to first kind short message for the contact person's; Obtain in the short message, receiving number length is being set between the figure place, and the short message that preceding setting item sign indicating number conforms to list of numbers is set to the second class short message; Remaining short message is the 3rd class short message; Above-mentioned three class short messages are all according to the time of reception rank order and be kept in the tabulation.
In the such scheme, describedly comprise according to the short message after screening and sequencing deletion note: mobile phone terminal is according to time sequencing, delete the note of the 3rd class short message, the second class short message, first kind short message correspondence successively, count summation when reaching default timing deletion number when the bar of deletion note, promptly stop to delete the note operation.
The present invention also provides a kind of device of automatic deletion note, and this device comprises: judging treatmenting module, screening module, order module, removing module, memory module;
Judging treatmenting module, it is full and the message of new message is arranged to be used to receive inbox that inbox sends, and the state of reading short message in the inquiry inbox obtains the short message of reading short message, is saved in memory module, and notice screening module; Perhaps, regularly inquire about the state of reading short message in the inbox, obtain the short message of reading short message, be saved in memory module, and notice screening module;
The screening module is used for short message is screened, and the notice order module;
Order module is used for the short message after the screening is sorted, and the notice removing module;
Removing module is used for according to the deletion of the short message after screening and sequencing note;
Memory module is used to store short message.
In the such scheme, judging treatmenting module specifically is used for: receive the message that inbox has expired and had new message, read in the inbox reading short message number, determine that the reading short message number is greater than reading short message thresholding, according to time sequencing, choose in the short message of reading short message, the short message that conforms to reading short message thresholding number is saved in memory module; Determine less than reading short message thresholding, then choose all the short message of reading short message be saved in memory module; Perhaps, when regularly inquiring about the state of reading short message in the inbox, read in the inbox reading short message number, determine that the reading short message number is greater than regularly deleting number, then further relatively, determine that the reading short message number is greater than reading short message thresholding, according to time sequencing with reading short message thresholding, choose in the short message of reading short message, the short message that conforms to reading short message thresholding number is saved in memory module; Determine the reading short message number less than reading short message thresholding, then choose all the short message of reading short message be saved in memory module; Determine that the reading short message number is not done any operation less than regularly deleting number.
In the such scheme, the screening module specifically is used for, and reads the short message in the memory module, obtains in the short message, and receiving number is set to first kind short message for the contact person's; Obtain in the short message, receiving number length is being set between the figure place, and preceding setting item sign indicating number is set to the second class short message with what the number tabulation conformed to, and other short message is set to the 3rd class short message.
In the such scheme, described removing module specifically is used for, inbox is full and when new message is arranged, delete the note of the 3rd class short message, the second class short message, first kind short message correspondence successively, count summation when reaching default setting deletion number when the bar of deletion note, promptly stop to delete the note operation; Perhaps, when regularly inquiring about the state of reading short message in the inbox, deletion is deleted the note that number conforms to timing, and described deletion is identical with the process of setting the deletion number.
In the such scheme, this device further comprises: timer, subscriber interface module; The interface that provides the user to operate is provided subscriber interface module, and user's opening timing delete function starts timer, and the notice removing module; Also be used to be provided with the timing of timer; Timer is used for according to timing periodic duty, arrives timing, the notice judging treatmenting module; Judging treatmenting module is used for timing then, the state of reading short message in the inquiry inbox.
This shows, adopt method of the present invention and device, reading short message is screened and sorts according to sending short message number, unessential note is preferentially deleted, avoid important note to be deleted by mistake; Further, when regularly deleting,, effectively improved the efficient of deletion note according to the timing deletion number deletion note that is provided with.
Embodiment
Basic thought of the present invention is: inbox is full and new message arranged, perhaps, at regular intervals, reading short message state in the mobile phone terminal inquiry inbox, the short message of reading short message is screened and sorts according to sending short message number, according to the corresponding note of the deletion of the short message after the screening and sequencing.
The present invention is described in more detail below by specific embodiment and accompanying drawing.A kind of method of automatic deletion note, as shown in Figure 1, concrete steps are as follows:
Step 101, inbox are full and new message is arranged, perhaps, at regular intervals, reading short message state in the mobile phone terminal inquiry inbox;
The inbox of mobile phone is full, and when having new message to arrive, perhaps, at mobile phone timer is set, and has opened regularly delete function if the user is provided with the interface by mobile phone, when arriving the timing of timer, and the state of reading short message in the mobile phone terminal inquiry inbox.Described timing can be provided with as required voluntarily.
Inbox is full and when new message is arranged, the state of reading short message in the described inquiry inbox comprises: mobile phone terminal reads in the inbox number of reading short message, after the user reads note, inbox can be designated as corresponding short beacon and read, the mobile phone terminal number of reading short message compares with the thresholding of reading short message that presets, if greater than reading short message thresholding, then according to the note time of reception by early to late order, the short message of the note that conforms to reading short message thresholding number of choosing that inbox preserves, be saved in temporary space, the short message of why choosing the note that conforms to reading short message thresholding number is to prevent that the quantity of reading short message in the inbox is too much, causes the processing time longer.The described thresholding of reading short message can be provided with as required voluntarily, for example 100, described temporary space can be the memory space of any free time of mobile phone terminal, and described short message comprises time, the transmission short message number that receives note, be receiving number, note numbering, i.e. the sequence number of note.If the number of reading short message is less than reading short message thresholding, then with all the short message of reading short message all be saved in temporary space.
If the user has opened regularly delete function, after timer arrives timing, mobile phone terminal reads in the inbox number of reading short message, with the same timing deletion number comparison of presetting of number of reading short message, if the number of reading short message is greater than regularly deleting number, then the processing of follow-up mobile phone terminal is identical with the handling process that above-mentioned mobile phone receives new message; If the number of reading short message is deleted for fear of the mistake of general's reading short message less than regularly deleting number, then do not do any operation.
Step 102, the short message of reading short message is carried out screening and sequencing according to sending short message number;
If the transmission short message number is the number on the mobile phone terminal address list, then inbox can be with the contact person's coupling that sends in short message number and the address list, and inbox shows that sending short message number is the contact person.Mobile phone terminal reads the short message in the temporary space, chooses to send the short message of short message number for the contact person, as first kind short message, this short message according to the time that receives note,, is preserved and mark with the form of tabulation to the order in evening by early; Choose then and send short message number length for setting figure place, the short message between 8 to 11 for example, choose the preceding setting item sign indicating number of the transmission short message number in the described short message, front three number for example, with the front three number relatively with the list of numbers that presets, if conform to number in the list of numbers, then described short message belongs to the second class short message, according to the time that receives note, to the order in evening, be kept in the tabulation and mark the described second class short message by early; Remaining short message belongs to the 3rd class short message, to receive the time of note, to the order in evening, is kept in the tabulation and mark by early equally; Described list of numbers is preceding settings of number commonly used, and front three for example comprises 139,159 or the like, and described mark is used to distinguish three tabulations.
Step 103, according to the short message after screening and sequencing deletion note.
The user starts regularly delete function, mobile phone terminal is according to time sequencing, delete the 3rd class short message successively, the second class short message, the note of first kind short message correspondence, counting summation when the bar of deletion note reaches when regularly deleting number, promptly stop to delete the note operation, detailed process is: the 3rd class short message number was with the size of the timing deletion number that presets during mobile phone terminal was relatively tabulated, suppose that the 3rd class short message number is X, regularly deleting number is N, if the 3rd class short message number is greater than regularly deleting number, be X>N, then according to the time of reception in the short message, according to by early extremely late order, delete in the inbox corresponding and delete the number of reading short message that number conforms to timing with the 3rd class short message; Described deletion detailed process is: mobile phone terminal according to time of reception by early to the order in evening, choose in the 3rd class short message, delete the short message that number conforms to timing, read the numbering of selected short message, number the reading short message that conforms to the numbering of selected short message in the deletion inbox, so just deleted in the inbox and deleted the short message that number conforms to timing.The tabulation of storing in the mobile phone terminal deletion temporary space then.If the 3rd class short message number is less than regularly deleting number, be X<N, then mobile phone terminal is deleted the reading short message of all the 3rd class short message correspondences, compare the size of the second class short message number simultaneously with the timing deletion number of removing the 3rd class short message number, suppose that the second class short message number is Y, the size that promptly compares Y and N-X, if Y is greater than N-X, then mobile phone terminal according to time of reception by early to the order in evening, deletion N-X and the corresponding note of the second class short message, the delete procedure of the note that described delete procedure and the 3rd class short message are corresponding is identical; Further,, then delete the note of whole second class short message correspondences if Y is less than N-X, then according to time of reception by early to the order in evening, delete the note of N-X-Y first kind short message correspondence.The tabulation of storing in the mobile phone terminal deletion temporary space then.
If the user do not have the opening timing delete function, then mobile phone terminal according to time of reception by early to the order in evening, the setting deletion number that deletion is preset, the method that described delet method is regularly deleted number with deletion is identical.
The present invention also provides a kind of device of automatic deletion note, and this device comprises: judging treatmenting module 201, screening module 202, order module 203, removing module 204, memory module 205;
Judging treatmenting module 201, it is full and the message of new message is arranged to be used to receive inbox that inbox sends, and the state of reading short message in the inquiry inbox obtains the short message of reading short message, is saved in memory module 205, and notice screening module 202; Perhaps, regularly inquire about the state of reading short message in the inbox, the short message of reading short message is saved in memory module 205 obtains the short message of reading short message, be saved in memory module 205, and notice screening module 202; Described short message comprises note numbering, receives the time of note, sends short message number;
Screening module 202 is used for screening the short message of memory module 205, and notice order module 203;
Order module 203 is used for the short message after the screening is sorted, and notice removing module 204;
Removing module 204 is used for according to the corresponding note of the deletion of the short message after the screening and sequencing;
Memory module 205 is used to store the short message of reading short message.
This device further comprises: timer 2 06, subscriber interface module 207;
The interface that provides the user to operate is provided subscriber interface module 207, when the user selects to start regularly delete function, starts timer 2 06; Also be used to be provided with the time of timer 2 06;
Timer 2 06 is used for according to timing periodic duty, and at timing then, notice judging treatmenting module 201; Described timing can be provided with by subscriber interface module 207 as required voluntarily by the user;
Judging treatmenting module 201, when being used to receive the notice of timer 2 06, the state of reading short message in the inquiry inbox.
Judging treatmenting module 201 specifically is used for, read in the inbox reading short message number, and delete number with the timing of presetting and compare, determine greater than regularly deleting number, then further relatively with the thresholding of reading short message that presets, determine greater than reading short message thresholding, according to reading short message time of reception by early to the order in evening, the short message of choosing in the inbox reading short message that conforms to reading short message thresholding number is saved in memory module 205; Determine less than reading short message thresholding, then choose all the short message of reading short message be saved in memory module 205; Determine that the reading short message number is not done any operation less than regularly deleting number; Perhaps,
If do not receive the timer notice, then read in the inbox reading short message number, and with reading short message thresholding relatively, determine greater than reading short message thresholding, according to reading short message time of reception by early to the order in evening, the short message of choosing in the inbox reading short message that conforms to reading short message thresholding number is saved in memory module 205; Determine less than reading short message thresholding, then choose all the short message of reading short message be saved in memory module 205; The described thresholding of reading short message can be provided with as required voluntarily, and for example 100, described timing deletion number can be provided with as required voluntarily.
Screening module 202 specifically is used for, and reads the short message in the memory module 205, choose send note number for contact person's short message as first kind short message; Choose and send note number length for setting figure place, for example between 8 to 11, and preceding setting item sign indicating number, for example the front three number is the second class short message with the list of numbers that the presets short message that conforms to, and other short message is the 3rd class short message; Described list of numbers is preceding settings of number commonly used, and front three for example comprises 139,159 or the like.
Order module 203 specifically is used for, with three class numbers according to time of reception by early to the rank order in evening, be kept in three tabulations respectively and mark.
Removing module 204 specifically is used for, if user's opening timing delete function, according to time sequencing, delete the note of the 3rd class short message, the second class short message, first kind short message correspondence successively, count summation when the bar of deletion note and reach when regularly deleting number, promptly stop to delete the note operation; Detailed process is: relatively the 3rd class short message number is with the size of the timing deletion number that presets, determine that the 3rd class short message number is greater than regularly deleting number, according to the time of reception in the short message by early to the order in evening, delete in corresponding with the 3rd class short message, the inbox and deletes the note that number conforms to timing; Determine that the 3rd class short message number is less than regularly deleting number, delete the note of all the 3rd class short message correspondences, compare the size of the second class short message number simultaneously with the timing deletion number of removing the 3rd class short message number, the number of determining the second class short message is bigger, then according to time of reception by early to the order in evening, delete in the note of the second class short message correspondence, the note that conforms to the timing deletion number of removing the 3rd class short message number, determine that the second class short message number is less, then delete the note of all second class short message correspondences, simultaneously according to time of reception by early to the order in evening, in the note of deletion first kind short message correspondence, the note that conforms to the timing deletion number of removing the 3rd class and the second class short message number;
If the user do not have the opening timing delete function, according to time of reception by early to the order in evening, the setting deletion number that deletion is preset, the method that described delet method is regularly deleted number with deletion is identical.Described deletion is a mobile phone terminal according to time of reception by early to the order in evening, choose in the 3rd class short message, delete the short message that number conforms to timing, read the numbering of selected short message, number the reading short message that conforms to the numbering of selected short message in the deletion inbox;
Accordingly, subscriber interface module 207, during user's opening timing delete function, notice removing module 204.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.