Summary of the invention
Technical problem solved by the invention is to provide a kind of portable terminal, so that injunctive menu can be revised flexibly, safeguard.
For solving the problems of the technologies described above, the invention provides a kind of portable terminal, comprise the menu module, be used in described terminal display menu layout, and, carry out corresponding operation according to the menu that the user selects, described menu module can comprise:
Unit operation store unit is used for the storage element operation file, and this yuan operation file provides the various menu operation orders that need execution;
The menu arrangements memory cell, be used for the storage menu topology file, this menu arrangements file provides layer menu to show, in the described layer menu, each menu item that needs executable operations action all corresponding record has an operation name, and each operation name is all corresponding with certain menu operation order in described first operation file;
Wherein, read the layer menu that described menu arrangements file provides,, determine corresponding operation name, and, carry out and the corresponding menu operation order of this operation name according to this operation name according to the menu item that the user selects by described first operation file.
Described first operation store unit can be the read-only memory unit in the portable terminal.
Described menu arrangements memory cell can be the read-write memory cell in the portable terminal.
This portable terminal may further include usb interface unit, and described menu arrangements file writes described menu arrangements memory cell by described usb interface unit.
This portable terminal may further include bluetooth interface units, and described menu arrangements file writes described menu arrangements memory cell by described bluetooth interface units.
This portable terminal may further include the infrared interface unit, and described menu arrangements file writes described menu arrangements memory cell by described infrared interface unit.
Owing to the hierarchical relationship that will operate among the present invention with menu separates, what is operated to determine to need execution by needs read operation name when clicking menu, and convenience so just is provided, and not only can increase menu operation, and the while also can be changed menu operation.
Because the present invention has adopted in each menu arrangements file to contain menu, when reading, menu is shown, and according to the user to the selection of menu option read operation name again, read simultaneously is according to realizing of preserving in the menu arrangements file, this just makes that upgrading is very convenient, only need to generate the menu arrangements file, and the menu arrangements file that will dispose is saved in the portable terminal and gets final product by rule.
Because the present invention separates first operation file and menu arrangements file; unit's operation file is the thing of crucial and core; this file is sintered in the read-only memory; and the menu arrangements file is generally all very little; because this menu arrangements file is very little so not only can be downloaded by existing network; and can adopt redundant technology to protect, thereby avoid misoperation of users and cause program to move.Can provide simultaneously instrument allow the user voluntarily edit-modify menu arrangements file download to easily on the assigned address of portable terminal by modes such as bluetooth, infrared or data wires then, make the user to generate the respective menu topology file like this, thereby realize flexible customization according to the wish of oneself.Can save great amount of manpower than traditional portable terminal, save a large amount of research and development time, when upgrading, the user only need surf the Net the configuration menu topology file is downloaded to get off to get final product.
Embodiment
At first, we are with portable terminal of the present invention and traditional portable terminal do one comparison, so that more clearly explain the present invention, and then portable terminal according to the present invention provides concrete execution mode.
One, after the user carries out the menu selection, carries out the difference of object.
Among the present invention, after the user carries out the menu selection, go operation, and show the layer menu that comprises according to menu and corresponding operation name.Compare with tradition and different to be: only comprise next stage operation name or operational order here in the performed operation, rather than the executable program file in the conventional art.
Two, the relation of menu, file and operation.
There is not this notion of menu file in the prior art, but the hierarchical relationship of menu is embodied in the programming procedure, in case after programming finished, this hierarchical relationship had just solidified, and do not need to read file during prior art Chinese food single-click, but directly with regard to executable operations.The code and the clicking operation of this operation bind together.And will operate among the present invention and the hierarchical relationship of menu has separated, when clicking menu, need the file of read operation to determine that what needs carry out and operate, convenience so just is provided, not only can increase menu operation, the while also can be changed menu operation.
The mode of operation of prior art be with the layout of menu and carried out after clicking menu operate in coding the time be solidificated in the executable program, then this executable program is sintered in the portable terminal by the sintering instrument, like this, drawback clearly is exactly to increase if desired when make an amendment at new function or interface to remodify program, generate executable program then, and once more program is sintered in the portable terminal with the sintering instrument.
And mode of operation of the present invention be operation that needs are carried out and menu arrangements etc. separately, the operation that needs to carry out provides as first operation sequence, which kind of be placed in the another one menu file and carry out operation with the layout of menu and after clicking menu, the file that will comprise unit's operation in advance is sintered in the portable terminal with the menu file that comprises menu arrangements, then when in the future needing to revise menu arrangements or increasing some menu operations, only the file of menu arrangements need be downloaded from the Internet or download and get final product by modes such as bluetooth, infrared, USB.
Three, the difference of storage positions of files.
In traditional portable terminal, be that operation and menu arrangements etc. all is placed in the file, in general this file is all bigger, it is unrealistic to download such file under present network condition, and for security consideration, generally all be placed in the read-only memory, can can't do not move like this owing to misoperation of users causes program.And the present invention separates first operation file and menu arrangements file; unit's operation is the thing of crucial and core; only this yuan operation file is sintered in the read-only memory; and the menu arrangements file is generally all very little; because this document is very little so not only can be downloaded by existing network; and can adopt redundant technology to protect, thereby avoid misoperation of users and cause program to move.Because the position that it is deposited not is in read-only memory, so can provide instrument allow user's edit-modify menu file voluntarily, download to easily on the assigned address of portable terminal by modes such as bluetooth, infrared or data wires then, thereby realize customization function easily.
The specific embodiment of the present invention has been described since to better implement the present invention.
Fig. 1 is the embodiments of the invention structural representations, as shown in the figure, has comprised menu module 101 in the portable terminal 10 of embodiment, and it is used in portable terminal 10 display menu layouts, and according to the menu that the user selects, carries out corresponding operation.In menu module 101, comprise: first operation store unit 1011, be used for the storage element operation file, this yuan operation file provides the various menu operation orders that need execution; Menu arrangements memory cell 1012, be used for the storage menu topology file, this menu arrangements file provides layer menu to show, in the layer menu, each menu item that needs executable operations action all corresponding record has an operation name, and each operation name is all corresponding with certain menu operation order in first operation file.
Read the layer menu that the menu arrangements file provides by first operation file,, determine corresponding operation name, and, carry out and the corresponding menu operation order of this operation name according to this operation name according to the menu item that the user selects.
Wherein first operation store unit 1011 is the read-only memory unit in the portable terminal.And menu arrangements memory cell 1012 is the read-write memory cell in the portable terminal.
Usb interface unit 102, bluetooth interface units 103, infrared interface unit 104 under the control of CPU, write menu arrangements memory cell 1012 with the menu arrangements file by usb interface unit 102, bluetooth interface units 103, infrared interface unit 104.
Fig. 2 is the implementing procedure figure of portable terminal among the embodiment, and as shown in Figure 1, the flow process of enforcement comprises the steps:
Step 201: setup menu topology file as required.
Include a layer menu and corresponding with option of a layer menu at least operation name in this menu file.The purpose that wherein contains menu is when reading this file, and just it being shown becomes the foundation that the user selects.
Step 202: the menu arrangements file is saved to portable terminal.
It can be to preserve by software sintering instrument that the menu arrangements file is saved to portable terminal, also can preserve by modes such as bluetooth, infrared, USB.
Step 203: first operation file reads the menu arrangements file and shows layer menu.
Step 204: first operation file is determined corresponding operation name according to the selection of layer menu.
Step 205: first operation file is carried out the corresponding menu operation order of this operation name.
This operational order also can be added in into first operation file by modes such as network, bluetooth, infrared, USB, the purpose that portable terminal is operated finally is the execution of operational order in fact, so can download the interpolation operational order by modes such as network, bluetooth, infrared, USB, greatly facilitate upgrading and maintenance to portable terminal.
Below by an example the present invention is described further:
In this example, our hypothesis will be finished and check missed call and play two operations of MP3.So as shown in Figure 3, have the following files in the menu arrangements file of our portable terminal at least:
First menu 10, mobile phone are provided with 11, message registration 12, telephone directory 13, multimedia 14, schedule 15, video-see 141, picture appreciate 142, MP3 plays 143, missed call 121, received call 122, call 123, first operation file 16.
Fig. 4 is a menu and the corresponding relation figure that operates name in the first menu file, as shown in the figure, menu option in first menu file 10 has at least: mobile phone setting, message registration, telephone directory, multimedia, schedule, respective operations mobile phone setting by name respectively, message registration, telephone directory, multimedia, schedule.
Fig. 5 is a menu and the corresponding relation figure that operates name in the multimedia file, as shown in the figure, menu option in multimedia file 14 has at least: video-see, picture are appreciated, MP3 plays, and respective operations is by name respectively: video-see, picture are appreciated, MP3 plays.
Fig. 6 is a menu and the corresponding relation figure that operates name in message registration file and the missed call file, as shown in the figure, menu option in message registration file 12 has at least: missed call, received call, call, respective operations is by name respectively: missed call, received call, call.
Menu option has at least in missed call file 121: delete missed call, check missed call, duplicate missed call, direct corresponding menu operation order: delete missed call, check missed call, duplicate missed call.
In first operation file 16, have at least following menu operation order: MP3 to play, delete missed call, check missed call, duplicate missed call.
Fig. 7 is that the user finishes the flow chart of checking missed call and playing two operations of MP3, and as shown in Figure 7, the step of enforcement is:
Step 701: read first menu file;
Step 702: show that the layer menu in the first menu file supplies the user to select;
Step 703: first operation file is determined corresponding operation name according to the selection of layer menu, if the multimedia in user's choice menus in the present embodiment, the multimedia according to option multimedia correspondence in the menu forwards step 704 to; If the selection message registration, the message registration according to option message registration correspondence in the menu option forwards step 707 to:
Step 704: read multimedia file;
Step 705: the layer menu in the demonstration multimedia file is selected to the user;
Step 706: if the MP3 in user's choice menus plays, play corresponding operational order according to option MP3 in the menu, first operation file is carried out the MP3 play command;
Step 707: read the message registration file;
Step 708: the layer menu in the demonstration message registration file is selected to the user;
Step 709: if the missed call in user's choice menus, the missed call according to option missed call correspondence in the menu reads missed call;
Step 710: the layer menu in the demonstration missed call is selected to the user;
Step 711: first operation file is carried out and is checked the missed call order.
Because the menu topology file all is equality in this portable terminal, menu option is corresponding with the operation name in the menu arrangements file, and each menu option be free to corresponding with all operations.Just play this option such as increasing MP3 in the menu option of missed call file fully among the present invention, the user is as long as select this option, just can basis and the operation name of its correspondence go to carry out next step operation.
Simultaneously, setup menu topology file as required in this portable terminal, the process that the menu arrangements file is saved to portable terminal can be finished by modes such as network or sintering instrument, bluetooth, infrared, USB.When adopting traditional used for mobile terminal sintering instrument to be sintered to program on the portable terminal, because the sintering tool user generally can not have, this portable terminal also can be finished by network download.
Very convenient according to the document upgrading that this portable terminal is worked out out, only need to generate configuration menu topology file and operational order, and this menu arrangements file and operational order be saved in the portable terminal get final product by rule.Can save great amount of manpower than traditional portable terminal, save a large amount of research and development time, and it be very convenient to upgrade, the user only need surf the Net menu arrangements file and operational order are downloaded to get off to get final product.