Summary of the invention
Technical problem to be solved by this invention is, overcomes the deficiency of prior art, provide a kind of can be to making up many notes, save memory space and operating SMS processing method and terminal easily.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of SMS processing method may further comprise the steps: obtain the former note that needs combination from the note memory cell; Said former note is resolved to corresponding content and parameter; Make up according to the content of said parameter, obtain making up note said former note; Preserve said combination note.
Said parameter comprises reiving/transmitting state, contact person, processing time and comprises at least a in the number of characters.
When the note memory cell is obtained a former note that needs combination; The mode that the content of said former note is made up is: at first judge whether the beginning as the combination note of the content of said former note, if the then content of the said former note beginning that is set to make up note; Otherwise the content of said former note is added existing combination note.
Add before the existing combination note content of said former note further comprising the steps of: judge that can said existing combination note hold all the elements of said former note, if can hold all the elements of said former note then all the elements of said former note are added existing combination note; Otherwise cut apart said former note, and the former short message content after will cutting apart adds existing combination note.
The process that the content of said former note is made up also comprises following processing mode: write down the pairing breakpoint of each former note in the said combination note, form the corresponding sequence of breakpoints of said combination note.
Also comprise the processing mode that said combination note is split, may further comprise the steps: obtain the combination note that needs fractionation from the note memory cell; Said combination note is resolved to corresponding content; According to the corresponding sequence of breakpoints of said combination note the content of said combination note is split the former note after obtaining splitting; Preserve the former note after the said fractionation.
A kind of note processing terminal comprises: combined control module, parsing module and note composite module; Combined control module is used for the former note that the note memory cell is obtained needs combination, and said former note is offered parsing module; Parsing module is used for said former note is resolved to corresponding content and parameter, and said content and parameter are offered the note composite module; The note composite module is used for making up according to the content of said parameter to said former note, obtains making up note.
Comprise that also note cuts apart module, when existing combination note can not be held all the elements of said former note, said note was cut apart module and is used to cut apart said former note, made the former short message content after cutting apart add existing combination note.
Also comprise breakpoint record module, said breakpoint record module is used for writing down the sequence of breakpoints that the pairing breakpoint of each former note of said combination note forms.
Comprise that also note splits module; Said combined control module also is used for the combination note that the note memory cell is obtained needs fractionation, and said combination note is offered said parsing module; Said parsing module also is used for said combination note is resolved to corresponding content, and said content is offered said note fractionation module; Said note splits module and is used for the content of said combination note is split.
The invention has the beneficial effects as follows; The note combination function of portable terminal can be realized in SMS processing method of the present invention and terminal thereof; At first obtain the former note that needs combination and resolve former note from the note memory cell of portable terminal; Then the content of former note is made up and obtain making up note, preserving at last should combination note.SMS processing method of the present invention can make up many former notes; Formation comprises the combination note of many former short message contents; Therefore many notes only take a fixed storage space; Save the memory space of note to a great extent, be convenient to the mobile terminal stores more information, and helped improving the available machine time of portable terminal and the reading speed of message list.For example can many notes that only comprise few number of characters be combined into a combination note, both save memory space, make things convenient for the user that many notes are checked and other operations simultaneously again, satisfy user's individual demand simultaneously, improve user's Experience Degree.
The present invention not only can realize the function of note combination, and can split the combination note according to concrete needs, further provides convenience for user's operation.
Embodiment
SMS processing method of the present invention comprises following execution mode, but is not limited to following execution mode:
Shown in Figure 1 is SMS processing method flow chart of the present invention, may further comprise the steps:
Step S100: obtain the former note that needs combination from the note memory cell of portable terminal, described note memory cell is arranged in the information memory cell that (U) SIM, big capacity (U) SIM, portable terminal and PC provide usually.The former note of this step can be in the processes such as portable terminal sends in real time, reception in real time the note of handling in real time, or the note of directly choosing from the note memory cell of portable terminal; When the note that for example portable terminal is received in real time makes up; Note of every reception is about to the note memory cell that this note is kept at portable terminal; Then obtaining this note from the note memory cell carries out dynamic combined to it, and the combination note that will form at last is kept in the inbox; When for example directly choosing the note that has been kept at draft and making up, the user can choose many notes voluntarily and carry out the static state combination, and the combination note that will form at last still is kept at draft.In the static anabolic process; The step of obtaining former note has multiple mode: for example can obtain many notes simultaneously and make up in the lump; Or obtain every former note one by one according to the call number of every note; In subsequent step, it is made up one by one, a kind of mode in back obviously is more prone to realize, and operating efficiency and accuracy are higher relatively.
Step S101: former note is resolved to corresponding content and parameter.Note in the portable terminal need be resolved the PDU code stream of former note according to certain agreement in this step usually all with the stored in form of PDU code stream, extracts contents such as the literal that comprises in the former note, punctuate, icon; Also need parse the pairing contact person of former note, processing time, reiving/transmitting state, comprise at least a parameter in the parameters such as number of characters.Resolve above-described former note corresponding parameters and be on the one hand for ease that the user reads the former note that is comprised in the combination note, can learn its corresponding contact person, processing time etc. when for example reading former short message content; Be according to certain combination condition former note to be made up among the step S102 for ease on the other hand, for example same contact person's whole former note combined, maybe with all receptions/the former note of sending combines.
Step S102: make up according to the content of former note corresponding parameters, obtain making up note to former note.The anabolic process of this step has multiple mode, can make up according to reiving/transmitting state, contact person, the transmitting-receiving time of former note and at least a content to former note that comprises in the number of characters according to concrete needs.When for example only former note being made up, only comprise the note that portable terminal receives in the combination note that obtains according to accepting state; When for example only making up, only comprise the note relevant in the combination note that obtains with same contact person according to the contact person; When for example former note being made up, only comprise the note that portable terminal receives in the combination note that obtains from same contact person according to accepting state and contact person.The compound mode of this step is very flexible: can the content of the former note of obtaining one by one be added the combination note one by one, or the content of many former notes of obtaining simultaneously is arranged in the same combination note in the lump.
Generally need the former note corresponding parameters of record in the anabolic process; Make things convenient for the user to read the former note that is comprised in the combination note; Can learn its corresponding contact person, processing time etc. when for example reading former short message content, and be convenient to according to these parameters the combination note split where necessary.In the anabolic process; Also can write down the pairing breakpoint of each former note, this breakpoint table is shown the data cut-point of former breakpoint content, in this way; Each combination note all obtains the sequence of breakpoints of a correspondence, and for example one is respectively " good by three original short message contents.", " on the way.", " to " pairing sequence of breakpoints of combination note of being combined into is an array, the element of the inside is respectively 3,7,9.Its purpose is: the user can will make up note according to this sequence of breakpoints and split into many former notes.
Step S103: after combination is accomplished, preserve the combination note that obtains, can directly the combination note be kept at the note memory cell of portable terminal, also can be kept at certain buffer unit wait and continue combination.In order to save memory space, can delete the former note of accomplishing combination automatically from the note memory cell of portable terminal simultaneously.
SMS processing method of the present invention can be realized the note combination function of portable terminal; At first obtain the former note that needs combination and resolve former note from the note memory cell of portable terminal; Then the content of former note is made up and obtain making up note, preserving at last should combination note.SMS processing method of the present invention changes into a combination note with many former notes; This combination note comprises the content of many former notes; Therefore on the basis that does not change former short message content, realize that the content of many notes only takies the execution mode of a fixed storage space, therefore saved the memory space of note to a great extent; Be convenient to more other information of mobile terminal stores, and help improving the available machine time of portable terminal and the reading speed of message list.For example can many notes that only comprise few number of characters be combined into a combination note, both save memory space, make things convenient for the user to check many notes simultaneously again, or simultaneously these notes are carried out associative operation, therefore improve user's operating efficiency.Execution mode of the present invention in addition is very flexible, and the user can carry out freely being provided with and selecting according to real needs, so the individual demand further satisfied and user, has improved user's Experience Degree.
Shown in Figure 2 is a kind of embodiment flow chart of realizing the note combination in the SMS processing method of the present invention, and this enforcement may further comprise the steps as a kind of function that former note is made up one by one of preferred embodiment having realized:
Step S200: start the note combination.Starting mode comprises multiple, for example starts the note combination function mobile terminal-opening time, and the note that portable terminal receives in real time or sends is in real time carried out dynamic combined; The user also can start the note combination function through the function menu of user interface, from the note memory cell of portable terminal, directly chooses a part of note and carries out the static state combination.
Step S201: obtain a former note that needs combination from the note memory cell of portable terminal, for example when a new message arrives usim card, obtain this note immediately; When perhaps the user chooses many notes in the draft and makes up, at first from usim card, obtain a former note that needs combination according to the call number of correspondence.
Step S202: the former note that will obtain resolves to corresponding content and parameter, and for example parameter comprises the sender, sends out part time and content-length etc.
Step S203: judge that whether this former note is as the beginning of making up note? Be then to get into step S204, otherwise get into step S206.Judgment mode comprises multiple, for example when character that this note comprised less than 70, then get into step S204, otherwise get into step S206; Perhaps can judge, for example receive for the first time a certain contact person's note according to the parameter of this former note, then can be with of the beginning of this former note as the combination note.
Step S204: if with of the beginning of this former note as the combination note; Then the content of this former note is set to make up the beginning of note; Form a new combination note; Can write down simultaneously the contained former note correspondence of this combination note contact person, processing time, reiving/transmitting state, comprise at least a parameter in the parameter such as number of characters, be convenient to the user to check former note, or be convenient in down-stream, this combination note split.
Step S205: preserve the combination note that forms; Can directly be kept at the note memory cell of portable terminal; Also can be buffered in certain buffer unit is convenient to the follow-up content of the former note of combination that needs is added this combination note; Automatically delete former note from the note memory cell of portable terminal simultaneously, then can return step S201 and proceed the note combination.
Does step S206: this former note select to abandon the note combination not as the beginning of combination note? Be then to get into step S214 (for example when number of characters that this note comprised greater than 70), otherwise get into step S207.
Step S207: obtain existing combination note, obtain existing combination note according to rule of combination and call number usually, for example can obtain the last combination note that forms, this combination note comprises the information from same contact person.Can obtain existing combination note from the note memory cell of portable terminal, perhaps also can obtain from the described buffer unit of step S205.
Step S208: judge that existing combination note can hold all the elements of former note? Be then to get into step S209, otherwise get into step 211.
Step S209: all the elements of former note are added existing combination note, for example can write down simultaneously the corresponding sender of this former note, send out parameters such as part time and content-length.In the note anabolic process, also can write down the pairing breakpoint of each former note (being every data cut-point between the former note) in the combination note, form the corresponding sequence of breakpoints of this combination note and be convenient in the down-stream this combination note reasonably split.
Step S210: preserve the combination note, preserving type is similar to step S205, then can finish or return step S201, deletes former note automatically from the note memory cell of portable terminal simultaneously.
Step S211:, then judge whether to cut apart former note (can judge voluntarily) by the user if existing combination note can not be held all the elements of former note? Be, then get into step S212, withdraw from otherwise get into step S214.
Step S212: former note is divided into two parts, and the last partial content after the user can select to cut apart adds existing combination note, a back part is left in another combination note, simultaneously this former note corresponding parameters of record; The user also can select to abandon a part of note in back or abandon cutting apart and deposit former way of short messages.
Step S213: preserve the former note that does not make up after making up note and cutting apart respectively, preserving type is similar to step S205, then can finish or return step S201, can delete former note automatically from the note memory cell of portable terminal simultaneously.
Step S214: withdraw from the functional mode of note combination, perhaps return step S201 and obtain former note once more according to concrete needs.
Fig. 3 realizes first kind of embodiment flow chart that note splits in the SMS processing method of the present invention, this execution mode can split the combination note, and detailed process may further comprise the steps:
Step S300: obtain the combination note that need to split from the note memory cell of portable terminal, can choose voluntarily by the user usually a combination note is split, or be provided with many in the portable terminal or all combination notes are split.
Step S301: said combination note is resolved to corresponding content,, then can parse corresponding parameters simultaneously and make things convenient for the user to check if this combination note has write down the pairing parameter of former note in anabolic process.
Step S302: the content to the combination note splits the former note after obtaining splitting.Can split according to the mode that the user sets up on their own; Or (this sequence of breakpoints can directly form in the note anabolic process to make up the corresponding sequence of breakpoints of note according to this; Also can be provided with voluntarily by the user) split, the latter obviously is convenient to the combination note is reduced into traditional mode, and its specifically fractionation mode comprises a variety of; For example directly will make up note according to sequence of breakpoints and split into a plurality of former notes, each former note comprises the pairing content of its breakpoint; Also can split one by one the combination note, split out a former note at every turn according to the breakpoint in the sequence of breakpoints.
Step S303: preserve the former note after the said fractionation, also can delete the combination note automatically from the note memory cell of portable terminal.
Fig. 4 realizes second kind of embodiment flow chart that note splits in the SMS processing method of the present invention, this execution mode is as a kind of function that has realized that preferred embodiment the combination note splits one by one.
Step S400: start note and split.
Step S401: obtaining needs of fractionation combination note.
Step S402: the combination note is resolved, and, draw the original note number that comprises through calculating to the corresponding sequence of breakpoints of this combination note.
Does step S403: whether the residual memory space of judging the note memory cell of portable terminal enough deposit the former note after the fractionation? Be then to get into step S404, otherwise get into step S408.
Step S404: inquire about the corresponding sequence of breakpoints of this combination note, this note sequence can directly form in the note anabolic process.
Step S405: judge that sequence of breakpoints is empty? Be then to get into step S406, otherwise get into step S408.
Step S406: from the combination note, split out a former note according to sequence of breakpoints, this former note comprises the corresponding content of current breakpoint, and can view parameters such as contact person, reiving/transmitting state and processing time.
Step S407: preserve the former note that splits out and from sequence of breakpoints, delete current breakpoint automatically, then get back to step S404 and inquire about sequence of breakpoints once more.
Step S408: withdraw from or split next bar combination note.
The present invention not only can realize the function of note combination, and can split the combination note according to concrete needs, has therefore both saved memory space, is user-friendly to again.For example when the residual memory space of portable terminal more after a little while, note combined method of the present invention capable of using makes up the former note of part, every combination note only takies a fixed storage space, therefore from having saved the memory space of portable terminal to a great extent; When portable terminal has enough residual memory spaces, through note method for splitting of the present invention the combination note is split again, the user can check the former note after every fractionation, perhaps sends, revises or associative operation such as deletion.
Fig. 5 is first kind of embodiment structured flowchart of note processing terminal of the present invention, and this note processing terminal 10 comprises combined control module 11, parsing module 12 and note composite module 13.This note processing terminal 10 is arranged in the portable terminal, carries out alternately according to the note memory cell 20 of concrete needs and portable terminal, and this note memory cell 20 is arranged in the memory cell that SIM, usim card or portable terminal, PC provide; This note processing terminal 10 also can carry out according to concrete needs and user interface 30 alternately.
Combined control module 11 is used for obtaining the former note that needs combination from the note memory cell 20 of portable terminal, and former note is offered parsing module 12.Combined control module 11 can directly obtain former note from note memory cell 20, also can from note memory cell 20, obtain former note through other functional modules.Combined control module 11 also can be used for controlling parsing module 12 and note composite module 13, for example can issue task to parsing module 12 according to the setting of portable terminal or user's demand, and the concrete compound mode of note composite module 13 also can be set.Combined control module 11 also can carry out for example receiving the selection of user for former note alternately with user interface 30, and the user is for the selection of combination note, the selection of compound mode etc.; Also can be to the treatment state in the user feedback note processing procedure.
Parsing module 12 is used for former note is resolved to corresponding content and parameter, and these contents and parameter are offered note composite module 13.The corresponding content of former note refers to its literal that comprises, punctuate, icon etc., and parameter refers to the pairing contact person of former note, processing time, reiving/transmitting state, comprise at least a in the parameter such as number of characters.
Note composite module 13 is used for making up according to the content of former note corresponding parameters to former note, obtains making up note.Note composite module 13 also can be through combined control module 11 or directly will be made up in the note memory cell 20 that note is kept at portable terminal; Also can will make up note and be kept at certain buffer unit according to concrete needs; The content of being convenient to other former notes adds this combination note, when the number of characters of this combination note reaches maximum magnitude, will make up the note memory cell 20 that note is kept at portable terminal.
After the note combination, combined control module 11 can be used for the former note that combination is accomplished in from note memory cell 20 deletion, also can be as required the result who preserves the combination note or delete former note be fed back to user interface 30 and supplies users to check.
The present invention can comprise further that also note cuts apart module 14; In the note anabolic process; When existing combination note can not be held all the elements of former note, note was cut apart module 14 and is used to cut apart said former note, made the former short message content after cutting apart add existing combination note.In addition; Also can further comprise breakpoint record module 15; In the note anabolic process, breakpoint record module 15 is used for writing down the sequence of breakpoints that the pairing breakpoint of each former note of combination note forms, and is convenient in down-stream, the combination note split according to sequence of breakpoints.Note is cut apart module 14 and is all linked to each other with note composite module 13 with breakpoint record module 15, also can all be arranged in the note composite module 13 as submodule.
Fig. 6 is second kind of embodiment structured flowchart of note processing terminal of the present invention, and this execution mode is similar with first kind of embodiment, can comprise further that also note splits module 16.
In this execution mode, combined control module 11 also is used for obtaining the combination note that need to split from the note memory cell 20 of portable terminal, and should make up note and offer parsing module 12.
Parsing module 12 also is used for the combination note is resolved to corresponding content, and content is offered note fractionation module 16.
Note splits module 16 and is used for the content of combination note is split; And can be through combined control module 11 or directly will split after former note be kept in the note memory cell 20 of portable terminal, this note splits module 16 also can be arranged on a physical location with note composite module 13.After the combination note splits; Combined control module 11 also can be used for the combination note that the deletion completion splits from note memory cell 20; Also can as required the result who preserves former note or deletion combination note be fed back to user interface 30 and supply the user to check, this execution mode can comprise note equally and cut apart module 14 and breakpoint record module 15.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.