Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on embodiments of the invention, those of ordinary skills belong to protection scope of the present invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 1, the present invention proposes a kind of information processing method, and this method comprises:
Step 100, obtain pending information;
Step 101, determine the data type of described information, and the data in the described information are transformed in the layout device corresponding with the data type of described information;
Step 102, the data in the layout device are converted into view, and show at same interface.
As seen, can be according to the selected corresponding layout device of the data type of information by technique scheme the present invention, not only make the information of different types of data to show with optimised form by the layout device, and at the complex information that has comprised a plurality of data types in the information, the present invention also can adopt corresponding layout device this information to be presented on the same interface of terminal, reduce the time of user's interface switching, improved user's experience.
Below in conjunction with accompanying drawing the embodiment of the invention is described in further detail.
As shown in Figure 2, the present invention proposes a kind of information processing method, and this method comprises:
Step 200, obtain pending information;
Step 201, the described information that will get access to are classified according to information type; Wherein, with the source of described information as information type; And store according to the information type of described information;
Step 202, determine the data type of described information, and the data in the described information are transformed in the layout device corresponding with the data type of described information;
Step 203, the data in the layout device are converted into view, and show at same interface.
In the scheme of the invention described above embodiment, above-mentioned information processing method can be divided into three levels, wherein,step 200 and 201 is to carry out the process that data are handled at the information that gets access to, and therefore the level corresponding withstep 200 and 201 is data analysis layer;Step 202 is converted into the processing procedure of layout device for information data, and therefore the level corresponding withstep 202 is the adaptation processing layer;Step 203 is for being converted into the data in the layout device processing procedure of view, and therefore the level corresponding withstep 102 is the view processing layer; The overall process of technical solution of the present invention is described out with the hierarchical structure of static state as shown in Figure 3.
Concrete, in above-mentionedsteps 200, obtain pending information, this information can be divided into short message, instant messaging information and microblogging information etc. according to the source of information, also can be for from the information in other system, and the present invention treats the source of process information and does not do concrete restriction.
Concrete, above-mentioned steps 201 can comprise two processes:
(1) the described information that will get access to is classified according to information type; Wherein, can be with the source of described information as information type in the embodiment of the invention;
In the embodiment of the invention, for every information can knowing that complete description gets access to, can describe with reference to the field form in the following table, also can revise voluntarily according to self-demand:
| id | The unique identification of information |
| sender | Information data sender |
| Type | Data type |
| Content list | The data content formation |
| time | The information time of reception |
(2) store according to the information type of described information;
In the embodiment of the invention, according to the information type of described information, the mode that adopts traversal to have information data determines to preserve the information type formation of described information;
When in existing information type formation, finding the information type formation of preserving described information, described information is inserted into the stem of this formation; In existing information type when not finding the information type formation of preserving described information in not, can be according to the newly-built information type formation of the information type of described information, and described information is inserted in this formation.
In addition, when the mode of the existing information data of above-mentioned employing traversal was added information data, the mode of the existing information data of traversal can be achieved through the following technical solutions:
Travel through all data that have in the information type formation by the type_index of queue pointer and offset pointer offset_index, specifically comprise:
The described type_index of queue pointer is from first information type formation, and is each along moving described offset pointer offset_index until described first information type formation afterbody;
After having traveled through described first information type formation, the mobile described type_index of queue pointer is to next information type formation, and along moving the traversal that offset pointer offset_index carries out each data in this information type formation, to the last an information type formation traversal finishes.
In the embodiment of the invention, the mode of the existing information data of traversal can adopt the mode of traversal fully, that is to say the data in all existing information type formations of traversal; Can also adopt the mode of part traversal, that is to say the mode of a certain or some information type formation in the existing information type formation of traversal.
Concrete,step 202 can comprise:
(1) determine the data type that comprises in the described information, described data type comprises single type and polymorphic type;
Wherein, described single type is any one in text message, pictorial information, video or the music information; Described polymorphic type is at least two kinds that have comprised in the described information in text message, pictorial information, video or the music information;
(2) according to the data type of the described information of determining, select corresponding layout device, wherein, described layout device comprises single type layout device and polymorphic type layout device; Data in the described information are filled in the selected described layout device.
Need to prove, related layout device in the embodiment of the invention, its function is that the data for the information that will get access to change into the utilizable assembly of view, wherein " conversion " refer to the data in the information are filled in the layout device, the data in this layout device can generate the view of these data afterwards.
Data type at information in the embodiment of the invention provides different layout devices respectively, wherein single type layout device can adopt the technical scheme of single type layout device of the prior art to realize, for example: when the data type of this information only is text message, use the text layout's device as shown in Figure 4 in single type layout device to come padding data; When the data type of this information is pictorial information, can use in single type layout device figure chip layout device as shown in Figure 5 to come padding data; When the data type of this information is video or music information, use in single type layout device layout device as shown in Figure 6 to come padding data;
In addition, when in this information, having comprised at least two kinds of data types, can adopt as shown in Figure 7 polymorphic type layout device to fill data in this information.
Specifically, described data in the described information are filled in the selected described layout device, comprise:
When the data type of described information is polymorphic type, the data in the described information are filled in the selected polymorphic type layout device, described polymorphic type layout device is paging type layout device, specifically comprises:
With the data of every kind of data type correspondence in the described information, be filled into successively among every Pageview figure that paging type layout device provides, wherein, only limit to fill the data of a kind of data type that comprises in the described information among described every Pageview figure; That is to say each page or leaf that text message, pictorial information, video and the music information that comprises in the same information will be filled into respectively in the paging type layout device;
Described paging type layout device provides two page-turning button to carry out the page turn over operation of view, so that check the page up of having filled or the data of descending one page.
Concrete, step 203 can comprise:
According to the data in the described layout device, determine in view, to show the needed position of described data, and according to the described position of determining the data in the described layout device are changed into view.
Further concrete, step 203 can be achieved through the following technical solutions:
(1) calculates needed Gao Yukuan when institute's padding data shows in the described layout device, in order to determine the zone that described layout device is placed in view;
(2) find the upper left corner of described layout device put area in view with respect to the coordinate in the whole view upper left corner (x, y);
(3) in the painting canvas of whole view, take out so that (x y) is upper left corner coordinate, and wide and high is the rectangle of needed Gao Yukuan when institute's padding data shows in the described layout device, as the painting canvas of the described layout device of doing;
(4) successively the data of filling in the described layout device are plotted on the painting canvas of described layout device, finish the conversion process from described layout device to view.
In addition, the detailed process for description of step more clearly 203 realizes is elaborated below in conjunction with accompanying drawing:
At first, calculate in the layout device of padding data data at view necessary for displaying height (height) and wide (width), and the zone that current layout device can be placed in definite view;
As shown in Figure 8, if the wide width<width_1 of current layout device is positioned over the A district with current layout device so; If width_2>width and width>width_1 are positioned over the B district with current layout device so; If width>width_2 then is positioned over the C district with current layout device;
Secondly, find the upper left corner of put area with respect to the coordinate in the whole view upper left corner (x, y);
Then, will in the painting canvas of whole view, downcut so that (x y) is the coordinate in the upper left corner, and wide is that width, height are the rectangle of height, as the painting canvas of current layout device;
At last, successively the data of filling in the current layout device are plotted on this painting canvas, finish the conversion from the layout device to view.
Need to prove, all data all are converted to corresponding layout device in the information that gets access to, and when all layout devices all are converted to view, whole view processing procedure finishes, at this moment, adopt on the screen of terminal of above-mentioned information processing method, can demonstrate the information of various different types of data.
In addition, the function of self-defined layout device can also be provided to the user in the embodiment of the invention, can pre-configured some kinds of information types in this self-defined layout device, and with these information types with the tabulation mode offer the user, for example: the user can select message among Fig. 9 in some information types, comes to carry out self-defined to the layout device of selected message by self-defined layout device.In addition, be to set up tabulation with the source of information as information type in the embodiment of the invention, in implementation procedure of the present invention, also can define information type according to actual needs voluntarily, among the present invention not the particular content to information type limit;
In this self-defined layout device, diversified self-defined style can be provided, as shown in Figure 9, the user is after selected information type, can be in a plurality of self-defined style on right side come selectedly according to self hobby, wherein self-defined style can comprise styles such as pivoted, grid type, tabulation formula and self-defined formula;
After the selected self-defined style of user, this self-defined layout device can provide a layout device edit page, and the ways of presentation that the user can self-defined information specifically can adopt the mode of gridding to realize, as shown in figure 10.In this way the user can definition information in the size of viewing area of each data block and the placement location and size of determining positions data,
The user is after setting personalized layout device by self-defined layout device, self-defined layout device will be integrated in the adaptation processing layer, when receiving the information corresponding with the information type of personalized layout device, data in this information directly are filled in the personalized layout device, in order to carry out the view switch process.
By self-defined layout device is provided to the user, the user can setting individual the layout device, data are converted into the individual demand that can satisfy the user in the process of view in the layout device, and the information that makes the user to browse to conform to self-demand is showed the interface.
The described information processing method of the embodiment of the invention can be applied on the terminal device, and this terminal device can be mobile phone, panel computer etc., but terminal device is not limited to mobile communication terminal described in the embodiment of the invention.
As shown in figure 11, based on the information processing method that above-described embodiment proposes, the present invention also proposes a kind of information handling system, and this system comprises:
Data processor 91 is used for obtaining pending information;
Adaptation processor 92 be used for to be determined the data type of the described information of described data processor storage, and the data in the described information are transformed in the layout device corresponding with the data type of described information;
Viewing processor 93 is used for the data of layout device are converted into view, and shows at same interface.
As seen, can be according to the selected corresponding layout device of the data type of information by technique scheme the present invention, not only make the information of different types of data to show with optimised form by the layout device, and at the complex information that has comprised a plurality of data types in the information, the present invention also can adopt corresponding layout device that this information is presented on the same interface of terminal, has reduced the time of user's interface switching.
Concrete, describeddata processor 91 also is used for:
The described information that gets access to is classified according to information type; Wherein, with the source of described information as information type; And store according to the information type of described information.
Concrete, as shown in figure 12, describeddata processor 91 further comprises:
Data acquisition module 911 is used for obtaining pending information;
Data sort module 912, the described information that is used for getting access to is classified according to information type;
Data Control module 913 is used for the information type according to the definite described information of described data sort module, and the mode that adopts traversal to have information data determines to preserve the information type formation of described information;
When in existing information type formation, finding the information type formation of preserving described information, described information is inserted into the stem of this formation; Otherwise, according to the newly-built information type formation of the information type of described information, and described information is inserted in this formation.
Further, in the data sort module after data acquisition module gets access to pending information, to classify to the information that receives according to information type earlier, the source of preference information is as information type in the embodiment of the invention, wherein, the source of information can comprise that short message, instant messaging information, microblogging information etc. are from the information of different communication systems;
In addition, in order clearly to describe every the information that gets access to, every information can be represented with some fields that for example some fields can comprise: id (unique identification of information), sender (information data sender), Type (data type), Content list (data content formation) and ime (information time of reception).In specific implementation of the present invention, can improve voluntarily according to self-demand.
Concrete, the mode of the existing information data of described traversal comprises:
Travel through all data that have in the information type formation by queue pointer and offset pointer;
Described queue pointer is from first information type formation, and is each along moving described offset pointer until described first information type formation afterbody;
After having traveled through described first information type formation, mobile described queue pointer is to next information type formation, and along moving the traversal that offset pointer is carried out each data in this information type formation, to the last an information type formation traversal finishes.
In the embodiment of the invention, the mode of the existing information data of traversal can adopt the mode of traversal fully, that is to say the data in all existing information type formations of traversal; Can also adopt the mode of part traversal, that is to say the mode of a certain or some information type formation in the existing information type formation of traversal.
Concrete, as shown in figure 12, describedadaptation processor 92 comprises:
Type determination module 921 is used for the data type that definite described information comprises, and described data type comprises single type and polymorphic type;
Wherein, described single type is any one in text message, pictorial information, video or the music information; Described polymorphic type is at least two kinds that have comprised in the described information in text message, pictorial information, video or the music information;
Data conversion module 922 is used for the data type according to the definite described information of described type determination module, selects corresponding layout device, and wherein, described layout device comprises single type layout device and polymorphic type layout device; And the data in the described information are filled in the selected described layout device.
Concrete, as shown in figure 12, describeddata conversion module 922 specifically comprises:
Layout device selectedcell 9221 is used for the data type according to the definite described information of described type determination module, selects corresponding layout device;
Data filler cells 9222, be used for when the described layout device that described layout device selected cell is selected is polymorphic type layout device, data with every kind of data type correspondence in the described information, be filled into successively among every Pageview figure that polymorphic type layout device provides, wherein, only limit to fill the data of a kind of data type that comprises in the described information among described every Pageview figure; Described polymorphic type layout device is paging type layout device:
Described paging type layout device provides two page-turning button to carry out the page turn over operation of view, so that check the page up of having filled or the data of descending one page.
Further, data type at information in the embodiment of the invention provides different layout devices respectively, wherein single type layout device can adopt the technical scheme of single type layout device of the prior art to realize, for example: when the data type of this information only is text message, use the text layout's device as shown in Figure 4 in single type layout device to come padding data; When the data type of this information is pictorial information, can use in single type layout device figure chip layout device as shown in Figure 5 to come padding data; When the data type of this information is video or music information, use in single type layout device layout device as shown in Figure 6 to come padding data;
In addition, when in this information, having comprised at least two kinds of data types, can adopt as shown in Figure 7 polymorphic type layout device to fill data in this information.
Concrete, viewingprocessor 93 specifically is used for:
Be transformed into data in the described layout device according to described adaptation processor, determine to show described data needed position in view, according to the described position of determining the data in the described layout device are changed into view.
Further concrete, as shown in figure 12, describedviewing processor 93 comprises:
Zone determination module 931 is used for calculating data needed Gao Yukuan when showing that described layout device is filled, in order to determine the zone that described layout device is placed in view; Also be used for finding described layout device in the upper left corner of view put area with respect to the coordinate in the whole view upper left corner (x, y);
Paintingcanvas generation module 932 is used for the painting canvas at whole view, takes out so that (x y) is upper left corner coordinate, and wide and high is the rectangle of needed Gao Yukuan when institute's padding data shows in the described layout device, as the painting canvas of the described layout device of doing;
View conversion module 933, the data that are used for successively described layout device being filled are plotted in the painting canvas of described layout device, finish the conversion process from described layout device to view.
Need to prove, all data all are converted to corresponding layout device in the information that gets access to, and when all layout devices all are converted to view, whole view processing procedure finishes, at this moment, adopt on the screen of terminal of above-mentioned information processing method, can demonstrate the information of various different types of data.
The described information processing method of the embodiment of the invention can be applied on the terminal device, and this terminal device can be mobile phone, panel computer etc., but terminal device is not limited to mobile communication terminal described in the embodiment of the invention.
Need to prove, the embodiment of the invention is based on the system embodiment that method embodiment shown in Figure 1 obtains, comprised with Fig. 1 embodiment in identical or corresponding technical scheme, therefore, relate in embodiments of the present invention with Fig. 1 method embodiment in identical technical scheme can not give unnecessary details one by one at this referring to the associated description of Fig. 1 embodiment.
As seen from the above technical solution provided by the invention, a kind of information processing method and system that the embodiment of the invention provides, at the information that receives, can be at the selected corresponding layout device of the data type of information, make the information that receives to be presented on the same interface of terminal, technical solution of the present invention has solved the existing information displaying scheme can only be to having the limitation that single data type information shows, realized that the complex information that has comprised a plurality of data types in an information shows at same interface, reduce the number of times of user's interface switching, improved user's experience.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement 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 domain of claims.