Summary of the invention
Too much artificial intervention in the transmission course reduces error rate, and the embodiment of the invention provides data transmission method, device and terminal device.Described technical scheme is as follows:
First aspect, a kind of data transmission method, described method comprises:
Start the interactive interface of first client, described interactive interface is used for described first client and described second client is carried out alternately;
Detect user's operation, when detecting assigned operation, obtain the data type of described assigned operation corresponding data, described assigned operation is included on the described interactive interface drag operation and the paste operation to described data;
By communicating to connect between described first client and described second client, to the data type of the described data of described second client transmissions and described data, make described second client handle described data according to the data type of described data.
Preferable, when detecting assigned operation, the data type of obtaining the data of described assigned operation correspondence comprises:
When assigned operation is drag operation, read the file path name of described data, obtain the data type of described data according to the file path name of described data; Or,
When assigned operation is paste operation, according to the data in the clipbook, obtain the data type of described data.
Preferable, when assigned operation is drag operation, reading the file path name of described data, the data type of obtaining described data according to the file path name of described data comprises:
Read the file path name of described data;
According to the file suffixes in the file path name of described data, obtain the data type of described data;
According to the file header of described data, checking established data type;
When according to the file header established data type of described data when identical by described suffix established data type, described suffix established data type is retrieved as the data type of described data.
Preferable, when assigned operation was paste operation, the data type of obtaining described data according to data in the clipbook comprised:
When data in the clipbook are the file path name, determine the data type of described data according to the file header of the file suffixes in the described file path name and described data; Or,
When data in the clipbook are not the file path name, from clipbook, obtain the data type of described data.
Second aspect, a kind of data transmission method, described method comprises:
By communicating to connect between first client and second client, receive the data of described first client transmissions and the data type of described data;
Data type according to described data is handled described data.
Preferable, according to the data type of described data described data are handled and to be comprised:
When the default data processing method of second client was storage, second client was obtained the corresponding file catalogue according to the data type of data, according to the store path of this document catalogue, data is stored to the corresponding file catalogue;
When the default data processing method of second client is start-up routine when data are handled, second client is identified described data, starts corresponding program according to the data identification result.
The third aspect, a kind of data transmission device, described device comprises:
Start module, be used for starting interactive interface, described interactive interface is used for local terminal and described second client is carried out alternately;
Acquisition module for detection of user operation, when detecting assigned operation, obtains the data type of described assigned operation corresponding data, and described assigned operation is included on the described interactive interface drag operation and the paste operation to described data;
Transport module, be used for by communicating to connect between described local terminal and described second client, to the data type of the described data of described second client transmissions and described data, make described second client handle described data according to the data type of described data.
Preferable, described acquisition module comprises:
First acquiring unit is used for reading the file path name of described data when assigned operation is drag operation, obtains the data type of described data according to the file path name of described data; Or,
Second acquisition unit is used for according to the data in the clipbook, obtaining the data type of described data when assigned operation is paste operation.
Preferable, described first acquiring unit is used for reading the file path name of described data; According to the file suffixes in the file path name of described data, obtain the data type of described data; According to the file header of described data, checking established data type; When according to the file header established data type of described data when identical by described suffix established data type, described suffix established data type is retrieved as the data type of described data.
Preferable, described second acquisition unit is used for determining the data type of described data according to the file header of the file suffixes in the described file path name and described data when the clipbook data are the file path name; Or described second acquisition unit is used for obtaining the data type of described data from clipbook when the clipbook data are not the file path name.
Fourth aspect, a kind of device of data transmission, described device comprises:
Receiver module is used for by communicating to connect between first client and the local terminal, receives the data of described first client transmissions and the data type of described data;
Processing module is used for according to the data type of described data described data being handled.
Preferable, described processing module comprises:
Storage unit is used for when the default data processing method of local terminal is storage, and local terminal obtains the corresponding file catalogue according to the data type of data, according to the store path of this document catalogue, data is stored to the corresponding file catalogue; Or,
Start unit, be used for when the default data processing method of local terminal be start-up routine when data are handled, local terminal is identified described data, starts the program of correspondence according to the data identification result.
The 5th aspect, a kind of terminal device, described terminal device includes storer, and one or more than one program, one of them or an above procedure stores and are configured to be carried out by the above processor of or and state one or an above program and comprise be used to the instruction of carrying out following operation in storer:
Start interactive interface, described interactive interface is used for local terminal and described second client is carried out alternately;
Detect user's operation, when detecting assigned operation, obtain the data type of described assigned operation corresponding data, described assigned operation is included on the described interactive interface drag operation and the paste operation to described data;
By communicating to connect between described local terminal and described second client, to the data type of the described data of described second client transmissions and described data, make described second client handle described data according to the data type of described data.
The 6th aspect, a kind of terminal device, described terminal device includes storer, and one or more than one program, one of them or an above procedure stores and are configured to be carried out by the above processor of or and state one or an above program and comprise be used to the instruction of carrying out following operation in storer:
By communicating to connect between first client and the local terminal, receive the data of described first client transmissions and the data type of described data;
Data type according to described data is handled described data.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
By to pull or form such as paste operation is determined data to be transmitted, automatically obtained the data type of data to be transmitted by a terminal device, make another terminal device carry out respective handling according to the data type of data to data, a kind of data transfer mode more directly perceived and easy between terminal device is provided, manually-operated is simple, avoid artificial intervention too much in the transmission course, reduced error rate.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
For convenience of description, at this technical words that the present invention relates to is introduced:
File path name, file path name specifically are made up of the directory name of going through when the access file.As file path name dir1/dir2/hotdir31.doc, this document pathname is made up of directory name dir1, dir2, hotdir31, separates with "/" between the directory name.
Client can be the client on the fixed terminal or the client on the portable terminal in the embodiment of the invention, fixed terminal can be PC(Personal Computer, PC) or display device, portable terminal can be smart mobile phone, panel computer, MP3(Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), PDA(Personal Digital Assistant, personal digital assistant) etc.
Fig. 2 is a kind of data transmission method process flow diagram that the embodiment of the invention provides.This inventive embodiments is that executive agent describes with first client, and referring to Fig. 2, this embodiment comprises:
201, start the interactive interface of first client, this interactive interface is used for this first client and this second client is carried out alternately;
Alternatively, first client comprises following two kinds of Starting mode at least:
According to the enabled instruction of the interactive interface of first client, start the interactive interface of this first client;
Or,
Whether have portable terminal insert this locality, when portable terminal inserts, start the interactive interface of first client automatically if detecting.
Alternatively, in embodiments of the present invention, after starting the interactive interface of first client, at least obtain the file storage information of this second client, this document storage information comprises the filename of storing in the file directory of second client and each file directory, first client is presented at the file storage information that gets access on this interactive interface, by the demonstration of this interactive interface, can be implemented in and checks the file directory of second client and the purpose of storage file on first client.
Alternatively, this interactive interface can be arbitrary default form, can be a mobile phone desktop as this interactive interface, and this interactive interface can be a square interface that comprises a plurality of viewing areas.
202, detect user's operation, when detecting assigned operation, obtain the data type of assigned operation corresponding data, this assigned operation is included on this interactive interface drag operation and the paste operation to these data;
User's operation refers to drag operation, paste operation, replicate run, deletion action and the shearing manipulation etc. that the user utilizes mouse or touch-screen to realize in first client.
When the interactive interface of first client was in running status, first client continued to detect user's operation.
When the drag operation that detects data, and the end point of this drag operation determines to detect assigned operation in this interactive interface the time, obtains the data type of data of the operand correspondence of this drag operation.
When the paste operation that detects data, and the occurrence positions of this paste operation determines to detect assigned operation in this interactive interface the time, obtains the data type of the data of this paste operation.
Wherein, the operand of this drag operation can be the pattern identification of file or folder, and the occurrence positions of paste operation is the target location of this stickup, and this position can be the cursor position, can also be mouse position pointed.
203, by communicating to connect between first client and second client, to the data type of the second client transmissions data and data, make second client handle data according to the data type of data.
In embodiments of the present invention, first client and second client can be set up the BUS based on USB(Universal Serial, USB (universal serial bus)) or WiFi(Wireless Fidelity, Wireless Fidelity) communicate to connect.Be the computer client with first client, be example and second client is Android Android cell-phone customer terminal, the computer client is connected with USB with cell-phone customer terminal, the computer client arrives cell-phone customer terminal with a port mapping, utilize then between this port and the cell-phone customer terminal and set up based on TCP(Transmission Control Protocol, transmission control protocol) communicating to connect of agreement can communicate to connect to cell-phone customer terminal transmission data by this then.
In embodiments of the present invention, for when setting up first client and communicating to connect of second client do not limit, can behind the first client terminal start-up interactive interface, set up communicating to connect of first client and second client, also can before the second client transmissions data and data type, set up communicating to connect of first client and second client in first client.
In the embodiment of the invention, first client can be the computer client, and second client can be cell-phone customer terminal, and in another embodiment, this first client can be cell-phone customer terminal, and second client can be the computer client.
The method that the embodiment of the invention provides, by to pull or form such as paste operation is determined data to be transmitted, automatically obtained the data type of data to be transmitted by a terminal device, make another terminal device carry out respective handling according to the data type of data to data, a kind of data transfer mode more directly perceived and easy between terminal device is provided, manually-operated is simple, has avoided artificial intervention too much in the transmission course, has reduced error rate.
Preferable, when detecting assigned operation, the data type of obtaining the data of described assigned operation correspondence comprises:
When assigned operation is drag operation, read the file path name of described data, obtain the data type of described data according to the file path name of described data; Or,
When assigned operation is paste operation, according to the data in the clipbook, obtain the data type of described data.
Preferable, when assigned operation is drag operation, reading the file path name of described data, the data type of obtaining described data according to the file path name of described data comprises:
Read the file path name of described data;
According to the file suffixes in the file path name of described data, obtain the data type of described data;
According to the file header of described data, checking established data type;
When according to the file header established data type of described data when identical by described suffix established data type, described suffix established data type is retrieved as the data type of described data.
Preferable, when assigned operation was paste operation, the data type of obtaining described data according to data in the clipbook comprised:
When data in the clipbook are the file path name, determine the data type of described data according to the file header of the file suffixes in the described file path name and described data; Or,
When data in the clipbook are not the file path name, from clipbook, obtain the data type of described data.
Above-mentioned all optional technical schemes can adopt any combination to form optional embodiment of the present invention, give unnecessary details no longer one by one at this.
Fig. 3 is a kind of data transmission method process flow diagram that the embodiment of the invention provides.This inventive embodiments is that executive agent describes with second client, and referring to Fig. 3, this embodiment comprises:
301, by communicating to connect between first client and second client, receive the data of first client transmissions and the data type of data;
302, according to the data type of described data described data are handled.
This processing include but not limited to according to this data type to data classify storage, start corresponding program to open these data etc. according to data type.
The method that the embodiment of the invention provides, by terminal device when receiving data that another terminal device sends and data type, can be according to the difference of data type, data are carried out different processing, to realize with data transfer mode more directly perceived and easy between the terminal device, manually-operated is simple, has avoided artificial intervention too much in the transmission course, has reduced error rate.
Preferable, according to the data type of described data described data are handled and to be comprised:
When the default data processing method of second client was storage, second client was obtained the corresponding file catalogue according to the data type of data, according to the store path of this document catalogue, data is stored to the corresponding file catalogue;
When the default data processing method of second client is start-up routine when data are handled, second client is identified described data, starts corresponding program according to the data identification result.
Fig. 4 a is a kind of data transmission method process flow diagram that the embodiment of the invention provides.This Fig. 4 a describes the data transmission method of the embodiment of the invention to be example to the drag operation of data in the first client display interface, and referring to Fig. 4 a, this embodiment comprises:
401, start the interactive interface of first client, interactive interface is used for first client and second client is carried out alternately;
Step 401 specific implementation and step 201 are similar, repeat no more here.
402, detect user's operation, during to the drag operation of data, first client reads the file path name of data on detecting this interactive interface;
Particularly, during to the drag operation of data, first client reads the file path name of the operand pattern identification mapping of this drag operation on detecting this interactive interface.
Be that file A in the example is example with Fig. 4 b, this drag operation is described.Shown in Fig. 4 b, when the user need be transferred to cell-phone customer terminal with the file A on the computer client, the pattern identification that needs filesselected A, pull, the pattern identification of choosing is dragged in the interactive interface, and unclamp mouse, at this moment, this drag operation finishes, and when the computer client detects drag operation on this interactive interface, reads the file path name of file A.
Need to prove that the object of drag operation can also be file, when pulling object and be file, first client reads the file path name of each data in the file.
403, according to the file suffixes in the file path name of data, obtain the data type of data;
The file suffixes of data can be used for the form of these data of expression, and for example, " .mp3 " represents music file, and " .txt " represents text-only file, and " .aiff " represents audio files, and " .avi " represents movie file.
The embodiment of the invention is according to file suffixes, and distinguishing the data of obtaining is picture file, video file, text or other data, so that the data type of data is obtained in preliminary judgement.
404, according to the file header of data, verify the established data type;
Because the suffix in the file path can artificially be revised, suffix might be a pictures for the file of " .txt ", and same, suffix is the file of " .mp3 ", may be a video.In order to guarantee the accuracy of this data type, also need further checking, guarantee that the data type of data is errorless.
This checking can be by to the parsing of the file header of data or obtain coded format and carry out, when according to the file header established data type of data when identical by suffix established data type, illustrate that the preliminary data type of judging is errorless, when according to the file header established data type of data with by suffix established data type not simultaneously, can point out the user to get involved, or with according to the file header established data type of the data data type as data.
For example, the file path that first client reads data is " c: music abc.mp3 ", suffix is " .mp3 ", whether judge tentatively that then these data are music file, by the read data files head, be MP3 format to know these data then, if, the data type of then determining these data is music file, if not, then whether verification msg is MP3 format.
405, when according to the file header established data type of data when identical by suffix established data type, suffix established data type is retrieved as the data type of data.
When according to the file header established data type of data with by suffix established data type not simultaneously, can point out the user to get involved, or with according to the file header established data type of the data data type as data.
In embodiments of the present invention, obtain data type by different modes, verify mutually, further guaranteed the accuracy of data type.
406, by communicating to connect between described first client and described second client, to the data type of the described data of described second client transmissions and described data.
First client also is transferred to second client in the lump with data type when the transmission data, make second client determine the file directory that these data should be stored according to data type.
407, when the default data processing method of second client was storage, second client was obtained the corresponding file catalogue according to the data type of data, according to the store path of this document catalogue, data is stored to the corresponding file catalogue;
For second client, can set in advance data processing method, this data processing method comprises storage and starts application program to be handled data.
In this step 407, in second client stores mapping relations between file directory and the data type, by when receiving data and data type, inquire about this mapping relations according to data type, get access to this data type corresponding file catalogue, and according to the store path of this document catalogue, the file directory that gets access to is stored to these data in this document catalogue.As, when data type was picture, the corresponding file catalogue was picture file folder, the store path/pic according to the picture file folder, these data are stored in/pic under; And when data type was document, the corresponding file catalogue was reading material, according to the store path/read of reading material, these data are stored in/read under.
408, when the default data processing method of second client be start-up routine when data are handled, second client is identified described data, starts corresponding program according to the data identification result.
In second client stores mapping relations between program and the data identification result, by when receiving data and data type, data are identified, start this data identification program of correspondence as a result.Further, start this data identification as a result after the program of correspondence, also comprise: use this program and open this data.As, when the data identification result is web page interlinkage, second client knows that by the query mappings relation corresponding program is browser, then start browser and open this web page interlinkage, when the data identification result is telephone number, second client knows that by the query mappings relation corresponding program is dialing interface, start dialing interface and import this data, if plain text, second client knows that by the query mappings relation corresponding program is a plurality of programs, then show the program listing that to handle the text, open this plain text according to the program that the user selects.
Need to prove that this preset data processing mode can be arranged by the technician, and by second client user according to the use habit adjustment.
The method that the embodiment of the invention provides, by determining data to be transmitted with drag operation, automatically obtained the data type of data to be transmitted by a terminal device, make another terminal device carry out respective handling according to the data type of data to data, a kind of data transfer mode more directly perceived and easy between terminal device is provided, manually-operated is simple, has avoided artificial intervention too much in the transmission course, has reduced error rate.
Fig. 5 is a kind of data transmission method process flow diagram that the embodiment of the invention provides.This Fig. 5 describes the data transmission method of the embodiment of the invention to be example to the drag operation of data in the first client display interface, and referring to Fig. 5, this embodiment comprises:
501, start the interactive interface of first client, interactive interface is used for first client and second client is carried out alternately;
Step 501 specific implementation and step 201 are similar, repeat no more here.
502, the user who detects on the interactive interface operates, and when detecting paste operation, judges whether data are the file path name in the clipbook;
If, execution in step 503;
If not, execution in step 504;
Clipbook is the interim storage area that operating system provides, and it can be stored temporarily in the internal memory the inside to data such as literal, file path name, images, pastes then in the program of target, as explorer, board supervisor.In embodiments of the present invention, the user presses at interactive interface and pastes shortcut Ctrl+V, and interactive interface can detect paste operation, then detects the data in the clipbook.
503, according to the data type of the file header specified data of the file suffixes in the file path name and data;
When the data in the clipbook are the file path name, according to the file suffixes in the file path name of data, obtain the data type of data, then according to the file header of data, checking established data type, when according to the file header established data type of data when identical by suffix established data type, suffix established data type is retrieved as the data type of data.
504, when data in the clipbook are not the file path name, from clipbook, obtain the data type of data;
When the data in the clipbook are the file path name, in fact when transfer files, need send to second client according to file path star this document pathname mapped data and the data type that gets access to, and when the data in the clipbook are not the file path name, these data may be Word message, picture etc., these data namely are data waiting for transmission, only need that these data are sent to second client with the data type that gets access to and get final product.
505, by communicating to connect between described first client and described second client, to the data type of the described data of described second client transmissions and described data.
506, when the default data processing method of second client was storage, second client was obtained the corresponding file catalogue according to the data type of data, according to the store path of this document catalogue, data is stored to the corresponding file catalogue;
507, when the default data processing method of second client be start-up routine when data are handled, second client is identified described data, starts corresponding program according to the data identification result.
406-408 in step 505-507 and the above-mentioned Fig. 4 a illustrated embodiment does not in like manner repeat them here.
The method that the embodiment of the invention provides, by determining data to be transmitted with paste operation, automatically obtained the data type of data to be transmitted by a terminal device, make another terminal device carry out respective handling according to the data type of data to data, a kind of data transfer mode more directly perceived and easy between terminal device is provided, manually-operated is simple, has avoided artificial intervention too much in the transmission course, has reduced error rate.
Fig. 6 is the structural representation of a kind of data transmission device of providing of the embodiment of the invention.Referring to Fig. 6, described device comprises:
Start module 601, be used for starting interactive interface, described interactive interface is used for local terminal and described second client is carried out alternately;
Acquisition module 602 for detection of user operation, when detecting assigned operation, obtains the data type of described assigned operation corresponding data, and described assigned operation is included on the described interactive interface drag operation and the paste operation to described data;
Transport module 603, be used for by communicating to connect between described local terminal and described second client, to the data type of the described data of described second client transmissions and described data, make described second client handle described data according to the data type of described data.
Preferable, described acquisition module 602 comprises:
First acquiring unit is used for reading the file path name of described data when assigned operation is drag operation, obtains the data type of described data according to the file path name of described data; Or,
Second acquisition unit is used for according to the data in the clipbook, obtaining the data type of described data when assigned operation is paste operation.
Preferable, described first acquiring unit is used for reading the file path name of described data; According to the file suffixes in the file path name of described data, obtain the data type of described data; According to the file header of described data, checking established data type; When according to the file header established data type of described data when identical by described suffix established data type, described suffix established data type is retrieved as the data type of described data.
Preferable, described second acquisition unit is used for determining the data type of described data according to the file header of the file suffixes in the described file path name and described data when the clipbook data are the file path name; Or described second acquisition unit is used for obtaining the data type of described data from clipbook when the clipbook data are not the file path name.
Need to prove: the data transmission device that above-described embodiment provides is when data transmission, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, the data transmission device that above-described embodiment provides and data transmission method embodiment belong to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
Fig. 7 is the structural representation of the device of a kind of data transmission of providing of the embodiment of the invention.Referring to Fig. 7, described device comprises:
Receiver module 701 is used for by communicating to connect between first client and the local terminal, receives the data of described first client transmissions and the data type of described data;
Processing module 702 is used for according to the data type of described data described data being handled.
Preferable, described processing module 702 comprises:
Storage unit is used for when the default data processing method of local terminal is storage, and local terminal obtains the corresponding file catalogue according to the data type of data, according to the store path of this document catalogue, data is stored to the corresponding file catalogue; Or,
Start unit, be used for when the default data processing method of local terminal be start-up routine when data are handled, local terminal is identified described data, starts the program of correspondence according to the data identification result.
Need to prove: the data transmission device that above-described embodiment provides is when data transmission, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, the data transmission device that above-described embodiment provides and data transmission method embodiment belong to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
Fig. 8 is a kind of terminal device structural representation that the embodiment of the invention provides.Referring to Fig. 8, this terminal device can be used for implementing the data transmission method that above-described embodiment provides.Specifically:
Terminal device 800 can comprise communication unit 110, includes the storer 120 of one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include parts such as the processor 180 of handling core more than one or one and power supply 190.It will be understood by those skilled in the art that the terminal device structure shown in Fig. 8 does not constitute the restriction to terminal device, can comprise than the more or less parts of diagram, perhaps make up some parts, perhaps different arrangements of components.Wherein:
Communication unit 110 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, this communication unit 110 can be RF(Radio Frequency, radio frequency) circuit, router, modulator-demodular unit, etc. network communication equipment.Especially, when communication unit 110 is the RF circuit, after the downlink information reception with the base station, transfer to one or above processor 180 processing; In addition, will be referred to up data and send to the base station.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, communication unit 110 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by operation, and various functions are used and data are handled thereby carry out.Storer 120 can mainly comprise storage program area and storage data field, wherein, but the required application program (such as sound-playing function, image playing function etc.) of storage program area storage operating system, at least one function etc.; The data (such as voice data, phone directory etc.) created according to the use of terminal device 800 etc. can be stored in the storage data field.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, so that the visit of processor 180 and 130 pairs of storeies 120 of input block to be provided.
Input block 130 can be used for receiving numeral or the character information of input, and generation is imported with the user arranges and function control is relevant keyboard, mouse, control lever, optics or trace ball signal.Particularly, input block 130 can comprise tactile sensitive surfaces 131 and other input equipments 132.Touch sensitive surfaces 131, be also referred to as touch display screen or Trackpad, can collect the user or near touch operation (using any suitable object such as finger, stylus or annex touching on the sensitive surfaces 131 or touching near the sensitive surfaces 131 operation such as the user) thereon, and drive corresponding coupling arrangement according to predefined formula.Optionally, touch sensitive surfaces 131 and can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, gives processor 180 again, and the order that energy receiving processor 180 is sent is also carried out.In addition, can adopt polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touching sensitive surfaces 131.Except touching sensitive surfaces 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, the control lever etc.
Display unit 140 can be used for showing the information of being imported by the user or offer user's information and the various graphical user interface of terminal device 800 that these graphical user interface can be made of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, can adopt LCD (Liquid Crystal Display, LCD), OLED forms such as (Organic Light-Emitting Diode, Organic Light Emitting Diodes) to dispose display panel 141.Further, touch sensitive surfaces 131 and can cover display panel 141, when touch that sensitive surfaces 131 detects thereon or near touch operation after, send processor 180 to determining the type of touch event, provide corresponding vision output according to the type of touch event at display panel 141 with preprocessor 180.Though in Fig. 8, touch sensitive surfaces 131 and display panel 141 and be as two independently parts realize input and input function, in certain embodiments, can will touch the integrated and realization input and output function of sensitive surfaces 131 and display panel 141.
Terminal device 800 also can comprise at least a sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor can be regulated the brightness of display panel 141 according to the light and shade of ambient light, proximity transducer can cut out display panel 141 and/or backlight when terminal device 800 moves in one's ear.A kind of as motion sensor, the acceleration of gravity sensor can detect the size of the acceleration that (is generally three) on all directions, size and the direction of gravity be can detect when static, the application (such as shielding switching, dependent game, the calibration of magnetometer attitude anyhow), Vibration identification correlation function (such as passometer, knock) etc. of mobile phone attitude can be used for identifying; As for terminal device 800 other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor also, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and the terminal device 800.Voicefrequency circuit 160 can be transferred to loudspeaker 161 with the electric signal after the voice data conversion that receives, and is converted to voice signal output by loudspeaker 161; On the other hand, microphone 162 is converted to electric signal with the voice signal of collecting, by being converted to voice data after voicefrequency circuit 160 receptions, after again voice data output processor 180 being handled, to send to such as another terminal device, perhaps export voice data to storer 120 in order to further handle through RF circuit 110.Voicefrequency circuit 160 also may comprise earphone jack, so that communicating by letter of peripheral hardware earphone and terminal device 800 to be provided.
In order to realize radio communication, can dispose wireless communication unit 170 on this terminal device, this wireless communication unit 170 can be the WiFi module.WiFi belongs to the short range wireless transmission technology, terminal device 800 by wireless communication unit 170 can help that the user sends and receive e-mail, browsing page and visit streaming video etc., it provides wireless broadband internet visit for the user.Though Fig. 8 shows wireless communication unit 170, be understandable that it does not belong to must constituting of terminal device 800, fully can be as required in the scope of the essence that does not change invention and omit.
Processor 180 is control centers of terminal device 800, utilize various interface to be connected the various piece of whole mobile phone with circuit, by moving or carry out software program and/or the module that is stored in the storer 120, and call the data that are stored in the storer 120, carry out various functions and the deal with data of terminal device 800, thereby mobile phone is carried out integral monitoring.Optionally, processor 180 can comprise one or more processing cores; Preferably, processor 180 can integrated application processor and modem processor, and wherein, application processor is mainly handled operating system, user interface and application program etc., and modem processor is mainly handled radio communication.Be understandable that above-mentioned modem processor also can not be integrated in the processor 180.
Terminal device 800 comprises that also the power supply 190(that powers to each parts is such as battery), preferably, power supply can link to each other with processor 180 logics by power-supply management system, thereby realizes functions such as management charging, discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or random component such as AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal device 800 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal device is touch-screen display, terminal device also includes storer, and one or more than one program, one of them or an above procedure stores and are configured to carry out described one or an above program by one or above processor and comprise be used to the instruction of carrying out following operation in storer:
Start interactive interface, described interactive interface is used for first client and described second client is carried out alternately;
Detect user's operation, when detecting assigned operation, obtain the data type of described assigned operation corresponding data, described assigned operation is included on the described interactive interface drag operation and the paste operation to described data;
By communicating to connect between described first client and described second client, to the data type of the described data of described second client transmissions and described data, make described second client handle described data according to the data type of described data.
Preferable, this storer is also stored to give an order:
When assigned operation is drag operation, read the file path name of described data, obtain the data type of described data according to the file path name of described data; Or,
When assigned operation is paste operation, according to the data in the clipbook, obtain the data type of described data.
Preferable, this storer is also stored to give an order: the file path name that reads described data;
According to the file suffixes in the file path name of described data, obtain the data type of described data;
According to the file header of described data, checking established data type;
When according to the file header established data type of described data when identical by described suffix established data type, described suffix established data type is retrieved as the data type of described data.
Preferable, this storer is also stored to give an order: when data in the clipbook are the file path name, determine the data type of described data according to the file header of the file suffixes in the described file path name and described data; Or,
When data in the clipbook are not the file path name, from clipbook, obtain the data type of described data.
Based on the terminal device structure of above-mentioned Fig. 8, it is a kind of for the terminal device of implementing the data transmission method that above-described embodiment provides that the embodiment of the invention also provides.Terminal device is on the basis of Fig. 8, also include storer, and one or more than one program, one of them or an above procedure stores and are configured to carry out described one or an above program by one or above processor and comprise be used to the instruction of carrying out following operation in storer:
By communicating to connect between first client and second client, receive the data of described first client transmissions and the data type of described data;
Data type according to described data is handled described data.
Preferable, this storer is also stored to give an order: when the default data processing method of second client is storage, second client is obtained the corresponding file catalogue according to the data type of data, according to the store path of this document catalogue, data is stored to the corresponding file catalogue;
When the default data processing method of second client is start-up routine when data are handled, second client is identified described data, starts corresponding program according to the data identification result.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.