The file memory method of mobile terminal and storage device
Technical field
The present invention relates to communication technical field, particularly to a kind of file memory method of mobile terminal and storage device.
Background technology
For mobile terminal utilization rate more and more higher, it is a few to store one that user becomes increasingly dependent on mobile terminal to current user
People's information such as photograph, contact person, video etc., but in these information, a part is that user is not intended to others and sees.But it is existing
Some mobile terminals itself can not meet this demand of client, but need by download carry third-party application realize right
The secret storage of secret file.
So, a kind of mobile terminal that can realize the storage of file secret is provided, particularly necessary.
Content of the invention
The main object of the present invention be a kind of file memory method of mobile terminal and storage device are provided it is intended to realize right
The secret storage of file.
For achieving the above object, the file memory method of mobile terminal proposed by the present invention, includes following steps:
Described mobile terminal has secret memory space and generic storage space;Described file memory method includes walking as follows
Suddenly:
During file storage, obtain the operational order of user input;
Assignment is carried out to the storage token variable of described file according to described operational order;
According to the value of described storage token variable, described file is stored in corresponding secret memory space or generic storage
Space.
Optionally, described operational order includes true value assignment directive and falsity assignment directive;When described operational order is true
During value assignment directive, the storage token variable of described file is entered as very, and file is stored in described secret memory space;
When described operational order is falsity assignment directive, the storage token variable of described file is entered as vacation, and file is stored
In described generic storage space.
Optionally, described mobile terminal has the first edge region being oppositely arranged and second edge region;Described acquisition
The step of the operational order of user input includes:
Obtain the gesture in described first edge region and/or the input of described second edge region for the user;
Corresponding operational order is obtained according to described gesture.
Optionally, described gesture includes slip behaviour in described first edge region and described second edge region for the user
Make;The described step according to the described gesture corresponding operational order of acquisition includes:
Judge whether the sliding length of slide described in two is all higher than default threshold value;
If it is, judge slide described in two glide direction whether contrary;
If it is, the glide direction of slide according to two obtains corresponding operational order.
Optionally, the step of the glide direction corresponding operational order of acquisition of described slide according to two includes:
When the glide direction of the slide being inputted by described first edge region is forward direction, and by described second edge area
When the glide direction of the slide of domain input is reverse, the described operational order of acquisition is true value assignment directive;
When the glide direction of the slide being inputted by described first edge region is reverse, and by described second edge area
When the glide direction of the slide of domain input is positive, the described operational order of acquisition is falsity assignment directive.
Additionally, to achieve these goals, the present invention also proposes a kind of file storage device of mobile terminal, described movement
Terminal has secret memory space and generic storage space;Described file storage device includes acquisition module, assignment module and behaviour
Make module;Wherein,
Described acquisition module, for when file stores, obtaining the operational order of user input;
Described assignment module, for carrying out assignment according to described operational order to the storage token variable of described file;
Described operation module, for the value according to described storage token variable, described file is stored in corresponding secret
Memory space or generic storage space.
Optionally, described operational order includes true value assignment directive and falsity assignment directive;When described acquisition module obtains
When the operational order arriving is true value assignment directive, the storage token variable of described file is entered as very by described assignment module, institute
State operation module and file is stored in described secret memory space;When the operational order that described acquisition module gets is assigned for falsity
During value instruction, the storage token variable of file described in described assignment module is entered as vacation, file is stored by described operation module
In described generic storage space.
Optionally, described mobile terminal has the first edge region being oppositely arranged and second edge region;Described acquisition
Module, specifically for obtaining the gesture in described first edge region and/or the input of described second edge region for the user, and according to
Described gesture obtains corresponding operational order.
Optionally, described file storage device also includes judge module;Described acquisition module, for obtaining user described
Slide in first edge region and described second edge region;Described judge module, for the behaviour that judges to slide described in two
Whether the sliding length made is all higher than default threshold value, and the sliding length in slide described in two is all higher than default threshold value
When, judge whether the glide direction of slide described in two is contrary;Described acquisition module, is additionally operable in slide described in two
When glide direction is contrary, according to two, the glide direction of slide obtains corresponding operational order.
Optionally, described acquisition module is specifically for when the slip of the slide being inputted by described first edge region
Direction is forward direction, and when being reverse by the glide direction of the slide of described second edge region input, obtains described operation
Instruct as true value assignment directive;When the glide direction of the slide being inputted by described first edge region is reverse, and by institute
When the glide direction stating the slide that second edge region inputs is for forward direction, obtains described operational order and refer to for falsity assignment
Order.
Technical scheme, by setting secret memory space and generic storage space in mobile terminal, can be by
File carries out secret storage or generic storage, can effectively prevent other people from peeping the secret file in mobile terminal, and then effectively
Improve the security of mobile terminal use;Meanwhile, by input operation order selective storage to file;Simple to operate
Convenient, greatly improve the satisfaction of user.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Structure according to these accompanying drawings obtains other accompanying drawings.
Fig. 1 is the optional hardware architecture diagram of mobile terminal one realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of file memory method one embodiment of mobile terminal of the present invention;
Fig. 4 is the flow chart of step one embodiment of operational order obtaining user input in Fig. 3;
Fig. 5 is the structural representation of mobile terminal one embodiment realizing this method
Fig. 6 is the flow chart of step one embodiment obtaining corresponding operational order in Fig. 4 according to described gesture;
Fig. 7 is the module diagram of file storage device one embodiment of mobile terminal of the present invention;
Fig. 8 is the module diagram of another embodiment of file storage device of mobile terminal of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Realize the mobile terminal of each embodiment of the present invention referring now to Description of Drawings.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for being conducive to the explanation of the present invention, itself
Not specific meaning.Therefore, " module " and " part " can mixedly use.
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. consolidate
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram realizing each optional mobile terminal of embodiment one of the present invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups illustrating
Part.More or less of assembly can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit 110 can include broadcasting reception module 111, mobile communication mould
At least one of block 112, wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal generating before the server of broadcast singal and/or broadcast related information or reception and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singal, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combining with TV or radio signals.Broadcast phase
Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is receiving.Broadcast singal can exist in a variety of manners, and for example, it can be with the electronics of DMB (DMB)
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiver module 111 can be broadcasted by using various types of broadcast system receipt signals.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), the Radio Data System of forward link media (MediaFLO), received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and is adapted to provide for extensively
Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal can include voice and lead to
Words signal, video calling signal or the various types of data sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
Tooth TM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee TM etc..
Location information module 115 be for check or obtain mobile terminal positional information module.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates and is derived from three or more satellites
Range information and correct time information and for the Information application triangulation calculating, thus according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, the method for calculating position and temporal information is defended using three
Star and the error of the position that calculates by using other satellite correction and temporal information.Additionally, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 He
Microphone 122, camera 121 is to the static images being obtained by image capture apparatus in Video Capture pattern or image capture mode
Or the view data of video is processed.Picture frame after process may be displayed on display unit 151.Process through camera 121
Picture frame afterwards can be stored in memory 160 (or other storage medium) or carry out sending out via wireless communication unit 110
Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note
Sound (voice data) is received via microphone in record pattern, speech recognition mode etc. operational mode, and can be by so
Acoustic processing be voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model can
It is sent to the form output of mobile communication base station via mobile communication module 112.Microphone 122 can implement various types of making an uproar
Sound eliminates (or suppression) algorithm to eliminate the noise that (or suppression) produces in reception with during sending audio signal or to do
Disturb.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection due to touched and lead to resistance, pressure, the change of electric capacity etc. sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing unit 140 detect mobile terminal 1 00 current state, (for example, mobile terminal 1 00 open or close shape
State), the position of mobile terminal 1 00, user is for the presence or absence of the contact (that is, touch input) of mobile terminal 1 00, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can sense
This sliding-type phone opens or cuts out.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 is coupled with external device (ED).Sensing unit 140 can include proximity transducer 141 and will combine below
Touch-screen this is described.
Interface unit 170 is connected, with mobile terminal 1 00, the interface that can pass through as at least one external device (ED).For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port of device for connection with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be storage for verifying that user uses each of mobile terminal 1 00
Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected with mobile terminal 1 00 via port or other attachment means.Interface unit 170 can be used for reception and is derived from
The input (for example, data message, electric power etc.) of the external device (ED) and input receiving is transferred in mobile terminal 1 00
One or more elements or can be used for transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity
Power provides the path of mobile terminal 1 00 from base or can serve as allowing the various command signals from base input to pass through it
It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from the various command signals of base input or electric power
The no signal being accurately fitted within base.Output unit 150 is configured to defeated with the offer of vision, audio frequency and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include showing
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processing in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display unit 151 can show (for example, text messaging, the multimedia file that communicate with call or other
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and the touch pad touch-screen with formation superposed on one another as a layer, display unit
151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
A kind of.Some in these displays may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display device), for example, moves
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection and touches
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
When under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memory 160
The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide and move
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation of terminal 100 execution.
Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event is permissible
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video output, alarm unit
153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating
Output is provided, enters when communicating (incomingcommunication) when receiving calling, message or some other, alarm list
Unit 153 can provide tactile output (that is, vibrating) to notify to user.By providing such tactile output, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the process being executed by controller 180 and control operation etc., or can
Temporarily to store the data (for example, telephone directory, message, still image, video etc.) having exported or will having exported.And
And, memory 160 can be to store the vibration of various modes with regard to exporting and audio signal when touching and being applied to touch-screen
Data.
Memory 160 can include the storage medium of at least one type, and described storage medium includes flash memory, hard disk, many
Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can execute memory with by network connection
The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 execution and voice call, data
The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that and controls
Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executing on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Suitable electric power needed for part and assembly.
Various embodiment described herein can be with using such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implementing.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to execute function described herein
At least one in electronic unit implementing, in some cases, can be implemented in controller 180 by such embodiment.
Software is implemented, the embodiment of such as process or function can with allow to execute the single of at least one function or operation
Software module is implementing.Software code can be come by the software application (or program) write with any suitable programming language
Implement, software code can be stored in memory 160 and be executed by controller 180.
So far, describe mobile terminal according to its function.Below, for the sake of brevity, will describe such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data all if any
Line and wireless communication system and satellite-based communication system are operating.
The communication system being wherein operable to according to the mobile terminal of the present invention referring now to Fig. 2 description.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 formation interfaces.MSC280 is also structured to and can form interface via the BSC275 that back haul link is couple to base station 270.
Back haul link can construct according to any one in some known interfaces, and described interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC275.
Each BS270 can service one or more subregions (or region), by the sky of multidirectional antenna or sensing specific direction
Each subregion that line covers is radially away from BS270.Or, each subregion can by for diversity reception two or more
Antenna covers.Each BS270 may be constructed such that support multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal of operation in system by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 is arranged at mobile terminal 1 00 to receive the broadcast being sent by BT295 as shown in Figure 1
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals
At least one of 100.
In fig. 2, depict multiple satellites 300, it is understood that be, it is possible to use any number of satellite obtains useful
Location information.GPS module 115 is generally configured to coordinate with satellite 300 to obtain the positioning letter wanted as shown in Figure 1
Breath.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other of the position of mobile terminal can be followed the tracks of
Technology.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00
Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of certain base station 270 reception is anti-
Processed in specific BS270 to link signal.The data obtaining is forwarded to the BSC275 of correlation.BSC provides call
Resource allocation and the mobile management function of including the coordination of soft switching process between BS270.BSC275 is also by the number receiving
According to being routed to MSC280, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals
It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
The present invention proposes a kind of file memory method of mobile terminal.
As shown in figure 3, Fig. 3 is the flow chart of file memory method one embodiment of mobile terminal of the present invention.
The mobile terminal of this enforcement has secret memory space and generic storage space;Described file memory method, including
Following steps:
When step S100, file storage, obtain the operational order of user input;
Step S200, assignment is carried out to the storage token variable of described file according to described operational order;
Step S300, the value according to described storage token variable, described file is stored in corresponding secret memory space
Or generic storage space.
Specifically, described mobile terminal can be mobile phone, panel computer etc..Described file can for picture file (such as
Photo etc.), audio/video file (such as video, recording etc.) and text (such as text document etc.).Specifically taking photo as a example
Illustrate.When user is taken pictures by mobile terminal, after the completion of shooting, when needing to be stored, user passes through mobile whole
End input unit (than user input unit 130 as shown in Figure 1) enter the operating instructions (than as by clicking on, slide etc.
Inputted).Mobile terminal carries out assignment according to described operational order to the storage token variable of described file, with to described literary composition
Part carries out storage mark.Then, described file is stored in by corresponding memory space according to storage mark.Such as, when file
When storage is labeled as secret, then file is stored in corresponding private space, to prevent other people from peeping;And the storage mark of file
For common when, then file is stored in corresponding general spatial.
Such as:Described operational order includes true value assignment directive and falsity assignment directive;When described operational order is true value
During assignment directive, the storage token variable of described file is entered as very, and file is stored in described secret memory space;When
When described operational order is falsity assignment directive, the storage token variable of described file is entered as vacation, and file is stored in
Described generic storage space.
Specific implementation can be:Set up a field, such as secret in system data, for being two by memory mark
Individual interval, that is, a part is general spatial, and a part is private space.This field is set to Boolean type variable, it can be endowed
True value (true) and falsity (false).Define the gesture motion of respective operations order simultaneously.When user needs file is deposited
Chu Shi, according to the actual requirements (namely user chooses whether to need for file to carry out kept secure according to actual needs), by right
The gesture motion answered, to trigger corresponding operational order, carries out assignment to described secret.It is right that file after assignment is then stored in
In the memory space answered, (such as, when described operational order includes true value assignment directive, secret is assigned in true, file
Correspondence is stored in private space;And when described operational order includes falsity assignment directive, secret is assigned when false,
File correspondence is stored in general spatial).
The technical scheme of the present embodiment is by setting secret memory space and generic storage space in mobile terminal, permissible
File is carried out secret storage or generic storage, can effectively prevent other people from peeping the secret file in mobile terminal, Jin Eryou
Effect improves the security of mobile terminal use;Meanwhile, by input operation order selective storage to file;Operation letter
Folk prescription just, greatly improves the satisfaction of user.
It is noted that unique implementation of above-mentioned specific implementation not this method, other modes, such as
When secret is assigned in false, file correspondence is stored in private space;And when secret is assigned in true, file
Correspondence is stored in general spatial, equally can realize the technique effect of the present invention.
Further, as shown in Figures 4 and 5, Fig. 4 is implemented for the step one obtaining the operational order of user input in Fig. 3
The flow chart of example;Fig. 5 is the structural representation of mobile terminal one embodiment realizing this method.
Based on above-described embodiment, in the present embodiment, described mobile terminal has the first edge region 402 being oppositely arranged
With second edge region 404;The step of the described operational order obtaining user input includes:
Step S110, acquisition user input in described first edge region 402 and/or described second edge region 404
Gesture;
Step S120, according to described gesture obtain corresponding operational order.
Specifically, in the present embodiment, the viewing area edge of described mobile terminal, or outside viewing area, there is phase
First edge region 402 to setting and second edge region 404 (as shown in Figure 5).When user needs file is stored
When, by the operation such as clicking on, sliding in described first edge region 402 and/or described second edge region 404, triggering corresponds to
Operational order, and then realize the corresponding storage to file (secret storage or generic storage).
The technical scheme of the present embodiment, based on FIT (Frame Interactive Technology, edge touch technology)
Realize the triggering of operational order, greatly improve the convenience of user operation.
Further, as shown in fig. 6, simultaneously with reference to Fig. 5, Fig. 6 is to obtain corresponding operational order according to described gesture in Fig. 4
Step one embodiment flow chart.
Based on above-described embodiment, in the present embodiment, described gesture is user in described first edge region 402 and described
Carry out slide in second edge region 404 simultaneously.
Based on aforesaid operations, the described step according to the described gesture corresponding operational order of acquisition includes:
Step S121, judge whether the sliding length of slide described in two is all higher than default threshold value;
If it is, execution step S122.
Step S122, judge whether the glide direction of slide described in two is contrary;
If it is, execution step S123.
Step S123, the glide direction of slide according to two obtain corresponding operational order.
Specifically, when user's hands grasping mobile terminal, the thumb of two hands is located at first edge region 402 He respectively
In described second edge region 404, at this moment, user operation can define two thumbs simultaneously for convenience, and respectively first
The action slided in fringe region 402 and described second edge region 404 is as the triggering pattern of operational order.And in order to avoid
Maloperation, then need the sliding length of slide is defined.
Specifically can refer to Fig. 5, as the starting point of slide, L2 and R2 is as the behaviour that slides for the L1 and R1 in record Fig. 5
The terminal made;And record the coordinate (0, YL1) of L1, the coordinate of R1 is (Xmax, YR1), the coordinate (0, YL2) of L2, the coordinate of R2
For (Xmax, YR2).So, the sliding distance in the slide in first edge region 402 is | YL2-YL1 |, in second edge
The sliding distance of the slide in region 404 is | YR2-YR1 |, if the value of | YL2-YL1 | and | YR2-YR1 | is all higher than presetting
Threshold value T, then then assert that this operation is not maloperation, then execute the judgement of the glide direction to described slide, according to
The glide direction of slide described in two obtains corresponding operational order.
The glide direction of described slide according to two obtains putting forward absolutely mode and being of corresponding operational order:It is based on
On the premise of first edge region 402 is different from the glide direction of the slide in second edge region 404, when first
The glide direction of the slide of fringe region 402 is positive direction, in the glide direction of the slide in second edge region 404
During for negative direction, the operational order of definition triggering is true value assignment directive, then, secret is assigned in true, and file corresponds to
It is stored in private space.And the glide direction of the slide in first edge region 402 is negative direction, in second edge region
When the glide direction of 404 slide is positive direction, the operational order of definition triggering is falsity assignment directive, then,
Secret is assigned in false, and file correspondence is stored in general spatial.
Wherein, the concrete of described glide direction is judged then to carry out by calculating as defining in the following manner
Judge:When defining YL2-YL1 > 0, the glide direction of the slide in first edge region 402 is positive direction;YL2-YL1 <
When 0, the glide direction of the slide in first edge region 402 is opposite direction;During YR2-YR1 > 0, in second edge region
The glide direction of 404 slide is positive direction;During YR2-YR1 < 0, in the cunning of the slide in second edge region 404
Dynamic direction is opposite direction.
It is noted that when long with the slip of the slide in second edge region 404 in first edge region 402
Degree, or when glide direction is unsatisfactory for above-mentioned condition, described slide is corresponding to trigger other control instructions.
The present invention also proposes a kind of file storage device of terminal in movement.
As shown in fig. 7, Fig. 7 is the module diagram of file storage device one embodiment of mobile terminal of the present invention.
The mobile terminal of this enforcement has secret memory space and generic storage space;Described file storage device includes obtaining
Delivery block 520, assignment module 540 and operation module 560;Wherein, described acquisition module 520, for when file stores, obtaining
The operational order of user input;Described assignment module 540, for becoming to the storage mark of described file according to described operational order
Amount carries out assignment;Described operation module 560, for the value according to described storage token variable, described file is stored in correspondence
Secret memory space or generic storage space.
Specifically, described mobile terminal can be mobile phone, panel computer etc..Described file can for picture file (such as
Photo etc.), audio/video file (such as video, recording etc.) and text (such as text document etc.).Specifically taking photo as a example
Illustrate.When user is taken pictures by mobile terminal, after the completion of shooting, when needing to be stored, user passes through mobile whole
End input unit (than user input unit 130 as shown in Figure 1) enter the operating instructions (than as by clicking on, slide etc.
Inputted).Mobile terminal carries out assignment according to described operational order to the storage token variable of described file, with to described literary composition
Part carries out storage mark.Then, described file is stored in by corresponding memory space according to storage mark.Such as, when file
When storage is labeled as secret, then file is stored in corresponding private space, to prevent other people from peeping;And the storage mark of file
For common when, then file is stored in corresponding general spatial.
Such as, described operational order includes true value assignment directive and falsity assignment directive;When described acquisition module 520 obtains
When the operational order arriving is true value assignment directive, the storage token variable of described file is entered as very by described assignment module 540,
File is stored in described secret memory space by described operation module 560;The operational order getting when described acquisition module 520
During for falsity assignment directive, the storage token variable of file described in described assignment module 540 is entered as vacation, described operation module
File is stored in described generic storage space by 560.
Specific implementation can be:Set up a field, such as secret in system data, for being two by memory mark
Individual interval, that is, a part is general spatial, and a part is private space.This field is set to Boolean type variable, it can be endowed
True value (true) and falsity (false).Define the gesture motion of respective operations order simultaneously.When user needs file is deposited
Chu Shi, according to the actual requirements (namely user chooses whether to need for file to carry out kept secure according to actual needs), by right
The gesture motion answered, to trigger corresponding operational order, carries out assignment to described secret.It is right that file after assignment is then stored in
In the memory space answered, (such as, when described operational order includes true value assignment directive, secret is assigned in true, file
Correspondence is stored in private space;And when described operational order includes falsity assignment directive, secret is assigned when false,
File correspondence is stored in general spatial).
The technical scheme of the present embodiment is by setting secret memory space and generic storage space in mobile terminal, permissible
File is carried out secret storage or generic storage, can effectively prevent other people from peeping the secret file in mobile terminal, Jin Eryou
Effect improves the security of mobile terminal use;Meanwhile, by input operation order selective storage to file;Operation letter
Folk prescription just, greatly improves the satisfaction of user.
It is noted that unique implementation of above-mentioned specific implementation not this method, other modes, such as
When secret is assigned in false, file correspondence is stored in private space;And when secret is assigned in true, file
Correspondence is stored in general spatial, equally can realize the technique effect of the present invention.
Further, with reference to Fig. 5, based on above-described embodiment, in the present embodiment, described mobile terminal has and is oppositely arranged
First edge region 402 and second edge region 404;Described acquisition module 520, specifically for obtaining user described first
Fringe region 402 and/or the gesture of described second edge region 404 input, and referred to according to the corresponding operation of acquisition of described gesture
Order.
Specifically, in the present embodiment, the viewing area edge of described mobile terminal, or outside viewing area, there is phase
First edge region 402 to setting and second edge region 404 (as shown in Figure 5).When user needs file is stored
When, by the operation such as clicking on, sliding in described first edge region 402 and/or described second edge region 404, triggering corresponds to
Operational order, and then realize the corresponding storage to file (secret storage or generic storage).
The technical scheme of the present embodiment, based on FIT (Frame Interactive Technology, edge touch technology)
Realize the triggering of operational order, greatly improve the convenience of user operation.
Further, as shown in figure 8, simultaneously with reference to Fig. 5, Fig. 8 is another reality of file storage device of mobile terminal of the present invention
Apply the module diagram of example.
Based on above-described embodiment, in the present embodiment, described file storage device of going back includes judge module 580;Described obtain
Delivery block 520, for obtaining slide in described first edge region 402 and described second edge region 404 for the user;
Described judge module 580, whether the sliding length for judging slide described in two is all higher than default threshold value, and in two institutes
When stating the sliding length of slide and being all higher than default threshold value, judge whether the glide direction of slide described in two is contrary;
Described acquisition module 520, is additionally operable to when the glide direction of slide described in two is contrary, the cunning of slide according to two
Dynamic direction obtains corresponding operational order.
Specifically, when user's hands grasping mobile terminal, the thumb of two hands is located at first edge region 402 He respectively
In described second edge region 404, at this moment, user operation can define two thumbs simultaneously for convenience, and respectively first
The action slided in fringe region 402 and described second edge region 404 is as the triggering pattern of operational order.And in order to avoid
Maloperation, then need the sliding length of slide is defined.
Specifically can refer to Fig. 5, as the starting point of slide, L2 and R2 is as the behaviour that slides for the L1 and R1 in record Fig. 5
The terminal made;And record the coordinate (0, YL1) of L1, the coordinate of R1 is (Xmax, YR1), the coordinate (0, YL2) of L2, the coordinate of R2
For (Xmax, YR2).So, the sliding distance in the slide in first edge region 402 is | YL2-YL1 |, in second edge
The sliding distance of the slide in region 404 is | YR2-YR1 |, if the value of | YL2-YL1 | and | YR2-YR1 | is all higher than presetting
Threshold value T, then then assert that this operation is not maloperation, then execute the judgement of the glide direction to described slide, according to
The glide direction of slide described in two obtains corresponding operational order.
The glide direction of described slide according to two obtains putting forward absolutely mode and being of corresponding operational order:It is based on
On the premise of first edge region 402 is different from the glide direction of the slide in second edge region 404, when first
The glide direction of the slide of fringe region 402 is positive direction, in the glide direction of the slide in second edge region 404
During for negative direction, the operational order of definition triggering is true value assignment directive, then, secret is assigned in true, and file corresponds to
It is stored in private space.And the glide direction of the slide in first edge region 402 is negative direction, in second edge region
When the glide direction of 404 slide is positive direction, the operational order of definition triggering is falsity assignment directive, then,
Secret is assigned in false, and file correspondence is stored in general spatial.
Wherein, the concrete of described glide direction is judged then to carry out by calculating as defining in the following manner
Judge:When defining YL2-YL1 > 0, the glide direction of the slide in first edge region 402 is positive direction;YL2-YL1 <
When 0, the glide direction of the slide in first edge region 402 is opposite direction;During YR2-YR1 > 0, in second edge region
The glide direction of 404 slide is positive direction;During YR2-YR1 < 0, in the cunning of the slide in second edge region 404
Dynamic direction is opposite direction.
It is noted that when long with the slip of the slide in second edge region 404 in first edge region 402
Degree, or when glide direction is unsatisfactory for above-mentioned condition, described slide is corresponding to trigger other control instructions.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row
The comprising of his property, so that including a series of process of key elements, method, article or device not only include those key elements, and
And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or device institute
Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including being somebody's turn to do
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by the mode of software plus necessary general hardware platform naturally it is also possible to pass through hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Go out partly can embodying in the form of software product of contribution, this computer software product is stored in a storage medium
In (as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile terminal, calculate
Machine, server, air-conditioner, or network equipment etc.) execution each embodiment of the present invention described in method.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.