Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In specific implementation, terminal mentioned by the embodiment of the present invention includes but not limited to: the electronic equipment such as smart mobile phone (as Android phone, IOS mobile phone), panel computer, notebook computer, palm PC, mobile internet device (MID, MobileInternetDevice) or wearable intelligent equipment.
It should be noted that, method described in the invention is performed by the one group of code stored in memory, and this code is executed in the computer system based on von Neumann system.This computer program can be the terminal program of execute file delete function.Accordingly, this computer system can be the terminal device with file erase function.
A kind of delet method provided the embodiment of the present invention below in conjunction with Fig. 1 to Fig. 5 and terminal are specifically described.
See Fig. 1, be the schematic flow sheet of a kind of delet method that the embodiment of the present invention provides, delet method as shown in the figure can comprise the following steps:
S101, according to the first move, mobile first file.
In specific implementation, the file described in the present embodiment includes but not limited to: icon of audio file, video file, text, picture file, application file or file etc.First user can input the first move by the input media (as physical keyboard or touch-screen etc.) of terminal for the first file, when terminal receives this first move, according to this first move, and mobile first file.Such as, terminal be band touch-screen smart mobile phone, and the first file be current smart mobile phone display interface of main menu on QQ application icon, now, user can with finger by touch-screen length by QQ application icon to choose; If user press...withes one's finger, this QQ application icon moves on the touchscreen, is now considered as user and inputs the first move for this QQ application icon, and the location following user finger sliding trace on the touchscreen of this QQ application icon moves.Again such as, terminal is portable computer, and the first file is the document files on current portable computer desktop, and now, user can click the mouse left button to choose for the document file; If user clicks the mouse, left button drags the document file and moves on the table, and be now considered as user and input the first move for the document file, the dragging track of the location following mouse of the document file moves.
S102, forms overlapping region if detect between described first file and described file, deletes the second file matched with described first file in described first file and/or described file according to preset rules.
In specific implementation, described file at least comprises a file.After user completes the movement of the first file, detect the first file final position and whether form overlapping region with file, and when testing result is for being, delete the second file matched with described first file in described first file and/or described file according to preset rules.Such as, terminal is the smart mobile phone of band touch-screen, and after user to choose by the first file QQ application icon on current interface of main menu with finger is long, drag this QQ application icon with finger to move, when user being unclamped finger, finger position is on the touchscreen as the final position of this QQ application icon, if region, final position also has a file, then the first file and this file form overlapping region; If have the second file in file, and this second file also QQ application icon, now think that the first file and the second file are what mate, therefore can according to the second file QQ application icon in preset rules Delete Folder, or delete the first file QQ application icon, or the first file and the second file are deleted simultaneously.
In another embodiment, described the second file according to matching with described first file in preset rules described first file of deletion and/or described file can specifically comprise:
Judge whether the data message of described first file matches with the data message of the second file in described file; When judged result is for being, delete described first file and/or described second file according to preset rules.
In specific implementation, in order to save storage space in same terminal, usually identical file or the application file of same type only can preserve portion, therefore, when detect form overlapping region between the first file and file time, can judge whether whether the data message of the first file mate with the data message of the second file in file further, and when judged result is for being, perform the step of deleting described first file and/or described second file according to preset rules.Wherein, data message comprises but is not limited to file content, file name, file attribute, file type or file icon figure etc.Such as, first file and the second file are document files, then detect form overlapping region between the first file and file time, whether file name and the file content that can detect the first file and the second file in file be further identical, if, then think that the data message of the first file and the second file is coupling, and then the first file and/or the second file can be deleted.Again such as, first file is " Baidu's map ", second file is " high moral map ", can detect in the file name of the first file and the second file and all comprise " map ", now, terminal judges the first file identical with the file attribute of the second file (being all belong to navigation type application file) by " map " this key word, therefore, think that the data message of the first file and the second file is coupling, and then the first file can deleted wherein or the second file, even all delete; When certainly also all can comprise " map " in this example in the file name the first file and the second file being detected, just think that the first file and the data message of the second file are couplings (file name part is identical).
In another embodiment, before performing step S102, described method also comprises: according to the second move, mobile described file.
In specific implementation, can when mobile first file move folder simultaneously, also after first can moving the first file, move presss from both sides, the first file can also be moved again by first move folder, in moving process or when having moved, can detect between the first file and file and whether form overlapping region, and when testing result is for being, delete the second file mated with the first file in the first file and/or file according to preset rules.Such as, terminal is the smart mobile phone of band touch-screen, and the first file is the QQ application icon on current smart mobile phone display page; File is the Application Folder on current display page face, and now, user can press QQ application icon and Application Folder respectively by thumb and forefinger length, then pins the two and moves on display page.Mobile first file and file simultaneously, the relative position conversion of the two can be made faster, and deletion action is carried out in the target location making file move to user faster then, improves operating efficiency.
In another embodiment, delete according to preset rules the second file matched with described first file in described first file and/or described file in step S102 can be specially: if the creation-time of described first file is early than the creation-time of described second file, delete described first file; Or, if the version information of described first file is early than the version information of described second file, delete described first file; Or, if move described first file, delete described first file; Or, if move described first file and described second file, delete described first file and described second file.
Such as, detect when forming overlapping region between the first file and file, the second file mated with the first file in file can be obtained further, and then judge that the creation-time of the first file is whether early than the creation-time of the second file in file, if, then delete the first file, if not, then can delete the second file.In like manner, such as, first file is the corresponding QQ version information of QQ application icon is QQ2007, second file is the corresponding QQ version information of QQ application icon is QQ2003, if then detect and form overlapping region between the first file and file, detect that version information QQ2003 is early than version information QQ2007 further, therefore can delete the QQ application icon that version information is QQ2003.
In another embodiment, when described first file is the first application icon, when the second file is the second application icon, described method also comprises: when deleting described first application icon, unloads corresponding first application of described first application icon; Or, when deleting described second application icon, unload corresponding second application of described second application icon; Or, when deleting described first application icon and described second application icon, unload corresponding first application of described first application icon and corresponding second application of described second application icon.
Such as, the first file is QQ application icon, and corresponding QQ version information is QQ2007; The second file in file is also QQ application icon, and corresponding QQ version information is QQ2003; If then detect and form overlapping region between the first file and file, and delete be version information be the QQ application icon of QQ2003 time, can discharging terminal and version information be the corresponding QQ application program of the QQ application icon of QQ2003 simultaneously.Adopt this method, when user wants to unload certain application program, the control panel that just can open a terminal goes to select corresponding application program to unload, and directly goes to unload same or similar application program by deleting display application icon on the table.
The embodiment of the present invention, file comprises at least one file, and terminal can according to the first move, mobile first file; Also can detect form overlapping region between described first file and file time, delete the second file matched with described first file in described first file and/or described file according to preset rules.Adopt the embodiment of the present invention, can the delete step of simplified-file, improve file operation efficiency.
See Fig. 2, be the schematic flow sheet of the another kind of delet method that the embodiment of the present invention provides, delet method as shown in the figure can comprise the following steps:
S201, according to the first move, mobile first file.
In specific implementation, the file described in the present embodiment includes but not limited to: icon of audio file, video file, text, picture file, application file or file etc.First user can input the first move by the input media (as physical keyboard or touch-screen etc.) of terminal for the first file, when terminal receives this first move, according to this first move, and mobile first file.Such as, terminal be band touch-screen smart mobile phone, and the first file be current smart mobile phone display interface of main menu on QQ application icon, now, user can with finger by touch-screen length by QQ application icon to choose; If user press...withes one's finger, this QQ application icon moves on the touchscreen, is now considered as user and inputs the first move for this QQ application icon, and the location following user finger sliding trace on the touchscreen of this QQ application icon moves.Again such as, terminal is portable computer, and the first file is the document files on current portable computer desktop, and now, user can click the mouse left button to choose for the document file; If user clicks the mouse, left button drags the document file and moves on the table, and be now considered as user and input the first move for the document file, the dragging track of the location following mouse of the document file moves.
S202, forms overlapping region if detect between described first file and file, judges whether the data message of described first file matches with the data message of the second file in described file.
In specific implementation, described file at least comprises a file.After user completes the movement of the first file, detect the first file final position and whether form overlapping region with file, and when testing result is for being, whether the data message detecting the first file further matches with the data message of the second file in described file.Wherein, data message comprises but is not limited to file content, file name, file attribute, file type or file icon figure etc.
Such as, terminal is the smart mobile phone of band touch-screen, and after user to choose by the first file QQ application icon on current interface of main menu with finger is long, drag this QQ application icon with finger to move, when user being unclamped finger, finger position is on the touchscreen as the final position of this QQ application icon, if region, final position also has a file, then the first file and this file form overlapping region; If have the second file in file, and this second file also QQ application icon, now think that the first file and the second file are (file icon figure is identical) of mating, therefore can according to the second file QQ application icon in preset rules Delete Folder, or delete the first file QQ application icon, or the first file and the second file are deleted simultaneously.
Again such as, first file is " Baidu's map ", second file is " high moral map ", can detect in the file name of the first file and the second file and all comprise " map ", now, terminal judges the first file identical with the file attribute of the second file (being all belong to navigation type application file) by " map " this key word, therefore, think that the data message of the first file and the second file is coupling, and then the first file can deleted wherein or the second file, even all delete; When certainly also all can comprise " map " in this example in the file name the first file and the second file being detected, just think that the first file and the data message of the second file are couplings (file name part is identical).
Again such as, first file and the second file are document files, then detect form overlapping region between the first file and file time, to the file name of the second file in detection first file and file be all further: " the first document files ", and file content is also identical, think that the data message of the first file and the second file is coupling, then can delete the first file or the second file, also can delete two files simultaneously.
S203, when judged result is for being, deletes described first file and/or described second file according to preset rules.
In specific implementation, if the creation-time of described first file is early than the creation-time of described second file, delete described first file; Or, if the version information of described first file is early than the version information of described second file, delete described first file; Or, if move described first file, delete described first file; Or, if move described first file and described second file, delete described first file and described second file.
Such as, detect when forming overlapping region between the first file and file, the second file mated with the first file in file can be obtained further, and then judge that the creation-time of the first file is whether early than the creation-time of the second file in file, if, then delete the first file, if not, then can delete the second file.In like manner, such as, first file is the corresponding QQ version information of QQ application icon is QQ2007, second file is the corresponding QQ version information of QQ application icon is QQ2003, if then detect and form overlapping region between the first file and file, detect that version information QQ2003 is early than version information QQ2007 further, therefore can delete the QQ application icon that version information is QQ2003.
In another embodiment, before performing step S202, described method also comprises: according to the second move, mobile described file.
In specific implementation, can when mobile first file move folder simultaneously, also after first can moving the first file, move presss from both sides, the first file can also be moved again by first move folder, in moving process or when having moved, can detect between the first file and file and whether form overlapping region, and when testing result is for being, delete the second file matched with described first file in the first file and/or described file according to preset rules.Such as, terminal is the smart mobile phone of band touch-screen, and the first file is the QQ application icon on current smart mobile phone display page; File is the Application Folder on current display page face, and now, user can press QQ application icon and Application Folder respectively by thumb and forefinger length, then pins the two and moves on display page.Mobile first file and file simultaneously, the relative position conversion of the two can be made faster, and deletion action is carried out in the target location making file move to user faster then, improves operating efficiency.
In another embodiment, when described first file is the first application icon, when the second file is the second application icon, described method also comprises: when deleting described first application icon, unloads corresponding first application of described first application icon; Or, when deleting described second application icon, unload corresponding second application of described second application icon; Or, when deleting described first application icon and described second application icon, unload corresponding first application of described first application icon and corresponding second application of described second application icon.
Such as, the first file is QQ application icon, and corresponding QQ version information is QQ2007; The second file in file is QQ application icon, and corresponding QQ version information is QQ2003; If then detect and form overlapping region between the first file and file, and delete be version information be the QQ application icon of QQ2003 time, can discharging terminal and version information be the corresponding QQ application program of the QQ application icon of QQ2003 simultaneously.Adopt this method, when user wants to unload certain application program, the control panel that just can open a terminal goes to select corresponding application program to unload, and directly goes to unload identical or similar application program by deleting display application icon on the table.
The embodiment of the present invention, file comprises at least one file, and terminal can according to the first move, mobile first file; Also can detect form overlapping region between described first file and described file time, judge whether the data message between the second file in described first file and described file matches; And when judged result is for being, delete described first file and/or described second file according to preset rules.Adopt the embodiment of the present invention, can the delete step of simplified-file, improve file operation efficiency.
Be a kind of terminal structure schematic diagram that the embodiment of the present invention provides see Fig. 3, Fig. 3, terminal at least can comprise as shown in the figure: file mobile unit 301 and file erase unit 302.
File mobile unit 301, for according to the first move, moves the first file.
In specific implementation, including but not limited to described in the present embodiment: icon of audio file, video file, text, picture file, application file or file etc.First user can input the first move by the input media (as physical keyboard or touch-screen etc.) of terminal for the first file, when terminal receives this first move, file mobile unit 301, according to this first move, moves the first file.Such as, terminal be band touch-screen smart mobile phone, and the first file be current smart mobile phone display interface of main menu on QQ application icon, now, user can with finger by touch-screen length by QQ application icon to choose; If user press...withes one's finger, this QQ application icon moves on the touchscreen, is now considered as user and inputs the first move for this QQ application icon, and the location following user finger sliding trace on the touchscreen of this QQ application icon moves.Again such as, terminal is portable computer, and the first file is the document files on current portable computer desktop, and now, user can click the mouse left button to choose for the document file; If user clicks the mouse, left button drags the document file and moves on the table, and be now considered as user and input the first move for the document file, the dragging track of the location following mouse of the document file moves.
File erase unit 302, forms overlapping region if detect between described first file and described file, deletes the second file matched with described first file in described first file and/or described file according to preset rules.
In specific implementation, file comprises at least one file.After user completes the movement of the first file, detect the first file final position and whether form overlapping region with file, and when testing result is for being, file erase unit 302, deletes the second file matched with described first file in described first file and/or described file according to preset rules.Such as, terminal is the smart mobile phone of band touch-screen, and after user to choose by the first file QQ application icon on current interface of main menu with finger is long, drag this QQ application icon with finger to move, when user being unclamped finger, finger position is on the touchscreen as the final position of this QQ application icon, if region, final position also has a file, then the first file and this file form overlapping region; If have the second file in file, and this second file also QQ application icon, now think that the first file and the second file are what mate, therefore file erase unit 302 can according to the second file QQ application icon in preset rules Delete Folder, or delete the first file QQ application icon, or the first file and the second file are deleted simultaneously.
See the structural representation that Fig. 4 Fig. 4 is a kind of file erase unit that the embodiment of the present invention provides, file erase unit 302 as shown in the figure can comprise: matching judgment subelement 3201 and file erase subelement 3202.
Matching judgment subelement 3201, for judging whether the data message of described first file matches with the data message of the second file in described file;
File erase subelement 3202, for when judged result is for being, deletes described first file and/or described second file according to preset rules.
Wherein, data message comprises but is not limited to file content, file name, file attribute, file type or file icon figure etc.Such as, first file and the second file are document files, then detect form overlapping region between the first file and file time, to the file name of the second file in detection first file and file be all further: " the first document files ", and file content is also identical, then illustrate that these two files are identical files (thinking that the data message of the first file and the second file is coupling), then file erase subelement 302 can delete the first file or the second file, also can delete two files simultaneously.Again such as, first file is " Baidu's map ", second file is " high moral map ", can detect in the file name of the first file and the second file and all comprise " map ", now, terminal judges the first file identical with the file attribute of the second file (being all belong to navigation type application file) by " map " this key word, therefore, think that the data message of the first file and the second file is coupling, and then the first file can deleted wherein or the second file, even all delete; When certainly also all can comprise " map " in this example in the file name the first file and the second file being detected, just think that the first file and the data message of the second file are couplings (file name part is identical).
Described file erase unit 302 specifically for: if the creation-time of described first file is early than the creation-time of described second file, delete described first file; Or, if the version information of described first file is early than the version information of described second file, delete described first file; Or, if move described first file, delete described first file; Or, if move described first file and described second file, delete described first file and described second file.
Such as, detect when forming overlapping region between the first file and file, the second file mated with the first file in file can be obtained further, and then judge that the creation-time of the first file is whether early than the creation-time of the second file in file, if, file erase unit 302 deletes the first file, and if not, file erase unit 302 can delete the second file.In like manner, such as, first file is the corresponding QQ version information of QQ application icon is QQ2007, second file is the corresponding QQ version information of QQ application icon is QQ2003, if then detect and form overlapping region between the first file and file, detect that version information QQ2003 is early than version information QQ2007 further, therefore file erase unit 302 can delete the QQ application icon that version information is QQ2003.
In another embodiment, described file mobile unit 301 also for: before deleting at described file erase unit the second file matched with described first file in described first file and/or described file according to preset rules, according to the second move, mobile described file.
In specific implementation, can when mobile first file move folder simultaneously, also after first can moving the first file, move presss from both sides, the first file can also be moved again by first move folder, in moving process or when having moved, can detect between the first file and file and whether form overlapping region, and when testing result is for being, delete the second file mated with described first file in the first file and/or described file according to preset rules.Such as, terminal is the smart mobile phone of band touch-screen, and the first file is the QQ application icon on current smart mobile phone display page; File is the Application Folder on current display page face, and now, user can press QQ application icon and Application Folder respectively by thumb and forefinger length, then pins the two and moves on display page.File mobile unit 301 is mobile first file and file simultaneously, and the relative position conversion of the two can be made faster, and deletion action is carried out in the target location making file move to user faster then, improves operating efficiency.
In another embodiment, described first file is the first application icon, and the second file is the second application icon, and described terminal also comprises: application unloading unit 303, for when deleting described first application icon, unload corresponding first application of described first application icon; Or, for when deleting described second application icon, unload corresponding second application of described second application icon; Or, for when deleting described first application icon and described second application icon, unload corresponding first application of described first application icon and corresponding second application of described second application icon.
Such as, the first file is QQ application icon, and corresponding QQ version information is QQ2007; The second file in file is QQ application icon, and corresponding QQ version information is QQ2003; If then detect and form overlapping region between the first file and file, and delete be version information be the QQ application icon of QQ2003 time, applying unloading unit 303 can discharging terminal and version information be the corresponding QQ application program of the QQ application icon of QQ2003 simultaneously.Adopt this method, when user wants to unload certain application program, the control panel that just can open a terminal goes to select corresponding application program to unload, and directly deletes and go to unload identical similar application program by display application icon on the table.
The embodiment of the present invention, by file mobile unit 301 according to the first move, mobile first file; Also by file erase unit 302 detect form overlapping region between described first file and file time, according to preset rules delete in described first file and/or described file with the second file of matching in described first file.Adopt the embodiment of the present invention, can the delete step of simplified-file, improve file operation efficiency.
See the structural representation that Fig. 5, Fig. 5 are the another kind of terminals that the embodiment of the present invention provides, the terminal in the present embodiment as shown in the figure can comprise: at least one processor 501, such as CPU; Storer 502.Above-mentioned processor 501 is connected by bus 503 with storer 502.
Storer 502 can be high-speed RAM storer, also can be non-labile storer (non-volatilememory), such as at least one magnetic disk memory.Storer 502 can also be optionally that at least one is positioned at the storage terminal away from aforementioned processor 501.Wherein processor 501 can the terminal shown in composition graphs 3, wherein stores batch processing code in storer 502, and processor 501 calls the code stored in storer 502, for performing following operation:
Above-mentioned processor 501, for according to the first move received, moves the first file; .
Above-mentioned processor 501, if also form overlapping region for detecting between described first file and described file, deletes the second file matched with described first file in described first file and/or described file according to preset rules.
Accordingly, the terminal that the embodiment of the present invention provides also can comprise: output device 504, and for the file icon of display file folder and file, this output device 504 can be specially display screen.In addition, the terminal that the embodiment of the present invention provides also can comprise: input equipment 505, this input equipment can comprise as keyboard, Trackpad, fingerprint adopt the input equipment of sensor and sound pick-up outfit etc., and user inputs the first move and/or the second move by input equipment 505.
In another embodiment, described processor 501 also for: detect and form overlapping region between described first file and described file, before deleting according to preset rules the second file matched with described first file in described first file and/or described file, according to the second move, mobile described file.
In another embodiment, described processor 501 also specifically for: judge whether the data message of described first file matches with the data message of the second file in described file, and described data message comprises file content and/or file name; When judged result is for being, delete described first file and/or described second file according to preset rules.
In another embodiment, described processor 501 also specifically for: if the creation-time of described first file is early than the creation-time of described second file, delete described first file; Or, if the version information of described first file is early than the version information of described second file, delete described first file; Or, if move described first file, delete described first file; Or, if move described first file and described second file, delete described first file and described second file.
In another embodiment, described first file is the first application icon, and the second file is the second application icon, described processor 501 also for: when delete described first application icon time, unload described first application icon corresponding first application; Or, when deleting described second application icon, unload corresponding second application of described second application icon; Or, when deleting described first application icon and described second application icon, unload corresponding first application of described first application icon and corresponding second application of described second application icon.
In specific implementation, processor 501 described in the embodiment of the present invention and storer 502 can perform the first embodiment of the delet method that the embodiment of the present invention provides and the implementation described in the second embodiment, also can perform the implementation of the terminal described by the embodiment of the present invention, not repeat them here.
For each embodiment of the method aforesaid, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the application is not by the restriction of described sequence of movement, because according to the application, certain some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and unit might not be that the application is necessary.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above a kind of delet method disclosed in the embodiment of the present invention and terminal are described in detail, above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, therefore according to the equivalent variations that the claims in the present invention are done, the scope that the present invention is contained still is belonged to.