Summary of the invention
The embodiment of the invention discloses a kind of data processing method and terminals, can be in terminal and put out screen or screen lock state
When directly delete contact information, improve the deletion efficiency to terminal contact people's information.
The embodiment of the invention discloses a kind of data processing methods, comprising:
When terminal is in and puts out screen state or screen lock state, the touch operation on the terminal touch screen is received;
Judge whether the corresponding operational order of the touch operation is the information deletion instruction for presetting contact person;
If so, responding the information deletion instruction, the information of the default contact person is deleted.
Optionally, the response information deletion instruction, deletes the information of the default contact person, comprising:
At least one communications account of the default contact person is obtained, and is obtained logical at least one communications account
Letter record;
The information deletion instruction is responded, the communications records are deleted.
Optionally, described to judge whether the corresponding operational order of the touch operation is that the information deletion of default contact person refers to
It enables, comprising:
Judge whether the touch operation is that the operation for presetting the information of contact person is deleted in triggering;
If so, determining that the corresponding operational order of the touch operation is that the information deletion of the default contact person instructs.
Optionally, when the terminal is in screen lock state, the touch operation received on the terminal touch screen it
Afterwards, it is described judge the corresponding operational order of the touch operation whether be default contact person information deletion instruction before, it is described
Method further include:
Judge whether the touch operation is one of default unlock operation;
If so, releasing the screen lock state of the terminal.
Optionally, the response information deletion instructs, after the information for deleting the default contact person, the method
Further include:
By the information back-up of the default contact person of deletion into default memory space;
Judge the deletion cancel an order that the information for the default contact person whether is received in effective time;
If so, restoring the information of the default contact person from the default memory space;
If it is not, then the information of the default contact person is deleted from the default memory space.
Correspondingly, the embodiment of the invention discloses a kind of terminals, comprising:
Receiving unit, for receiving on the terminal touch screen when the terminal is in and puts out screen state or screen lock state
Touch operation;
First judging unit, for judging whether the corresponding operational order of the touch operation is the information for presetting contact person
Delete instruction;
Unit is deleted, for judging that the corresponding operational order of the touch operation is default in first judging unit
When the information deletion instruction of contact person, the information deletion instruction is responded, the information of the default contact person is deleted.
Optionally, the deletion unit includes obtaining subelement and deletion subelement, in which:
The acquisition subelement, for obtaining at least one communications account of the default contact person, and obtain with it is described
The communications records of at least one communications account;
The deletion subelement deletes the communications records for responding the information deletion instruction.
Optionally, first judging unit includes judgment sub-unit and determining subelement, in which:
The judgment sub-unit, for judging whether the touch operation is the behaviour for triggering the information for deleting default contact person
Make;
The determining subelement, for judging that the touch operation deletes default connection for triggering in the judgment sub-unit
When being the operation of the information of people, determine that the corresponding operational order of the touch operation is that the information deletion of the default contact person refers to
It enables.
Optionally, when the terminal is in screen lock state, the terminal further include:
Second judgment unit, for judging whether the touch operation is one of default unlock operation;
Lifting unit, for judging that the touch operation is one in default unlock operation in the second judgment unit
When kind, the screen lock state of the terminal is released, and triggers first judging unit and executes the judgement touch operation pair
Whether the operational order answered is the operation for presetting the information deletion instruction of contact person.
Optionally, the terminal further include:
Backup units, the information back-up for the default contact person that will be deleted is into default memory space;
Third judging unit is also used to judge whether to receive the information for the default contact person in effective time
Deletion cancel an order;
Recovery unit, for judging to be received in effective time for described default in the third judging unit
When being the deletion cancel an order of the information of people, restore the information of the default contact person from the default memory space;
The deletion unit is also used to judge not receive in effective time for institute in the third judging unit
When stating the deletion cancel an order of the information of default contact person, by the information of the default contact person from the default memory space
It deletes.
The implementation of the embodiments of the present invention has the following beneficial effects:
In the embodiment of the present invention, when terminal is in and puts out screen state or screen lock state, which can receive its touch screen
On touch operation;And judge whether the corresponding operational order of the touch operation is the information deletion instruction for presetting contact person;Such as
Fruit is just to respond information deletion instruction, deletes the information of the default contact person.Through the embodiment of the present invention, user can be
The information that default contact person is directly deleted when terminal puts out screen or screen lock state, reduces user's operation, to improve to terminal contact
The deletion efficiency of information promotes user experience.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of data processing method and terminals, can be in terminal and put out screen or screen lock state
When directly delete contact information, improve the deletion efficiency to terminal contact people's information.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of data processing method disclosed by the embodiments of the present invention.Wherein, scheme
Method shown in 1 can be applied to smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and
Mobile internet device (Mobile Internet Devices, MID), personal digital assistant (Personal Digital
Assistant, PDA), media player, smart television, smartwatch, intelligent glasses, the terminals such as Intelligent bracelet.Such as Fig. 1 institute
Show, which may comprise steps of:
S101, terminal receive the touch operation on touch screen when in screen state or screen lock state is put out.
In the embodiment of the present invention, which may include the operation such as clicking, pressing, slide, wherein clicking operation can
To include clicking, double-click or repeatedly clicking, pressing operation may include short-press, long-pressing etc., and slide can refer in terminal
Touch screen on along linear slide, specific symbol or image etc. can also be slided out, the embodiment of the present invention is without limitation.Put out screen
State is primarily referred to as the smallest state of screen luminance of terminal.And screen lock state indicates the locked state of terminal screen, in terminal
When in screen lock state, user needs to draw correct pattern or sliding terminal screen ability by inputting correct password
Release screen lock state.
Therefore, when terminal is in and puts out screen state or screen lock state, user can input touching on the touch screen of terminal
Operation is touched, then terminal can receive the touch operation that user inputs on the touchscreen.Wherein, user input touch operation can be with
It is to be also possible in designated position, the embodiment of the present invention is without limitation in any position of terminal touch screen.
S102, terminal judge whether the corresponding operational order of the touch operation is the information deletion instruction for presetting contact person,
If so, executing step S103;If it is not, terminating this process.
In the embodiment of the present invention, touch operation corresponding to every kind of operational order can be stored in advance in terminal.Therefore, work as terminal
When receiving the touch operation that user inputs on the touchscreen, terminal judge the touch operation whether with pre-stored each behaviour
Make to instruct corresponding touch operation consistent.If consistent, which can further judge the corresponding operation of the touch operation
Instruction whether be pre-set default contact person information deletion instruction.Wherein, default contact person can be what user specified
One or several contact persons in address list are also possible to such as QQ, wechat, one or several on everybody social application software
Connection, the embodiment of the present invention is without limitation.
Therefore, when terminal judges that the corresponding operational order of touch operation that user inputs is that the information of default contact person is deleted
When except instruction, which just will be deleted the information of the default contact person.And when terminal judges the touch operation pair of user's input
When the operational order answered is not the information deletion instruction of default contact person, which does not respond the touch operation.
As a kind of feasible embodiment, which judges whether the corresponding operational order of the touch operation is default connection
Be people information deletion instruction concrete mode may comprise steps of:
Step 11) judges whether the touch operation is that the operation for presetting the information of contact person is deleted in triggering;
Step 12) determines the touching when judging the touch operation is the operation for the information that default contact person is deleted in triggering
Touch the information deletion instruction for operating that corresponding operational order is the default contact person.
In the specific implementation, user can preassign the default connection of one or more that can delete contact information with a key
People.The information deletion of each default contact person instructs corresponding touch operation can be different, be also possible to it is identical, also
It says, user can set the same touch operation can delete the information of multiple default contact persons simultaneously, or each pre-
If a different touch operation is set separately in contact person, for deleting the information of each contact person, the embodiment of the present invention respectively
Without limitation.
Therefore, when inputting touch operation on the touch screen of terminal as user, whether which judges the touch operation
The operation that the information of some or multiple default contact persons are deleted for triggering, if so, determining that the touch operation is corresponding
Operational order is the information deletion instruction of the default contact person.
S103, terminal respond information deletion instruction, delete the information of default contact person, and terminate this process.
In the embodiment of the present invention, the information of default contact person can refer to that the communication between user and default contact person is remembered
The information such as the communications account of the default contact person of this of record or terminal storage, the embodiment of the present invention is without limitation.In telephone directory
Call-information in the telephone number and message registration of designated contact between designated contact, and contacted with specified
Short message between people.For another example the instant messagings such as QQ, wechat application middle finger sets the account information of friend, and between the good friend
Chat record etc..
Specifically, when terminal judges that the corresponding operational order of touch operation of user's input is the information of default contact person
When deleting instruction, which will respond information deletion instruction, delete the information of the default contact person.When default contact person has
When multiple, the information deletion instruction of the corresponding default contact person of a touch operation can be, be also possible to a touch behaviour
Make while the information deletion of corresponding multiple default contact persons instructs, when user inputs the touch operation on the touchscreen, terminal
The information of multiple default contact persons can be deleted simultaneously.
As it is a kind of can property embodiment, terminal responds information deletion instruction, deletes the information of default contact person
Concrete mode may comprise steps of:
Step 21) obtains at least one communications account of the default contact person, and obtains and at least one communications account
Communications records;
Step 22) responds information deletion instruction, deletes the communications records.
In the specific implementation, therefore user may work as terminal added with multiple communications accounts for the same default contact person
When the corresponding operational order of touch operation for judging user's input is the information deletion instruction of the default contact person, the terminal is just
All or part of communications accounts of its installation application or the default contact person being locally stored can be obtained, and are obtained and each communication
Communications records between account.Wherein, the communications account can for telephone number, QQ account, wechat account, Email Accounts etc.,
The embodiment of the present invention is without limitation.
As an example it is assumed that the pre-set default contact person of user includes A, B, C, D, and each preset the letter of contact person
It is different that breath deletes the corresponding touch operation of instruction.So when user inputs long press operation on the touchscreen, it is assumed that the terminal
Judge that the information deletion that the corresponding operational order of the long press operation is B instructs.Therefore, which just will be deleted the QQ of B, wechat
And telephone number, and chat record between B and short message message registration etc..
Again as an example it is assumed that the pre-set default contact person of user includes W, H, the information of the two contact persons is triggered
Deleting instruction is all to slide S character in the lower right field of touch screen.Therefore, when user inputs slide on the touchscreen
When, which judges whether corresponding sliding trace of the slide etc. instructs with the information deletion of the two contact persons first
The sliding trace of corresponding slide is consistent, if so, the terminal will search respectively W's and H from local folders
QQ account and the user chat record etc. between W and the QQ of H respectively, the terminal then will delete simultaneously with W and
The QQ account of H, and deletion and the chat record between them.
Optionally, terminal responds information deletion instruction, and the concrete mode for deleting the information of default contact person can be with are as follows:
Obtain all communications accounts and the corresponding application of each communications account of the default contact person.From local file
In folder in the corresponding application memory file of each communications account, the communications records between each communications account deleted and obtained,
All communications accounts of the default contact person can also be deleted simultaneously.
As it can be seen that in the method depicted in fig. 1, terminal can receive user at it when putting out screen state or screen lock state
The touch operation inputted on touch screen, and judge whether the corresponding operational order of the touch operation is that the information of default contact person is deleted
Except instruction, if so, just responding information deletion instruction, the information of the default contact person is deleted.Through the embodiment of the present invention, it uses
Family can directly delete the information of default contact person when terminal puts out screen or screen lock state, reduce user's operation, thus raising pair
The deletion efficiency of terminal contact information promotes user experience.
Referring to Fig. 2, Fig. 2 is the flow diagram of another data processing method disclosed by the embodiments of the present invention.Wherein,
Method shown in Fig. 2 can be applied to smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC with
And mobile internet device, personal digital assistant, media player, smart television, smartwatch, intelligent glasses, Intelligent bracelet
Etc. terminals.As shown in Fig. 2, the terminal split screen method may comprise steps of:
S201, terminal receive the touch operation on touch screen when being in screen lock state.
S202, terminal judge whether the touch operation is one of default unlock operation, if so, executing step S203;
If it is not, terminating this process.
During the present invention is implemented, terminal can preset that there are many unlock operation, that is, multiple unlocking pins, a kind of solutions
Lock operation can be used for normal release, remaining one or more unlock operation can bind designated contact, when user's input
When being normal release operation, which only releases the screen lock state of terminal, and when user's input be remaining unlock operation when,
The terminal can delete the information with the default contact person of the unlock operation binding while unlock.
That is, when terminal is in screen lock state, if user inputs touch operation on the touch screen of terminal, that
The terminal can receive the touch operation, and judge whether the touch operation is one of default unlock operation.If should
Touch operation is unlock operation, then the terminal will release its screen lock state.If the touch operation is not unlock operation, should
Terminal does not do any response.
For example, if the unlocking manner of terminal is the unlock that draws a design, terminal can be preset, and such as be drawn
The terminal can be unlocked when W and M character.Therefore, when user is waken up terminal by black state, which can be defeated
The prompt information of prompt user unlock out.If the pattern that user draws and the pattern for unlock are inconsistent, the terminal
User will be prompted to unlock failure.Further, the number that terminal can also prompt user's residue to unlock, for preventing terminal quilt
Illegal user obtains user privacy information when robber.And if be somebody's turn to do when the pattern that user draws is any one in W or M character
Terminal will judge that the touch operation for drawing the pattern is one of default unlock operation, therefore, will release the terminal
Screen lock state.
S203, terminal release the screen lock state of the terminal.
S204, terminal judge whether the corresponding operational order of the touch operation is the information deletion instruction for presetting contact person,
If so, executing step S205;If it is not, terminating this process.
S205, terminal respond information deletion instruction, delete the information of default contact person, and terminate this process.
In the embodiment of the present invention, terminal can preset multiple unlocking pins, touch when user inputs in screen lock state
When operation the terminal judge first user input touch operation whether be the corresponding operation of unlocking pin, if it is so should
Terminal can release its screen lock state, then further judge whether the corresponding operational order of the touch operation is default contact person
Information deletion instruction, if so, the information of the default contact person is deleted, if it is not, only carrying out unlock operation.
As it can be seen that in the method depicted in fig. 2, user can delete one or more while being unlocked to terminal
The communications account of a designated contact and the communications records between these communications accounts.Specified connection is realized in unlock in this way
It is the key deletion of people's information, it is possible to reduce search operation when user deletes promotes user experience.
Referring to Fig. 3, Fig. 3 is the flow diagram of another data processing method disclosed by the embodiments of the present invention.Wherein,
Method shown in Fig. 3 can be applied to smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC with
And mobile internet device, personal digital assistant, media player, smart television, smartwatch, intelligent glasses, Intelligent bracelet
Etc. terminals.As shown in figure 3, the terminal split screen method may comprise steps of:
S301, terminal receive the touch operation on touch screen when in screen state or screen lock state is put out.
S302, terminal judge whether the corresponding operational order of the touch operation is the information deletion instruction for presetting contact person,
If so, executing step S303;If it is not, terminating this process.
S303, terminal respond information deletion instruction, delete the information of default contact person.
S304, terminal are by the information back-up of the default contact person of deletion into default memory space.
It, can be by the information back-up of deletion to pre- after terminal deletion presets the information of contact person in the embodiment of the present invention
If memory space.Wherein, which can be network hard disc, the file for being provided with password, server etc., this hair
Bright embodiment is without limitation.That is, after terminal response message deletes information deletion of the instruction by default contact person, it should
The information that this can be preset contact person by terminal stores to network hard disc etc. others and is difficult in the default memory space viewed.
Whether S305, terminal judge to receive in effective time refers to for the deletion revocation for presetting the information of contact person
It enables, if so, executing step S306;If it is not, executing step S307.
In the embodiment of the present invention, what the information that effective time is primarily referred to as default contact person stored in default memory space
Life cycle, the effective time can be 30 seconds, 1 minute, 3 minutes etc., can be terminal system setting, are also possible to user
It is arranged, the embodiment of the present invention is without limitation.Therefore, terminal can judge always after the information for deleting default contact person
Whether the deletion cancel an order of for this presetting the information of contact person is received in effective time.Wherein, this presets contact person's
The deletion cancel an order of information, which can be, inputs what some specific operation generated by user, and it is pre- into this to be also possible to user
If being directed to the deletion revocation function triggering that the default contact person chooses after memory space, the embodiment of the present invention is without limitation.
S306, terminal preset the information for restoring the default contact person in memory space from this, and terminate this process.
In the embodiment of the present invention, judges to receive in effective time when terminal and preset the information of contact person for this
Cancel an order is deleted, which will respond the deletion cancel an order, preset from this and restore the default contact person in memory space
Information.Specifically, the terminal will be deleted the information of the default contact person backed up in the default memory space, and with same
The information for presetting contact person is restored in the file before deleting by path.
For example, when information back-up to network hard disc of the terminal by the default contact person of deletion, user is when effective
Another touch operation is inputted on the touch screen of terminal in 2 minutes long, H character is such as slided, then the terminal will receive needle
To the deletion cancel an order of the information for presetting contact person, so that the deletion cancel an order is responded, by what is stored in network hard disc
The information of the default contact person is restored in the local folders of terminal.
The information for presetting contact person is preset in memory space from this and is deleted, and terminates this process by S307, terminal.
In the embodiment of the present invention, when terminal is judged not receive the information for presetting contact person for this in effective time
Deletion cancel an order, then the terminal will directly delete the default connection after effective time from default memory space
It is the information of people.That is, if user does not do reduction treatment to the information of the default contact person of deletion in effective time,
So this will be preset the information complete deletion of contact person by the terminal, thus irrecoverable.
For example, when information back-up to network hard disc of the terminal by the default contact person of deletion, if user is having
There is no the operations inputted on the touch screen of terminal as slided H character in effect duration 2 minutes, then the terminal indicates that
The deletion cancel an order that the information of contact person is preset for this is not received in effective time, thus after 2 minutes, it will
The information complete deletion of the default contact person stored in network hard disc.
As it can be seen that in the method depicted in fig. 3, terminal can will back up to default after the information deletion of default contact person
In memory space, only user inputs the operation for restoring the information for presetting contact person in effective time, then the end
End will restore the information of the default contact person again, can prevent the maloperation of user, in this way so as to avoid to preset
The information of contact person is accidentally deleted.Further, it can also be restored in effective time after the information for deleting default contact person
The information, to view the communications records between user and default contact person, Jin Eryou when preventing other people using the terminal
User privacy information is protected to effect, improves the safety of end message.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of terminal disclosed by the embodiments of the present invention.Wherein, shown in Fig. 4
Terminal 400 can include but is not limited to smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC with
And mobile internet device, personal digital assistant, media player, smart television, smartwatch, intelligent glasses, Intelligent bracelet
Deng.As shown in figure 4, the terminal 400 may include with lower unit:
Receiving unit 401, for receiving 400 touch screen of terminal when terminal 400 is in and puts out screen state or screen lock state
On touch operation.
In the embodiment of the present invention, which may include the operation such as clicking, pressing, slide, wherein clicking operation can
To include clicking, double-click or repeatedly clicking, pressing operation may include short-press, long-pressing etc., and slide can refer in terminal
Along linear slide on 400 touch screen, specific symbol or image etc. can also be slided out, the embodiment of the present invention is without limitation.
It puts out screen state and is primarily referred to as the smallest state of 400 screen intensity of terminal.And screen lock state indicates the locked shape of 400 screen of terminal
State, when terminal 400 is in screen lock state, user needs to draw correct pattern or sliding by inputting correct password
Terminal screen could release screen lock state.
Therefore, when terminal 400 is in and puts out screen state or screen lock state, user can be on the touch screen of terminal 400
Touch operation is inputted, then receiving unit 401 can receive the touch operation that user inputs on the touchscreen.Wherein, user is defeated
Entering touch operation can be in any position of 400 touch screen of terminal, be also possible in designated position, the embodiment of the present invention is not done
It limits.
First judging unit 402, for judging whether is the corresponding operational order of touch operation that receiving unit 401 receives
For the information deletion instruction for presetting contact person.
In the embodiment of the present invention, touch operation corresponding to every kind of operational order can be stored in advance in terminal 400.Therefore, when
When receiving unit 401 receives the touch operation that user inputs on the touchscreen, the first judging unit 402 judges touch behaviour
Make whether touch operation corresponding with pre-stored each operational order is consistent.If consistent, 402 meeting of the first judging unit
Further judge the corresponding operational order of the touch operation whether be pre-set default contact person information deletion instruction.Its
In, default contact person can be one or several contact persons in the address list that user specifies, and be also possible to such as QQ, wechat, people
One or several connections on the social applications software such as people, the embodiment of the present invention is without limitation.
Therefore, when the first judging unit 402 judges that the corresponding operational order of touch operation of user's input is default connection
When being the information deletion instruction of people, deleting unit 403 just will be deleted the information of the default contact person.And when the first judging unit
When the 402 corresponding operational orders of touch operation for judging that user inputs are not the information deletion instruction for presetting contact person, the end
The 400 pairs of touch operations in end do not respond.
Unit 403 is deleted, for judging that the corresponding operational order of the touch operation is default in the first judging unit 402
When the information deletion instruction of contact person, information deletion instruction is responded, deletes the information of the default contact person.
In the embodiment of the present invention, the information of default contact person can refer to that the communication between user and default contact person is remembered
The information such as the communications account of the default contact person that record or terminal 400 store, the embodiment of the present invention is without limitation.Such as phone
Call-information in the telephone number and message registration of thin middle designated contact between designated contact, and with it is specified
Short message between contact person.For another example the instant messagings such as QQ, wechat application middle finger set friend account information, and with the good friend
Between chat record etc..
Specifically, when the first judging unit 402 judges that the corresponding operational order of touch operation of user's input is default
When the information deletion instruction of contact person, information deletion instruction will be responded by deleting unit 403, delete the letter of the default contact person
Breath.When default contact person has multiple, the information deletion instruction of the corresponding default contact person of a touch operation can be,
It can be a touch operation while the information deletion instruction of corresponding multiple default contact persons, be somebody's turn to do when user inputs on the touchscreen
When touch operation, the information of multiple default contact persons can be deleted simultaneously by deleting unit 403.
As an example it is assumed that the pre-set default contact person of user includes A, B, C, D, and each preset the letter of contact person
It is different that breath deletes the corresponding touch operation of instruction.So when user inputs long press operation on the touchscreen, it is assumed that first sentences
Disconnected unit 402 judges that the information deletion that the corresponding operational order of the long press operation is B instructs.Therefore, deleting unit 403 will
Delete QQ, wechat and the telephone number of B, and chat record between B and short message message registration etc..
Optionally, it deletes unit 403 and responds information deletion instruction, the concrete mode for deleting the information of default contact person can
With are as follows:
Obtain all communications accounts and the corresponding application of each communications account of the default contact person.From local file
In folder in the corresponding application memory file of each communications account, the communications records between each communications account deleted and obtained,
All communications accounts of the default contact person can also be deleted simultaneously.
As it can be seen that terminal can receive user at it when putting out screen state or screen lock state in the terminal described in Fig. 4
The touch operation inputted on touch screen, and judge whether the corresponding operational order of the touch operation is that the information of default contact person is deleted
Except instruction, if so, just responding information deletion instruction, the information of the default contact person is deleted.Through the embodiment of the present invention, it uses
Family can directly delete the information of default contact person when terminal puts out screen or screen lock state, reduce user's operation, thus raising pair
The deletion efficiency of terminal contact information promotes user experience.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention.Wherein, shown in Fig. 5
Terminal 400 be to optimize on the basis of terminal 400 shown in Fig. 4 to obtain.As shown in figure 5, the terminal 400 can also include
With lower unit:
Second judgment unit 404, for receiving touch screen when the terminal 400 is in screen lock state in receiving unit 401
On touch operation after, judge whether the touch operation is one of default unlock operation.
During the present invention is implemented, terminal 400 can be preset there are many unlock operation, that is, multiple unlocking pins, and one
Kind unlock operation can be used for normal release, remaining one or more unlocks operation can bind designated contact, when user is defeated
When what is entered is normal release operation, lifting unit 405 only releases the screen lock state of terminal 400, and work as user's input is it
When remaining unlock operates, the deletion of unit 403 can be deleted with the unlock and operates the pre- of binding while lifting unit 405 unlocks
If the information of contact person.
That is, when terminal 400 is in screen lock state, if user inputs touch on the touch screen of terminal 400
Operation, then receiving unit 401 can receive the touch operation, second judgment unit 404 and judge the touch operation whether be
One of default unlock operation.If the touch operation is unlock operation, which will release its screen locking
State.If the touch operation is not unlock operation, which does not do any response.
For example, if the unlocking manner of terminal 400 is the unlock that draws a design, terminal 400 can be preset,
The terminal 400 can be unlocked when such as drawing W and M character.Therefore, when user is waken up terminal 400 by black state
When, which can export the prompt information of prompt user's unlock.If the pattern that user draws and the pattern for unlock are not
Unanimously, then the terminal 400 will prompt user to unlock failure.Further, terminal 400 can also prompt user's residue to unlock
Number, when for preventing terminal 400 to be stolen illegal user obtain user privacy information.And if the pattern that user draws is W
Or when any one in M character, second judgment unit 404 will judge that the touch operation for drawing the pattern is default unlock
One of operation, therefore, lifting unit 405 will release the screen lock state of the terminal 400.
Lifting unit 405, for judging that the touch operation is one in default unlock operation in second judgment unit 404
When kind, the screen lock state of the terminal is released, and triggers the execution of the first judging unit 402 and judges that the corresponding operation of the touch operation refers to
Whether enable is the operation for presetting the information deletion instruction of contact person.
In the embodiment of the present invention, terminal 400 can preset multiple unlocking pins, touch when user inputs in screen lock state
Whether the touch operation that the second judgment unit 404 judges user's input first when touching operation is the corresponding behaviour of unlocking pin
Make, its screen lock state can be released if it is so osculating element 405, then the first judging unit 402 further judges the touching
It touches and operates whether corresponding operational order is the information deletion instruction for presetting contact person, this is pre- if so, deleting the deletion of unit 403
If the information of contact person, if it is not, only carrying out unlock operation.
In the embodiment of the present invention, the first judging unit 402 may determine that subelement 4021 and determine subelement 4022,
In:
Judgment sub-unit 4021, for judging whether the touch operation is the behaviour for triggering the information for deleting default contact person
Make.
Subelement 4022 is determined, for judging that the touch operation deletes default connection for triggering in judgment sub-unit 4021
When the operation of the information of people, the information deletion instruction that the corresponding operational order of the touch operation is the default contact person is determined.
In the specific implementation, user can preassign the default connection of one or more that can delete contact information with a key
People.The information deletion of each default contact person instructs corresponding touch operation can be different, be also possible to it is identical, also
It says, user can set the same touch operation can delete the information of multiple default contact persons simultaneously, or each pre-
If a different touch operation is set separately in contact person, for deleting the information of each contact person, the embodiment of the present invention respectively
Without limitation.
Therefore, when inputting touch operation on the touch screen of terminal 400 as user, judgment sub-unit 4021 judges the touching
Touch whether operation is the operation for triggering the information for deleting some or multiple default contact persons, if so, determining subelement
4022 determine that the information deletion instruction that the corresponding operational order of the touch operation is the default contact person.
In the embodiment of the present invention, deleting unit 403 may include obtaining subelement 4031 and deletion subelement 4032,
In:
Subelement 4031 is obtained, for obtaining at least one communications account of the default contact person, and is obtained with this at least
The communications records of one communications account.
Subelement 4032 is deleted, for responding information deletion instruction, deletes the communications records.
In the specific implementation, user may be added with multiple communications accounts for the same default contact person, therefore, when first
Judging unit 402 judges the information deletion instruction that the corresponding operational order of touch operation of user's input is the default contact person
When, all or part of communication accounts of its installation application or the default contact person being locally stored will be obtained by obtaining subelement 4031
Number, and obtain the communications records between each communications account.Wherein, which can be telephone number, QQ account, micro-
Believe account, Email Accounts etc., the embodiment of the present invention is without limitation.
As an example it is assumed that the pre-set default contact person of user includes W, H, the information for triggering the two contact persons is deleted
Except instruction is all to slide S character in the lower right field of touch screen.Therefore, when user inputs slide on the touchscreen,
First judging unit 402 judges whether corresponding sliding trace of the slide etc. is deleted with the information of the two contact persons first
Except instructing the sliding trace of corresponding slide consistent, if so, obtaining subelement 4031 will divide from local folders
Not Cha Zhao W and H QQ account and user's chat record etc. between W and the QQ of H respectively, delete subelement 4032
Then the QQ account with W and H, and deletion and the chat record between them will be deleted simultaneously.
As it can be seen that in the terminal depicted in fig. 5, user can delete one or more while being unlocked to terminal
The communications account of a designated contact and the communications records between these communications accounts.Specified connection is realized in unlock in this way
It is the key deletion of people's information, it is possible to reduce search operation when user deletes promotes user experience.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention.Wherein, shown in Fig. 6
Terminal 400 be to optimize on the basis of terminal 400 shown in Fig. 4 to obtain.As shown in fig. 6, the terminal 400 can also include
With lower unit:
Backup units 407, the information back-up of the default contact person for that will delete is into default memory space.
In the embodiment of the present invention, after deleting the information that unit 403 deletes default contact person, backup units 407 can be incited somebody to action
The information back-up of deletion is to default memory space.Wherein, which can be network hard disc, the text for being provided with password
Part folder, server etc., the embodiment of the present invention is without limitation.That is, will be pre- when deleting the deletion instruction of 403 response message of unit
If after the information deletion of contact person, backup units 407 information for presetting contact person can be stored to network hard disc etc. others
It is difficult in the default memory space viewed.
Third judging unit 408, for judging whether receive the information for presetting contact person for this in effective time
Deletion cancel an order.
In the embodiment of the present invention, what the information that effective time is primarily referred to as default contact person stored in default memory space
Life cycle, the effective time can be 30 seconds, 1 minute, 3 minutes etc., can be the setting of 400 system of terminal, are also possible to
User setting, the embodiment of the present invention is without limitation.Therefore, after deleting unit 403 and deleting the information for presetting contact person, the
Three judging units 408 can judge always the deletion revocation that the information of contact person is preset for this whether is received in effective time
Instruction.Wherein, the deletion cancel an order of the information of the default contact person, which can be, inputs some specific operation life by user
At, it is also possible to user into the default memory space and is directed to the deletion revocation function triggering that the default contact person chooses later
, the embodiment of the present invention is without limitation.
Recovery unit 409, for judging to be received in effective time for the default connection in third judging unit 408
When being the deletion cancel an order of the information of people, the information for restoring the default contact person in memory space is preset from this.
In the embodiment of the present invention, when third judging unit 408 is judged to be received in effective time for the default connection
It is the deletion cancel an order of the information of people, recovery unit 409 will respond the deletion cancel an order, preset in memory space from this
Restore the information of the default contact person.Specifically, recovery unit 409 will be deleted the default connection backed up in the default memory space
It is the information of people, and the information for presetting contact person is restored in the file before deleting with same path.
For example, when information back-up to network hard disc of the backup units 407 by the default contact person of deletion, Yong Hu
Another touch operation is inputted on the touch screen of terminal 400 in effective time 2 minutes, H character is such as slided, then the terminal 400
The deletion cancel an order that the information of contact person is preset for this will be received, recovery unit 409 is to respond deletion revocation
The information of the default contact person stored in network hard disc is restored in the local folders of terminal 400 by instruction.
Unit 403 is deleted, is also used to judge not receive in effective time in third judging unit 408 pre- for this
If when the deletion cancel an order of the information of contact person, which being preset in memory space from this and is deleted.
In the embodiment of the present invention, judges not receive in effective time when third judging unit 408 and be preset for this
The deletion cancel an order of the information of contact person, then deleting unit 403 will be directly empty from default storage after effective time
Between the middle information for deleting the default contact person.That is, if user is in effective time not to the default contact person of deletion
Information do reduction treatment, then this will be preset the information complete deletion of contact person by deleting unit 403, thus can not be extensive
It is multiple.
For example, when information back-up to network hard disc of the backup units 407 by the default contact person of deletion, Yong Huru
There is no the operations inputted on the touch screen of terminal 400 as slided H character in effective time 2 minutes for fruit, then third is sentenced
Disconnected unit 408 indicates that not receive in effective time to be referred to for the deletion revocation for presetting the information of contact person
It enables, deletes unit 403 to which after 2 minutes, this stored in network hard disc is preset the information complete deletion of contact person.
As it can be seen that terminal can will back up to default in the terminal described in Fig. 6 after the information deletion of default contact person
In memory space, only user inputs the operation for restoring the information for presetting contact person in effective time, then the end
End will restore the information of the default contact person again, can prevent the maloperation of user, in this way so as to avoid to preset
The information of contact person is accidentally deleted.Further, it can also be restored in effective time after the information for deleting default contact person
The information, to view the communications records between user and default contact person, Jin Eryou when preventing other people using the terminal
User privacy information is protected to effect, improves the safety of end message.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.