Embodiment
Through accompanying drawing and embodiment, technical scheme of the present invention is done further detailed description below.
As shown in Figure 1, be the flow chart of the short message sending method embodiment that the present invention is based on message template, this method comprises:
Step 101, short message editing module are accomplished the foundation of message template, and the said short message template are kept at memory module according to the insertion territory that user's editing short message request editor comprises Attribute domain; Wherein, above-mentioned Attribute domain is represented through claimed the tlv triple of forming with the territory content by field code, domain name;
Wherein, above-mentioned insertion territory can also comprise PD, thereby the short message editing module also can call PD when inserting the territory according to user's editing short message request editor, and this PD is inserted in message template, accomplishes the foundation of message template; In addition, the short message editing module also need be set up PD before calling PD, and promptly the short message editing module is set up PD according to user's the solicited message of setting up PD; The short message editing module is accomplished the foundation of PD information according to the PD of the domain information call establishment of user input, and above-mentioned PD information is kept in the memory module.And above-mentioned PD is also through being claimed that by field code, domain name the tlv triple of forming with the territory content representes.Further, after message template is set up, can also revise message template; The short message editing module is revised PD according to user's modification note request; And amended message template is kept in the memory module, simultaneously in use, these PDs can not nestedly use with Attribute domain.
In addition, above-mentioned Attribute domain such as name field are stored in the telephone directory, can from telephone directory, call when to be needed; The tlv triple in above-mentioned representation attribute territory can be " [name], name, Zhang San "; Wherein " [name] " represents the field code of name field; And this field of the unique expression of this field code, on behalf of the domain name of name field, " name " claim, and " Zhang San " represents the territory content of name field.
Step 102, short message editing module are sent request according to user's note, from memory module, call the said short message template, and by pretreatment module with the field code of the Attribute domain in the said message template with the territory content to replace after, the transmission short message.
When having only Attribute domain in the message template; The short message editing module is sent request according to user's note; From memory module, call the said short message template, and this message template is sent to pretreatment module, the field code of Attribute domain is used the territory content to replace by pretreatment module; For example, pretreatment module is sent short message after addressee's name is territory content " Zhang San " replacement " [name] " field code.Equally, if in the message template when also comprising PD, the territory processing module is accomplished the transmission of short message after also needing field code with PD by the territory content to replace.
And the field code of above-mentioned PD and Attribute domain all begins to finish with second predetermined symbol with first predetermined symbol, and above-mentioned first special symbol can be " [", second special symbol can be "] "; Above-mentioned pretreatment module identify above-mentioned first predetermined symbol like " [" and second predetermined symbol "] " after, will be at the field code of Attribute domain between first predetermined symbol and second predetermined symbol or PD with separately territory content to replace.
In addition; After the said short message template is kept at memory module; Can also comprise: after the timed sending request of reception user's the predetermined transmitting time that comprises note, pretreatment module saves as the timed sending pattern with said SMS module, and regularly inquires about timer; If system time reaches the predetermined transmitting time of note, then pretreatment module with the field code of Attribute domain and PD with sending said short message after alternative behind the territory content to replace separately.If when system time reached the predetermined transmitting time of note, the user shut down, treat that then the user starts shooting after, can regularly inquire about whether preserve short message to be sent in the memory module, if having, then send above-mentioned short message to be sent immediately.Certainly, before sending short message to be sent, all need the field code of Attribute domain in the message template that short message to be sent adopted and PD to be redispatched after by territory content to replace separately by pretreatment module.
Above-mentioned short message sending method based on message template; Utilize Attribute domain before sending note, can field code be used the territory content to replace; When having realized to different contacts transmission note; Use identical template and short message content that different contacts is received has nothing in common with each other, thereby practice thrift various resources, and promoted information receiver's susceptibility and satisfaction.
As shown in Figure 2, for the present invention edits the signaling process figure of PD information embodiment, the PD of being set up among the present invention is also represented by tlv triple; Like " [day]; red-letter day, Christmas Day ", wherein " [day] " represents the field code in territory in red-letter day; On behalf of the domain name in territory in red-letter day, " name " claim, represents the territory content in territory in red-letter day on " Christmas Day "; This process comprises:
Step 201, user send newly-built PD solicited message to the short message editing module;
Step 202, the newly-built PD of short message editing module, and newly-built PD is sent to the territory administration module;
Step 203, territory administration module return domain information to the short message editing module;
Step 204, short message editing module are returned domain information to the user;
Step 205, user input fields information;
Step 206, short message editing module are called newly-built PD according to the domain information of input, accomplish the foundation of PD information;
Step 207, territory administration module are kept at memory module with the PD information of setting up;
Step 208, memory module are returned to the territory administration module and are set up successful information;
Step 209, territory administration module return to the short message editing module and set up successful information;
Step 210, short message editing module are returned to the user and are set up successful information.
The PD of setting up through said process is kept in the memory module, certainly, can set up a plurality of PDs through said process; In addition; Also can delete one or more PDs of having set up, must delete the entire domain code when just deleting, and can not a reserve part field code.
The process of above-mentioned editor's PD information, mutual through between short message editing module, territory administration module and the memory module accomplished the foundation of PD information, thereby gets ready for the foundation of follow-up message template.
As shown in Figure 3, for the present invention sets up the signaling process figure of message template embodiment, this process comprises:
Step 301, user send newly-built note solicited message to the short message editing module;
Step 302, short message editing module message editor;
The foundation that administration module calls Attribute domain and PD completion message template from the territory of step 303, short message editing module;
Step 304, territory administration module return and call successful information;
Step 305, short message editing module are stored in memory module with the message template of setting up;
Step 306, memory module are returned the storage successful information to the short message editing module;
Step 307, short message editing module are returned note to the user and are set up successful information.
In addition, can also make amendment to message template, for example in step 301, the user sends to the short message editing module and revises the note solicited message; After step 304, can also comprise: short message editing module delete property territory or PD; And Attribute domain or PD can only be accomplished with the form of revising whole codes, can not only revise partial code.
The above-mentioned method of setting up message template embodiment, mutual through between short message editing module, territory administration module and the memory module accomplished the foundation of SMS module, gets ready for the user uses this message template to send short message.
As shown in Figure 4, be the signaling process figure of the short message sending method embodiment that the present invention is based on message template, this method comprises:
The process of step 301-step 305 that step 401-step 405 and the present invention set up message template embodiment is identical, does not give unnecessary details at this;
Step 406, user send note to the short message editing module and send request;
Step 407, short message editing module are called message template from memory module, and this message template is sent to pretreatment module;
Step 408, pretreatment module with the field code of Attribute domain and PD by territory content to replace separately after, short message is sent to the transmission sending module;
Step 409, sending module send short message;
Step 410, sending module return the transmission successful information to pretreatment module;
Step 411, pretreatment module are returned the transmission successful information through the short message editing module to the user.
Above-mentioned short message sending method based on message template; Utilize Attribute domain and PD when sending note, can field code separately be used territory content to replace separately; When having realized to different contacts transmission note; The short message content that different contacts is received has nothing in common with each other, thereby practices thrift various resources, and has promoted information receiver's susceptibility and satisfaction.
As shown in Figure 5, be the signaling process figure of the fixed-time short message sending embodiment that the present invention is based on message template, this process comprises:
Step 501-step 504 is identical with the process of the step 401-step 404 of the short message sending method embodiment that the present invention is based on message template, does not give unnecessary details at this;
Step 505, short message editing module are saved to memory module with message template automatically;
Step 506, user send the sending short messages at definite time solicited message to the short message editing module;
After step 507, short message editing module are received above-mentioned solicited message, time of the sending short messages at definite time that carries in the solicited message is sent to pretreatment module;
Step 508, pretreatment module save as the timed sending pattern with the said short message template;
Step 509, pretreatment module are regularly inquired about timer, if system time reaches the time of sending short messages at definite time, then pretreatment module with behind the territory content to replace separately, sends to sending module with the short message after substituting with the field code of Attribute domain and PD;
Step 510, sending module send the said short message breath;
Step 511, sending module return the transmission successful information to pretreatment module;
Step 512, pretreatment module are returned the transmission successful information to the user.
Above-mentioned fixed-time short message sending embodiment; SMS module through the territory processing module is set to the timed sending pattern; And regularly inquire about memory module, when system time reaches the scheduled time of sending short messages at definite time, accomplish field code alternative of Attribute domain and PD; And the short message after will being substituted by sending module sends, thereby accomplished the timing sending of short messages function preferably.
As shown in Figure 6, be the structural representation of terminal embodiment of the present invention, this terminal comprises: memory module 11 is used to store message template; Short message editing module 12 is used for comprising according to user's editing short message request editor the insertion territory of Attribute domain, accomplishes the foundation of message template, and the said short message template is kept at memory module 11; And send request according to user's note, from memory module 11, call the said short message template; Sending module 14 is used for sending short message according to user's transmission request; Pretreatment module 13; Be used for before above-mentioned sending module 14 sends said short message; Receive the message template that short message editing module 12 is sent, and with the field code of Attribute domain by the territory content to replace wherein, above-mentioned Attribute domain is represented through claimed the tlv triple of forming with the territory content by field code, domain name.
Wherein, above-mentioned insertion territory can also comprise PD, and the said short message editor module can also comprise: call unit is used for the PD of setting up according to user's editing short message request call; Insert the unit, be used for inserting the PD that above-mentioned call unit calls in the said short message template; Wherein, above-mentioned PD is represented through claimed the tlv triple of forming with the territory content by field code, domain name.In addition, call unit is for the PD of call establishment, and the said short message editor module can also comprise: set up the unit, be used for before the PD of call unit call establishment, set up PD according to user's the solicited message of setting up PD; Preserve the unit, be used for calling above-mentioned foundation of setting up the PD completion PD information of setting up the unit, and above-mentioned PD information is kept in the memory module according to the domain information of user's input.If comprise PD in the said short message template, above-mentioned pretreatment module needed the field code of PD is used the territory content to replace before sending module sends short message.And the field code of above-mentioned PD and Attribute domain all begins to finish with second predetermined symbol with first predetermined symbol; Above-mentioned pretreatment module can specifically comprise: recognition unit is used to identify above-mentioned first predetermined symbol and second predetermined symbol; Substituting unit is used for the field code of Attribute domain between above-mentioned first predetermined symbol and second predetermined symbol or PD is used territory content to replace separately.And above-mentioned first predetermined symbol and second predetermined symbol can be provided with as required, for example are set to " [" and "] " respectively.
In addition; The short message editing module can also be revised message template; Thereby the said short message editor module can also comprise: revise the unit; Be used for after above-mentioned insertion unit inserts message template with PD, revise PD according to user's modification note request, and amended message template is kept in the memory module.
In order to make above-mentioned terminal have the sending short messages at definite time function, this pretreatment module can comprise: preserve the unit, be used for after the timed sending request of the predetermined transmitting time that comprises note that receives the user, said message template being saved as the timed sending pattern; Processing unit; Be used for after said preservation unit message template is set to the timed sending pattern; Regularly inquire about timer; If system time reaches the predetermined transmitting time of note, then pretreatment module with the field code of Attribute domain and PD with sending said short message after alternative behind the territory content to replace separately.If when system time reached the predetermined transmitting time of note, the user shut down, treat that then the user starts shooting after, can regularly inquire about whether preserve short message to be sent in the memory module, if having, then send above-mentioned short message to be sent immediately.Certainly, before sending short message to be sent, all, then send above-mentioned short message to be sent immediately if having.Certainly, before sending short message to be sent, all need the field code of Attribute domain in the message template that short message to be sent adopted and PD to be redispatched after by territory content to replace separately by pretreatment module.
Above-mentioned terminal; Utilize the short message editing module to set up message template, the message template that utilizes memory module to preserve to have set up, utilize pretreatment module with the field code of Attribute domain with the territory content to replace after; Utilize sending module to send short message; The short message content that different contacts is received has nothing in common with each other, thereby practices thrift various resources, and has promoted information receiver's susceptibility and satisfaction.
It should be noted last that; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention.