Summary of the invention
For the dissimilar message separate management existed in prior art, run alone the inconvenience brought, the invention provides a kind of mobile communication terminal information management method and message management system, make user can make message stores catalogue by oneself, and in catalogue, preserve different types of message, facilitate user freely to switch display mode.
To achieve the above object of the invention, the invention provides following technical scheme:
A kind of message management system, be applied to mobile communication terminal, comprise user-defined file, for storing message, described message comprises message header and message body.
Further, described system also has following features:
Also include user-defined file in described user-defined file, for storing message, described message comprises message header and message body.
Further, described system also has following features:
A corresponding message handle concordance list in each file, wherein message handle comprises type of message and message id, for indexing message header, then indexes message body by message header.
Further, described system also has following features:
Described message handle concordance list adopts fixed name to set up corresponding relation with corresponding file.
Further, described system also has following features:
Described type of message comprises following one or more: short message, multimedia short message and Email.
Further, described system also has following features:
Described system shows message to described user and specifically comprises:
Message handle concordance list is read in internal memory;
Obtain the sum that display screen allows display message;
At every turn allow the sum of display message message to be shown to be read from internal memory with described display screen and show.
Further, described system also has following features:
Described system also comprises multiple administration module managed message, and described administration module comprises following one or more: read module, preserve module, modified module and removing module;
When described user manages one or more message body, described system receives user is to the management request of message, and according to described management request, obtain message id and the type of message of described message, and call the administration module processing this management request in described system.
Further, described system also has following features:
The message of described system file folder is added, deletes or retouching operation time, the message handle concordance list corresponding at described file increases, delete or the message handle of amendment correspondence.
A kind of mobile communication terminal information management method, comprising:
User Defined file, for storing message;
For described user-defined file creates a message handle concordance list, wherein message handle comprises type of message and message id, for indexing message header, then indexes message body by message header;
Write message, described message comprises message header and message body;
Described user selects described file, obtains described message handle concordance list, reads and shows the message of said write.
Further, described method also has following features:
Described User Defined file also includes User Defined file, described in the user-defined file that is included accompany a corresponding message handle concordance list.
Further, described method also has following features:
Described message handle concordance list adopts fixed name to set up corresponding relation with corresponding file.
Further, described method also has following features:
Described reading the message showing said write specifically comprise:
Message handle concordance list is read in internal memory;
Obtain the sum that display screen allows display message;
At every turn allow the sum of display message message to be shown to be read from internal memory with described display screen and show.
Further, described method also has following features:
Described message comprises following one or more: short message, multimedia short message and Email.
Technical scheme provided by the invention, the message of multiple type of message preserved by each file, and type of message can arbitrary extension, user is made to have a guide look of local all types of message of preserving, and display mode can be switched easily, facilitate user to set up the administrative directory structure of oneself, make user to the experience browsing a upper level of local message.
Embodiment
Below in conjunction with accompanying drawing, the technical scheme that the embodiment of the present invention provides is described further.
As shown in Figure 1, message management system provided by the invention, be applied to mobile communication terminal, described system comprises multiple file, wherein said file is User Defined, such as, user, according to contact person, sets up following file in message management system: the file 3 of the file 1 of contact person A, the file 2 of contact person B and contact person C.Storing message in described file, can be SMS, MMS and EEMAIL message etc., described message comprises message header and message header.
The summary info of message that what wherein said message header was preserved is, lists the summary info of message, so that described user's fast browsing namely at interface described user.Specifically can also comprise message flag position information, as the download completeness of email or the flag bit etc. of download segment number, be convenient to the accepting state that described user knows message.
The specifying information of message that what wherein said message body was preserved is, i.e. the text of message, can comprise word, picture, song etc.
Further, described user can also set up file in file, by the file set up in file referred to as sub-folder, and in described sub-folder storing message, the message in wherein said subfile adopts the mode of message header and message body to store too.
In the system, the each file comprising sub-folder is all configured with a corresponding message handle concordance list, and comprise multiple message handle, wherein message handle comprises type of message and message id, for indexing message header, then index message body by message header.
Such as, the message id of message is 3, and type of message is SMS, and the message header of message is the name of contact person A, and the content of message body is " hello ".In message handle concordance list, the message handle of this message is ID:3, Type:SMS.When reading this message, according to described message handle, index described message header, i.e. the name of contact person A, then by this message header, index message body, obtain the specifying information " hello " of this message.
In the system, described message handle concordance list adopts fixed name to set up corresponding relation with corresponding file, the message handle concordance list of such as file 1 can called after 1, after preventing user from revising the folder content structure of described message management system, cannot accurate localization message handle concordance list.
When described system shows message to described user, message handle concordance list is read in internal memory by described system, obtain the sum that display screen allows display message, allow the sum of display message message to be shown to be read from internal memory with described display screen at every turn and show.
Such as, if record the message handle of 16 message in described message handle concordance list, get in display screen and allow the message shown to be the message header of 5 message, from internal memory, then read this message handle concordance list, according to the message handle in described message handle concordance list, each reading 5 message, and the message header of described 5 message is shown to described user, according to the selection of described user to message header, read the message body that described message header is corresponding.When described user asks to show lower one page, then from internal memory, reading 5 message show, and so analogize.
After the described message of display, if described user needs to manage one or more message body, as as described in system receives user to the management request of one or more message, then according to described management request, obtain message id and the type of message of described message, and call the administration module processing this management request in described system, wherein said administration module comprises following one or more: read module, preserve module, modified module and removing module, wherein said administration module comprises the administrative unit managed the message of different messages type, as removing module comprises SMS delete cells, MMS delete cells, EEMAIL delete cells.
When actual motion, above-mentioned administration module is realized by function:
Below to after User Defined file, the idiographic flow storing dissimilar message is described further.
In the system, in User Defined file, the management of message is that message based virtual base class completes; In other words, as long as the type of message inheriting the virtual base class of message can be inherited in user-defined file, thus unified management is carried out to various message.
Wherein pre-define the basic structure variable of multiple Message Opcode and message in virtual message base class, wherein said Message Opcode can be the operations such as preservation, reading, deletion, amendment, and the basic structure variable of message can be message id and type of message etc.In system, the message of all type of messages has all inherited this virtual message base class
Specifically, the structure of virtual message base class comprises: the pointer of a sensing virtual table, the id of message, type of message and a reference count.
The virtual table that described virtual message base class pointer points to is the function for managing described message, comprise following one or more: by the write function in message writing in files, the copy function of function reading message read from file, the application function for different messages type solicitation message structure, release function message deleted from file or copy message.
To store a piece of news, a message is saved in the step of going in User Defined file and comprises:
S10, type of message according to message, obtain the message structure for preserving this message;
Wherein said message structure calls the several message structure generated according to type of message of application letter for pre-qualification;
If the type of message of described message is new type of message, then described application function is that this new message type generates a new message structure, for setting up the corresponding relation of described new message type and described newly-established message structure.
S11, in described message structure, add the information of described message, and configure the virtual message base class of described message, wherein said virtual message base class comprises the message id of this message, type of message and points to the pointer of write function;
Wherein optional in this step, it can also be the pointer of described other correspondences of message arrangement, what this pointer can point to message for reading this type of message reads in function, point to the deletion function of the message for deleting this type of message, be convenient to user after the described message of preservation, when this message is managed, this management request can be responded fast.
S12, according to the pointer in described virtual message base class, call write function, and according to type of message, call the write function of this type of message.
The step principle reading message is identical with it.
Further, when the task of described system process is more, described virtual message base class also comprises reference count, marks the processing sequence of this task.
Such as, when described system to delete an ID be 3 and Type is the message of SMS time, described system generates the virtual message base class comprising following information: ID:3, Type:SMS and one point to the pointer of removing module, and the reference count marking this task is 3.
When system process is to this task, according to the pointer in described virtual message base class, call the administration module that this pointer is corresponding, again according to the type of message in described virtual message base class, call the administrative unit in described administration module, the message adopting described administrative unit corresponding to ID in described virtual message base class manages.
Such as, described system is according to processing sequence, processing reference count is the task of 3, described reference count is that in the task of 3, virtual message base class comprises following information: the pointer of ID:3, Type:SMS and a sensing removing module, and described system is according to the pointer of described sensing removing module, call removing module, and according to described type of message SMS, call the SMS delete cells in described removing module, adopt described SMS delete cells to carry out deletion action to the message that message id is 3.
It should be noted that, when the message of described system file folder is added, deletes or retouching operation time, described system needs to increase at the message handle concordance list that described file is corresponding, delete or the message handle of amendment correspondence.
Such as, in described system-kill file 1, ID is 3 and Type is the message of SMS, then in the message handle file of described file 1 correspondence, delete the message handle of this message.
The message management system that the embodiment of the present invention provides, the message of multiple type of message preserved by each file, and type of message can arbitrary extension, user is made to have a guide look of local all types of message of preserving, and display mode can be switched easily, facilitate user to set up the administrative directory structure of oneself, make user to the experience browsing a upper level of local message.
Below in conjunction with message management system provided by the invention, a kind of mobile communication terminal information management method provided by the invention is introduced, as shown in Figure 2:
Step 201, User Defined file, for storing message;
Concrete, the multiple file of described User Defined, can also in the file set up nested one or more sub-folder.
Step 202, create a message handle concordance list for described user-defined file, wherein message handle comprises type of message and message id, for indexing message header, then indexes message body by message header;
Concrete, described message handle concordance list adopts fixed name to set up corresponding relation with corresponding file.
If described file is nested with sub-folder, described sub-folder also has a corresponding message handle concordance list, and the message handle concordance list of this sub-folder adopts fixed name to set up corresponding relation with corresponding file equally.
Step 203, write message, described message comprises message header and message body;
Step 204, described user select described file, obtain described message handle concordance list, read said write message.
Concrete, message handle concordance list corresponding for described file is read in internal memory, and obtains the sum that display screen allows display message, allow the sum of display message message to be shown to be read from internal memory with described display screen at every turn and show.
Described in said method, message comprises following one or more: short message, multimedia short message and Email.
The mobile communication terminal information management method that the embodiment of the present invention provides, the message of multiple type of message preserved by each file, and type of message can arbitrary extension, user is made to have a guide look of local all types of message of preserving, and display mode can be switched easily, facilitate user to set up the administrative directory structure of oneself, make user to the experience browsing a upper level of local message.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range described in claim.