Summary of the invention
Embodiment of the present invention technical problem to be solved is, provides a kind of program ordering method and Set Top Box, and make the location index information of each program in different program set separate, the home network in each program set can change separately.
In order to solve the problems of the technologies described above, embodiments provide a kind of program ordering method, comprising:
When needs are by program set display program, detect the location index information of program to be shown, wherein, described location index information comprises the group indication information of the program set associated by described program to be shown and the position indication information of described program to be shown in the described program set associated;
According to described location index information, determine the position of described program to be shown in the program set of described association;
According to the position of described program to be shown in the program set of described association, show described program to be shown.
Wherein, described when needs are by program set display program, before detecting the step of location index information of program to be shown, also comprise:
Whether detection user treats display program performs position edit operation;
If so, according to the edit operation of described position, obtain the location index information of described program to be shown and preserve.
Wherein, described location index information comprises a specific data structure, described specific data structure comprises a member variable and an array, wherein, described member variable is for recording the group indication information of the program set associated by described program to be shown, and described array is for recording the position indication information of described program to be shown in the program set of described association.
Wherein, whether treat before display program performs the step of position edit operation described detection user, also comprise:
Searching programs, after program searching, to the program definition position index information searched out and initialization.
Wherein, also comprise:
When detect user treat display program perform remove operation time, the location index information of program to be shown described in initialization.
Correspondingly, the embodiment of the present invention additionally provides a kind of Set Top Box, comprising: detection module, determination module, display module, wherein:
Described detection module, for when needs are by program set display program, detect the location index information of program to be shown, wherein, described location index information comprises the group indication information of the program set associated by described program to be shown and the position indication information of described program to be shown in the described program set associated;
Described determination module, for the location index information detected according to described detection module, determines the position of described program to be shown in the program set of described association;
Described display module, for the position of program described to be shown in the program set of described association determined according to described determination module, shows described program to be shown.
Wherein, also comprise:
Whether editor module, treat display program perform position edit operation for detecting user;
Preserve module, for detect when described editor module user treat display program perform position edit operation time, according to the edit operation of described position, obtain the location index information of described program to be shown and preserve.
Wherein, described location index information comprises a specific data structure, described specific data structure comprises a member variable and an array, wherein, described member variable is for recording the group indication information of the program set associated by described program to be shown, and described array is for recording the position indication information of described program to be shown in the program set of described association.
Wherein, also comprise:
Definition module, for searching programs, after program searching, 0 to the program definition position index information searched out and initialization.
Wherein, also comprise:
Initialization module, for when detect user treat display program perform remove operation time, the location index information of program to be shown described in initialization.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention is by 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, user is facilitated to edit the home network in each program set, and the home network do not affected in other program set, improve Consumer's Experience.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, is the structural representation of the first embodiment of Set Top Box of the present invention.Described Set Top Box comprises: detection module 10, determination module 20, display module 30, wherein:
Described detection module 10, for when needs are by program set display program, detect the location index information of program to be shown, wherein, described location index information comprises the group indication information of the program set associated by described program to be shown and the position indication information of described program to be shown in the described program set associated.
Concrete, program set can be divided into: like group 1, like group 2 etc., suppose to like that group 1 comprises: program 1, program 2, program 4, program 7 four programs, like that group 2 comprises: program 3, program 4, program 6, program 7 four programs.
In the present embodiment, suppose that user needs to show the program liked in group 1, then described detection module 10 detects the location index information of order 1, program 2, program 4, program 7 four programs respectively.
Wherein, described location index information comprises the group indication information of the program set associated by described program to be shown and the position indication information of described program to be shown in the described program set associated.Location index information as program 4 comprises: like that the group indication information of group 1 is 0, program 4 likes that the position indication information in group 1 is 3.
In like manner, described detection module 10 can detect the location index information of program 1, program 2, these three programs of program 7, is not repeated herein.
Described determination module 20, for the location index information detected according to described detection module 10, determines the position of described program to be shown in the program set of described association;
Concrete, according to the location index information of the program 4 that described detection module 10 detects, described determination module 20 can determine that program 4 likes that the position in group 1 is: the 3rd.
In like manner, described determination module 20 can determine that program 1, program 2, program 7 like that the position in group 1 is respectively: first, second, the 4th, be not repeated herein.
Described display module 30, for the position of program described to be shown in the program set of described association determined according to described determination module 20, shows described program to be shown.
Concrete, each program to be shown determined according to described determination module 20 likes the position in group 1, and described display module 30 the most described program to be shown shows in the following order: program 1, program 2, program 4, program 7.
In the present embodiment, like that group 1 is described for example, in other embodiments, when user needs to show the program in other program set, described detection module 10 also can detect the location index information of each program in this program set respectively, described determination module 20 can determine the position of each program in this program set respectively according to the location index information of program, and described display module 30 can according to each program this program set of position display in this program set.
Wherein, described location index information comprises the group indication information of the program set associated by described program to be shown and the position indication information of described program to be shown in the described program set associated.The location index information of the program in each program set is separate, therefore can realize the independent change on the home network in program set and the home network do not affected in other program set.
The embodiment of the present invention is by 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, facilitate user to edit the home network in each program set, improve Consumer's Experience.
Referring to Fig. 2, is the structural representation of the second embodiment of Set Top Box of the present invention.Described Set Top Box comprises in the first embodiment of above-mentioned Set Top Box: detection module 10, determination module 20, display module 30, in the present embodiment, described mobile terminal comprises further: definition module 40, editor module 50, preservation module 60 and initialization module 70, wherein:
Described definition module 40, for searching programs, after program searching, to the program definition position index information searched out and initialization.
Wherein, described location index information comprises a specific data structure, described specific data structure comprises a member variable and an array, wherein, described member variable is for recording the group indication information of the program set associated by described program to be shown, and described array is for recording the position indication information of described program to be shown in the program set of described association.
Concrete, the member variable that described location index information comprises, for recording the group indication information of the program set associated by described program to be shown; The array that described location index information comprises, for recording the position indication information of described program to be shown in the program set of described association.As: the variable 0(group indication information in group_post [0]) can represent that a program is in program set 1, and its array group_post [0] can be its imparting value 2, i.e. group_post [0]=2, the position indication information in described 2(program set) just show 2nd position of this program in program set 1; In like manner, when the location index information of a program is group_post [1]=3, this program the 3rd position in program set 2 can be represented, the like, be not repeated herein.
Described definition module 40 is after program searching, and to the program definition position index information searched out and initialization, initialized location index information can be group_post [group_num
max], wherein group_num
maxthe storable maximum program numerical value defined in representation program.
Whether described editor module 50, perform position edit operation to the program to be shown that described definition module 40 searches out for detecting user.
Concrete, the edit operation of described position comprises: increase program to program set, move the program location in program set, delete the program in program set, by realizations such as ByName sequence of the prior art, Move operations.Suppose that described editor module 50 detects that program 4 is increased to by user and likes in group 1, and program 4 is liked that the position in group 1 moves to the 3rd; Described editor module 50 also detects that program 4 is increased to by user and likes in group 2, and program 4 is liked that the position in group 2 moves to second.
Described preservation module 60, for detect when described editor module 50 user treat display program perform position edit operation time, according to the edit operation of described position, obtain the location index information of described program to be shown and preserve.
Concrete, detect according to described editor module 50 the position edit operation that user performs program 4, the location index information that described preservation module 60 obtains program 4 is group_post [0]=3, group_post [1]=2, and preserves.
Described initialization module 70, for when detect user treat display program perform remove operation time, the location index information of program to be shown described in initialization.
Concrete, supposing that described initialization module 70 detects that user performs program 4 and removes operation, is then group_post [group_num by the location index information initializing of program 4
max].
The embodiment of the present invention is by 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, user is facilitated to edit the home network in each program set, and the home network do not affected in other program set, improve Consumer's Experience.
Referring to Fig. 3, is the flow chart of the first embodiment of program ordering method of the present invention.Described method comprises:
S101, when needs are by program set display program, detects the location index information of program to be shown.
Concrete, program set can be divided into: like group 1, like group 2 etc., suppose to like that group 1 comprises: program 1, program 2, program 4, program 7 four programs, like that group 2 comprises: program 3, program 4, program 6, program 7 four programs.
In the present embodiment, suppose that user needs to show the program liked in group 1, then described S101 detects the location index information of order 1, program 2, program 4, program 7 four programs respectively.
Wherein, described location index information comprises the group indication information of the program set associated by described program to be shown and the position indication information of described program to be shown in the described program set associated.Location index information as program 4 comprises: like that the group indication information of group 1 is 0, program 4 likes that the position indication information in group 1 is 3.
In like manner, described S101 can detect the location index information of program 1, program 2, these three programs of program 7, is not repeated herein.
S102, according to described location index information, determines the position of described program to be shown in the program set of described association.
Concrete, according to the location index information of the program 4 that described S101 detects, described S102 can determine that program 4 likes that the position in group 1 is: the 3rd.
In like manner, described S02 can determine that program 1, program 2, program 7 like that the position in group 1 is respectively: first, second, the 4th, be not repeated herein.
S103, according to the position of described program to be shown in the program set of described association, shows described program to be shown.
Concrete, each program to be shown determined according to described S102 likes the position in group 1, and described S103 the most described program to be shown shows in the following order: program 1, program 2, program 4, program 7.
In the present embodiment, like that group 1 is described for example, in other embodiments, when user needs to show the program in other program set, described S101 also can detect the location index information of each program in this program set respectively, described S102 can determine the position of each program in this program set respectively according to the location index information of program, and described S103 can according to each program this program set of position display in this program set.
Wherein, described location index information comprises the group indication information of the program set associated by described program to be shown and the position indication information of described program to be shown in the described program set associated.The location index information of the program in each program set is separate, therefore can realize the independent change on the home network in program set and the home network do not affected in other program set.
The embodiment of the present invention is by 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, facilitate user to edit the home network in each program set, improve Consumer's Experience.
Referring to Fig. 4, is the flow chart of the second embodiment of program ordering method of the present invention.Described method comprises:
S201, searching programs, after program searching, to the program definition position index information searched out and initialization.
S202, whether detection user treats display program performs position edit operation.If the determination result is YES, S203 is performed; If judged result is no, operation terminates.
S203, according to the edit operation of described position, obtains the location index information of described program to be shown and preserves.
S204, when needs are by program set display program, detects the location index information of program to be shown.
S205, according to described location index information, determines the position of described program to be shown in the program set of described association.
S206, according to the position of described program to be shown in the program set of described association, shows described program to be shown.
S207, when detect user treat display program perform remove operation time, the location index information of program to be shown described in initialization.
The embodiment of the present invention is by 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, user is facilitated to edit the home network in each program set, the independent change on the home network in program set can be realized and the home network do not affected in other program set, improve Consumer's Experience.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by software and realize, and can certainly all be implemented by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.