Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of program ordering method and STB are provided, and makes the location index information of each program in different program set separate, and the program order in each program set can change separately.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of program ordering method, comprising:
When needs are pressed the program set display program; Detect the location index information of program to be shown; Wherein, said location index information comprise said program to be shown group-indicate information and the said program to be shown position indication information in said related program set of related program set;
According to said location index information, confirm the position of said program to be shown in the program set of said association;
According to the position of said program to be shown in the program set of said association, show said program to be shown.
Wherein, said when needs when the program set display program, detect before the step of location index information of program to be shown, also comprise:
Whether the detection user treats display program has been carried out the position edit operation;
If, obtain the location index information and the preservation of said program to be shown according to the edit operation of said position.
Wherein, Said location index information comprises a specific data structure; Comprise a member variable and an array in the said specific data structure; Wherein, said member variable be used to write down said program to be shown the group-indicate information of related program set, said array is used for writing down the position indication information of said program to be shown in the program set of said association.
Wherein, whether treat before display program carried out the step of position edit operation, also comprise said detection user:
The search program is after program searching finishes, to program definition position index information and the initialization that searches out.
Wherein, also comprise:
Treat display program and carried out and remove when operation, the location index information of the said program to be shown of initialization when detecting the user.
Correspondingly, the embodiment of the invention also provides a kind of STB, comprising: detection module, determination module, display module, wherein:
Said detection module; Be used for when needs during by the program set display program; Detect the location index information of program to be shown; Wherein, said location index information comprise said program to be shown group-indicate information and the said program to be shown position indication information in said related program set of related program set;
Said determination module is used for confirming the position of said program to be shown in the program set of said association according to the detected location index information of said detection module;
Said display module, the program said to be shown that is used for confirming according to said determination module shows said program to be shown in the position of the program set of said association.
Wherein, also comprise:
Editor module is used to detect the user and whether treats display program and carried out the position edit operation;
Preserve module, be used for when said editor module detects the user and treats display program and carried out the position edit operation,, obtaining the location index information and the preservation of said program to be shown according to the edit operation of said position.
Wherein, Said location index information comprises a specific data structure; Comprise a member variable and an array in the said specific data structure; Wherein, said member variable be used to write down said program to be shown the group-indicate information of related program set, said array is used for writing down the position indication information of said program to be shown in the program set of said association.
Wherein, also comprise:
Definition module is used to search for program, after program searching finishes, and 0 pair of program definition position index information and initialization that searches out.
Wherein, also comprise:
Initialization module is used for treating display program and having carried out and remove when operation, the location index information of the said program to be shown of initialization when detecting the user.
Embodiment of the present invention embodiment has following beneficial effect:
The embodiment of the invention is through comprising the mode of the location index information of specific data structure to program definition one; Make the location index information of each program in different program set separate; Make things convenient for the user that the program in each program set is edited in proper order; And do not influence the program order in other program set, promoted user experience.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
See also Fig. 1, be the structural representation of first embodiment of STB of the present invention.Said STB comprises: detection module 10, determination module 20, display module 30, wherein:
Said detection module 10; Be used for when needs during by the program set display program; Detect the location index information of program to be shown; Wherein, said location index information comprise said program to be shown group-indicate information and the said program to be shown position indication information in said related program set of related program set.
Concrete, program set can be divided into: like organizing 1, like organizing 2 etc., suppose to like organizing in 1 to comprise: program 1, program 2, program 4,7 four programs of program, and like organizing in 2 and comprise: program 3, program 4, program 6,7 four programs of program.
In the present embodiment, suppose that the user need show the program of liking organizing in 1, then said detection module 10 detects the location index information of order 1, program 2, program 4,7 four programs of program respectively.
Wherein, said location index information comprise said program to be shown group-indicate information and the said program to be shown position indication information in said related program set of related program set.Location index information like program 4 comprises: like organizing 1 group-indicate information and be 0, program 4 is 3 in the position indication information of liking organizing in 1.
In like manner, said detection module 10 can detect the location index information of program 1, program 2, program 7 these three programs, does not give unnecessary details at this.
Said determination module 20 is used for confirming the position of said program to be shown in the program set of said association according to said detection module 10 detected location index information;
Concrete, according to the location index information of said detection module 10 detected programs 4, said determination module 20 can confirm that program 4 in the position of liking organizing in 1 is: the 3rd.
In like manner, said determination module 20 can confirm that program 1, program 2, program 7 are respectively in the position of liking organizing in 1: first, second, the 4th, do not give unnecessary details at this.
Said display module 30, the program said to be shown that is used for confirming according to said determination module 20 shows said program to be shown in the position of the program set of said association.
Concrete, each program to be shown of confirming according to said determination module 20 is in the position of liking organizing in 1, and said display module 30 the most said programs to be shown show by following order: program 1, program 2, program 4, program 7.
In the present embodiment; Be to like that organizing 1 is that example describes; In other embodiments, when the user need show the program in other program set, said detection module 10 also can detect the location index information of each program in this program set respectively; Said determination module 20 can be confirmed the position of each program in this program set respectively according to the location index information of program, and said display module 30 can be according to this program set of the position display of each program in this program set.
Wherein, said location index information comprise said program to be shown group-indicate information and the said program to be shown position indication information in said related program set of related program set.Therefore the location index information of the program in each program set is separate, and can realize does not influence the program order in other program set to the independent change of the order of the program in the program set.
The embodiment of the invention is through comprising the mode of the location index information of specific data structure to program definition one; Make the location index information of each program in different program set separate; Make things convenient for the user that the program in each program set is edited in proper order, promoted user experience.
See also Fig. 2, be the structural representation of second embodiment of STB of the present invention.Said STB comprises among first embodiment of above-mentioned STB: detection module 10, determination module 20, display module 30; In the present embodiment; Said portable terminal further comprises: definition module 40, editor module 50, preservation module 60 and initialization module 70, wherein:
Said definition module 40 is used to search for program, after program searching finishes, to program definition position index information and the initialization that searches out.
Wherein, Said location index information comprises a specific data structure; Comprise a member variable and an array in the said specific data structure; Wherein, said member variable be used to write down said program to be shown the group-indicate information of related program set, said array is used for writing down the position indication information of said program to be shown in the program set of said association.
Concrete, a member variable that comprises in the said location index information, be used to write down said program to be shown the group-indicate information of related program set; An array that comprises in the said location index information is used for writing down the position indication information of said program to be shown in the program set of said association.As: the variable 0 among the group_post [0] (group-indicate information) can represent that a program is in program set 1; And its array group_post [0] can be its value of giving 2; Be group_post [0]=2, said 2 (position indication information in the program set) just show 2nd position of this program in program set 1; In like manner, the location index information of a program is group_post [1]=3 o'clock, can represent this program the 3rd position in program set 2, and the like, do not give unnecessary details at this.
Said definition module 40 is after program searching finishes, and to program definition position index information and the initialization that searches out, initialized location index information can be group_post [group_num
Max], group_num wherein
MaxA storable maximum program numerical value that defines in the representation program.
Said editor module 50 is used to detect the user and whether the program to be shown that said definition module 40 searches out has been carried out the position edit operation.
Concrete, the edit operation of said position comprises: increase program to program set, the program location in the program set is moved, the program in the deletion program set can be through realizations such as By Name ordering of the prior art, Move operations.Suppose that said editor module 50 detects the user and program 4 is increased to likes organizing in 1, and program 4 is moved to the 3rd in the position of liking organizing in 1; Said editor module 50 also detects the user and program 4 is increased to likes organizing in 2, and program 4 is moved to second in the position of liking organizing in 2.
Said preservation module 60 is used for when said editor module 50 detects the user and treats display program and carried out the position edit operation, according to the edit operation of said position, obtains the location index information of said program to be shown and preserves.
Concrete, detecting the position edit operation that the user carries out program 4 according to said editor module 50, the location index information that said preservation module 60 obtains program 4 is group_post [0]=3, group_post [1]=2, and preserves.
Said initialization module 70 is used for treating display program and having carried out and remove when operation, the location index information of the said program to be shown of initialization when detecting the user.
Concrete, suppose that said initialization module 70 detects the user and program 4 has been carried out removed operation, then the location index information initializing with program 4 is group_post [group_num
Max].
The embodiment of the invention is through comprising the mode of the location index information of specific data structure to program definition one; Make the location index information of each program in different program set separate; Make things convenient for the user that the program in each program set is edited in proper order; And do not influence the program order in other program set, promoted user experience.
See also Fig. 3, be the flow chart of first embodiment of program ordering method of the present invention.Said method comprises:
S101 when needs are pressed the program set display program, detects the location index information of program to be shown.
Concrete, program set can be divided into: like organizing 1, like organizing 2 etc., suppose to like organizing in 1 to comprise: program 1, program 2, program 4,7 four programs of program, and like organizing in 2 and comprise: program 3, program 4, program 6,7 four programs of program.
In the present embodiment, suppose that the user need show the program of liking organizing in 1, then said S101 detects the location index information of order 1, program 2, program 4,7 four programs of program respectively.
Wherein, said location index information comprise said program to be shown group-indicate information and the said program to be shown position indication information in said related program set of related program set.Location index information like program 4 comprises: like organizing 1 group-indicate information and be 0, program 4 is 3 in the position indication information of liking organizing in 1.
In like manner, said S101 can detect the location index information of program 1, program 2, program 7 these three programs, does not give unnecessary details at this.
S102 according to said location index information, confirms the position of said program to be shown in the program set of said association.
Concrete, according to the location index information of the detected program 4 of said S101, said S102 can confirm that program 4 in the position of liking organizing in 1 is: the 3rd.
In like manner, said S02 can confirm that program 1, program 2, program 7 are respectively in the position of liking organizing in 1: first, second, the 4th, do not give unnecessary details at this.
S103 according to the position of said program to be shown in the program set of said association, shows said program to be shown.
Concrete, each program to be shown of confirming according to said S102 is in the position of liking organizing in 1, and the most said program to be shown of said S103 shows by following order: program 1, program 2, program 4, program 7.
In the present embodiment; Be to like that organizing 1 is that example describes; In other embodiments, when the user need show the program in other program set, said S101 also can detect the location index information of each program in this program set respectively; Said S102 can confirm the position of each program in this program set respectively according to the location index information of program, and said S103 can be according to this program set of the position display of each program in this program set.
Wherein, said location index information comprise said program to be shown group-indicate information and the said program to be shown position indication information in said related program set of related program set.Therefore the location index information of the program in each program set is separate, and can realize does not influence the program order in other program set to the independent change of the order of the program in the program set.
The embodiment of the invention is through comprising the mode of the location index information of specific data structure to program definition one; Make the location index information of each program in different program set separate; Make things convenient for the user that the program in each program set is edited in proper order, promoted user experience.
See also Fig. 4, be the flow chart of second embodiment of program ordering method of the present invention.Said method comprises:
S201, the search program is after program searching finishes, to program definition position index information and the initialization that searches out.
S202, whether the detection user treats display program has been carried out the position edit operation.If judged result is for being execution S203; If judged result is for denying EO.
S203 according to the edit operation of said position, obtains the location index information and the preservation of said program to be shown.
S204 when needs are pressed the program set display program, detects the location index information of program to be shown.
S205 according to said location index information, confirms the position of said program to be shown in the program set of said association.
S206 according to the position of said program to be shown in the program set of said association, shows said program to be shown.
S207 treats display program and has carried out and remove when operation, the location index information of the said program to be shown of initialization when detecting the user.
The embodiment of the invention is through comprising the mode of the location index information of specific data structure to program definition one; Make the location index information of each program in different program set separate; Make things convenient for the user that the program in each program set is edited in proper order; Can realize the independent change of the program in program set order is not influenced the program order in other program set, promote user experience.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement through hardware.Based on such understanding; All or part of can the coming out that technical scheme of the present invention contributes to background technology with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Above disclosedly be merely preferred embodiment of the present invention; Certainly can not limit the present invention's interest field with this; One of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description; And, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.