Summary of the invention
In order to avoid manpower intervention too much in transmitting procedure, reduce error rate, embodiments provide
Data transmission method, device and terminal unit.Described technical scheme is as follows:
First aspect, a kind of data transmission method, described method includes:
Starting the interactive interface of the first client, described interactive interface is for described first client and described the
Two clients interact;
Detection user operation, when assigned operation being detected, obtains the data of described assigned operation corresponding data
Type, described assigned operation is included on described interactive interface drag operation and paste operation to described data;
By the communication connection between described first client and described second client, to described second client
End transmits described data and the data type of described data so that described second client is according to described data
Data type described data are processed.
It is also preferred that the left when assigned operation being detected, obtain the data type of data corresponding to described assigned operation
Including:
When assigned operation is drag operation, read the file path name of described data, according to described data
File path name obtains the data type of described data;Or,
When assigned operation is paste operation, according to the data in clipbook, obtain the data class of described data
Type.
It is also preferred that the left when assigned operation is drag operation, read the file path name of described data, according to institute
The data type of the file path name described data of acquisition stating data includes:
Read the file path name of described data;
The file suffixes in file path name according to described data, obtains the data type of described data;
According to the file header of described data, the data type that checking determines;
When the data type determined according to the file header of described data and the data type determined by described suffix
Time identical, the data type that described suffix determines is retrieved as the data type of described data.
It is also preferred that the left when assigned operation is paste operation, according to the number of data described in data acquisition in clipbook
Include according to type:
When in clipbook, data are file path name, according to the file suffixes in described file path name and
The file header of described data determines the data type of described data;Or,
When data are not file path names in clipbook, from clipbook, obtain the data type of described data.
Second aspect, a kind of data transmission method, described method includes:
By the communication connection between the first client and the second client, receive described first client transmissions
Data and the data type of described data;
Described data are processed by the data type according to described data.
Include it is also preferred that the left described data are carried out process according to the data type of described data:
When the data processing method that the second client is preset is for storage, the second client is according to the data of data
Type obtains corresponding file directory, according to the store path of this document catalogue, data is stored to correspondence
File directory;
When the second client preset data processing method be startup program data are processed time, second visitor
Described data are identified by family end, start corresponding program according to data recognition result.
The third aspect, a kind of data transmission device, described device includes:
Starting module, be used for starting interactive interface, described interactive interface is for local terminal and described second client
Interact;
Acquisition module, is used for detecting user operation, when assigned operation being detected, obtains described assigned operation
The data type of corresponding data, described assigned operation is included on described interactive interface and pulls described data
Operation and paste operation;
Transport module, for by the communication connection between described local terminal and described second client, to described
Data described in second client transmissions and the data type of described data so that described second client according to
Described data are processed by the data type of described data.
It is also preferred that the left described acquisition module includes:
First acquiring unit, for when assigned operation is drag operation, reads the file path of described data
Name, obtains the data type of described data according to the file path name of described data;Or,
Second acquisition unit, for when assigned operation is paste operation, according to the data in clipbook, obtains
Take the data type of described data.
It is also preferred that the left described first acquiring unit is for reading the file path name of described data;According to described number
According to file path name in file suffixes, obtain the data type of described data;Literary composition according to described data
Part head, the data type that checking determines;When the data type determined according to the file header of described data with pass through
When data type that described suffix determines is identical, the data type that described suffix determines is retrieved as described data
Data type.
It is also preferred that the left described second acquisition unit is for when in clipbook, data are file path name, according to institute
The file header stating the file suffixes in file path name and described data determines the data type of described data;
Or, described second acquisition unit, for when in clipbook, data are not file path names, obtains from clipbook
Take the data type of described data.
Fourth aspect, the device of a kind of data transmission, described device includes:
Receiver module, for by the communication connection between the first client and local terminal, receives described first visitor
The data of family end transmission and the data type of described data;
Processing module, for processing described data according to the data type of described data.
It is also preferred that the left described processing module includes:
Memory element, for when the data processing method that local terminal is preset is for storage, local terminal is according to the number of data
Obtain corresponding file directory according to type, according to the store path of this document catalogue, data are stored to correspondence
File directory;Or,
Start unit, for when local terminal preset data processing method be startup program data are processed time,
Described data are identified by local terminal, start corresponding program according to data recognition result.
5th aspect, a kind of terminal unit, described terminal unit includes memorizer, and one or one
Individual above program, one of them or more than one program is stored in memorizer, and is configured to by one
Individual or more than one processor performs to state one or more than one program comprises for carrying out following operation
Instruction:
Starting interactive interface, described interactive interface interacts with described second client for local terminal;
Detection user operation, when assigned operation being detected, obtains the data of described assigned operation corresponding data
Type, described assigned operation is included on described interactive interface drag operation and paste operation to described data;
By the communication connection between described local terminal and described second client, to described second client transmissions
Described data and the data type of described data so that described second client is according to the data of described data
Described data are processed by type.
6th aspect, a kind of terminal unit, described terminal unit includes memorizer, and one or one
Individual above program, one of them or more than one program is stored in memorizer, and is configured to by one
Individual or more than one processor performs to state one or more than one program comprises for carrying out following operation
Instruction:
By the communication connection between the first client and local terminal, receive the data of described first client transmissions
And the data type of described data;
Described data are processed by the data type according to described data.
The technical scheme that the embodiment of the present invention provides has the benefit that
By to pull or the form such as paste operation determines data to be transmitted, a terminal unit automatically obtaining
The data type of data to be transmitted, makes another terminal unit carry out data accordingly according to the data type of data
Process, it is provided that a kind of the most directly perceived and the data transfer mode of simplicity, manual operation
Simply, it is to avoid manpower intervention too much in transmitting procedure, error rate is reduced.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention
Embodiment is described in further detail.
For the ease of describing, at this, technical words that the present invention relates to is introduced:
File path name, file path name is specifically made up of the directory name gone through when accessing file.As
File path name dir1/dir2/hotdir31.doc, this document pathname is by directory name dir1, dir2, hotdir31
Composition, separates by "/" between directory name.
In the embodiment of the present invention, client can be the client on fixed terminal or the client on mobile terminal
End, fixed terminal can be PC(Personal Computer, PC) or display device, mobile whole
End can be smart mobile phone, panel computer, MP3(Moving Picture Experts Group Audio Layer
III, dynamic image expert's compression standard audio frequency aspect 3), PDA(Personal Digital Assistant, individual
Digital assistants) etc..
Fig. 2 is a kind of data transmission method flow chart that the embodiment of the present invention provides.This inventive embodiments is with
One client is that executive agent illustrates, and sees Fig. 2, and this embodiment includes:
201, start the interactive interface of the first client, this interactive interface for this first client with this second
Client interacts;
Alternatively, the first client at least includes following two Starting mode:
The enabled instruction of the interactive interface according to the first client, starts the interactive interface of this first client;
Or,
Detect whether that mobile terminal accesses this locality, when there being mobile terminal to access, automatically started the first client
The interactive interface of end.
Alternatively, in embodiments of the present invention, after starting the interactive interface of the first client, at least obtaining should
Second client file storage information, this document storage information include the second client file directory and
The filename stored in each file directory, the file got storage information is shown by the first client
On this interactive interface, by the display of this interactive interface, it is possible to achieve check the second visitor in the first client
The file directory of family end and the purpose of storage file.
Alternatively, this interactive interface can be arbitrary presets, if this interactive interface can be a mobile phone
Desktop, this interactive interface can be a square interface comprising multiple viewing area.
202, detection user operation, when assigned operation being detected, obtains the data of assigned operation corresponding data
Type, this assigned operation is included on this interactive interface drag operation and paste operation to these data;
User operation refers to that user utilizes mouse or the drag operation of touch screen realization in the first client, glues
Patch operation, duplication operation, deletion action and shearing manipulation etc..
When the interactive interface of the first client is in running status, the first client persistently detects user operation.
When the drag operation to data being detected, and the end point of this drag operation in this interactive interface time,
Determine and assigned operation detected, obtain the data type operating data corresponding to object of this drag operation.
When the paste operation to data being detected, and the generation position of this paste operation in this interactive interface time,
Determine and assigned operation detected, obtain the data type of the data of this paste operation.
Wherein, the operation object of this drag operation can be the pattern identification of file or folder, paste operation
Generation position be this paste target location, this position can be cursor position, it is also possible to be Mus
Position pointed by mark.
203, by the communication connection between the first client and the second client, to the second client transmissions number
According to this and the data type of data so that data are processed by the second client according to the data type of data.
In embodiments of the present invention, the first client and the second client can be set up based on USB(Universal
Serial BUS, USB (universal serial bus)) or WiFi(Wireless Fidelity, Wireless Fidelity) communication link
Connect.With the first client for computer client, and as a example by the second client is Android Android phone client,
Computer client and cell-phone customer terminal connect with USB, computer client by a port mapping to cell phone customer
End, then utilizes and sets up based on TCP(Transmission Control between this port and cell-phone customer terminal
Protocol, transmission control protocol) communication connection of agreement, then can be by this communication connection to mobile phone visitor
Family end transmission data.
In embodiments of the present invention, the communication connection of the first client and the second client is set up for when not
Limit, the logical of the first client and the second client can be set up after the first client terminal start-up interactive interface
Letter connects, it is also possible to set up the before the second client transmissions data and data type in the first client
One client and the communication connection of the second client.
In the embodiment of the present invention, the first client can be computer client, and the second client can be mobile phone
Client, and in another embodiment, this first client can be cell-phone customer terminal, and the second client
It can be computer client.
The method that the embodiment of the present invention provides, by pull or the form such as paste operation determines data to be transmitted,
Automatically obtained the data type of data to be transmitted by a terminal unit, make another terminal unit according to data
Data type carries out respective handling to data, it is provided that a kind of the most directly perceived and simplicity
Data transfer mode, manual operation is simple, it is to avoid manpower intervention too much in transmitting procedure, reduces out
Error rate.
It is also preferred that the left when assigned operation being detected, obtain the data type of data corresponding to described assigned operation
Including:
When assigned operation is drag operation, read the file path name of described data, according to described data
File path name obtains the data type of described data;Or,
When assigned operation is paste operation, according to the data in clipbook, obtain the data class of described data
Type.
It is also preferred that the left when assigned operation is drag operation, read the file path name of described data, according to institute
The data type of the file path name described data of acquisition stating data includes:
Read the file path name of described data;
The file suffixes in file path name according to described data, obtains the data type of described data;
According to the file header of described data, the data type that checking determines;
When the data type determined according to the file header of described data and the data type determined by described suffix
Time identical, the data type that described suffix determines is retrieved as the data type of described data.
It is also preferred that the left when assigned operation is paste operation, according to the number of data described in data acquisition in clipbook
Include according to type:
When in clipbook, data are file path name, according to the file suffixes in described file path name and
The file header of described data determines the data type of described data;Or,
When data are not file path names in clipbook, from clipbook, obtain the data type of described data.
Above-mentioned all optional technical schemes, can use and arbitrarily combine the alternative embodiment forming the present invention,
This repeats the most one by one.
Fig. 3 is a kind of data transmission method flow chart that the embodiment of the present invention provides.This inventive embodiments is with
Two clients are that executive agent illustrates, and see Fig. 3, and this embodiment includes:
301, by the communication connection between the first client and the second client, the first client transmissions is received
Data and the data type of data;
302, according to the data type of described data, described data are processed.
This process includes but not limited to that according to this data type, data being carried out classification stores, according to data type
Start corresponding program to open these data etc..
The method that the embodiment of the present invention provides, is receiving, by terminal unit, the number that another terminal unit sends
According to this and during data type, it is possible to according to the difference of data type, data are carried out different process, with reality
Now with the most directly perceived between terminal unit and the data transfer mode of simplicity, manual operation is simple, it is to avoid pass
Manpower intervention too much during defeated, reduces error rate.
Include it is also preferred that the left described data are carried out process according to the data type of described data:
When the data processing method that the second client is preset is for storage, the second client is according to the data of data
Type obtains corresponding file directory, according to the store path of this document catalogue, data is stored to correspondence
File directory;
When the second client preset data processing method be startup program data are processed time, second visitor
Described data are identified by family end, start corresponding program according to data recognition result.
Fig. 4 a is a kind of data transmission method flow chart that the embodiment of the present invention provides.This Fig. 4 a is with the first visitor
Data transmission method to the embodiment of the present invention as a example by the drag operation of data is said by family end display interface
Bright, see Fig. 4 a, this embodiment includes:
401, starting the interactive interface of the first client, interactive interface is for the first client and the second client
Interact;
Step 401 specific implementation is similar with step 201, repeats no more here.
402, detection user operation, when the drag operation to data being detected on this interactive interface, the first visitor
Family end reads the file path name of data;
Specifically, when the drag operation to data being detected on this interactive interface, the first client reads should
The file path name of the operation object figure identity map of drag operation.
As a example by file A in as a example by Fig. 4 b, this drag operation is illustrated.As shown in Figure 4 b, when
When user needs that the file A in computer client is transferred to cell-phone customer terminal, need the figure of filesselected A
Shape identifies, and pulls, is dragged in interactive interface by the pattern identification chosen, and unclamps mouse, now,
This drag operation terminates, and when computer client detects the drag operation on this interactive interface, reads file A
File path name.
It should be noted that the object of drag operation can also is that file, when dragging object is file,
The file path name of each data in first client reading folder.
403, according to the file suffixes in the file path name of data, the data type of data is obtained;
The file suffixes of data can be used to indicate that the form of these data, and such as, " .mp3 " represents music file,
" .txt " represents text-only file, and " .aiff " represents audio files, and " .avi " represents movie file.
The embodiment of the present invention is according to file suffixes, and distinguishing the data obtained is picture file, video file, literary composition
Presents or other data, in order to the preliminary data type judging to obtain data.
404, according to the file header of data, the data type that checking determines;
Owing to the suffix in file path can artificially be revised, suffix is that the file of " .txt " is likely to be one
Picture, equally, suffix is the file of " .mp3 ", it may be possible to a video.In order to ensure this data type
Accuracy, in addition it is also necessary to verify further, it is ensured that the data type of data is errorless.
This checking can be carried out, when according to data by the parsing of the file header to data or acquisition coded format
The data type that determines of file header identical with the data type determined by suffix time, preliminary judgement is described
Data type is errorless, when the data type determined according to the file header of data and the data class determined by suffix
During type difference, user can be pointed out to get involved, or the data type determined using the file header according to data is as number
According to data type.
Such as, the first client reads the file path of data for " c: music abc.mp3 ", and suffix is
" .mp3 ", the most tentatively judges that these data are music file, then by reading data file head, to know this
Whether data are MP3 format, if it is, determine that the data type of these data is music file, if not
It is that then whether checking data are MP3 format.
405, identical with the data type determined by suffix when the data type determined according to the file header of data
Time, the data type determined by suffix is retrieved as the data type of data.
When the data type determined according to the file header of data is different from the data type determined by suffix,
User can be pointed out to get involved, or the data type determined using the file header according to data is as the data class of data
Type.
In embodiments of the present invention, by the way of different, obtain data type, are mutually authenticated, enter one
Step ensure that the accuracy of data type.
406, by the communication connection between described first client and described second client, to described second
Data described in client transmissions and the data type of described data.
Data type, when transmitting data, is transferred to the second client by the first client the most in the lump so that the
Two clients determine, according to data type, the file directory that these data should store.
407, when the data processing method that the second client is preset is for storage, the second client is according to data
Data type obtains corresponding file directory, according to the store path of this document catalogue, stores data to right
The file directory answered;
For the second client, can pre-set data processing method, this data processing method includes
Data are processed by storage and startup application program.
In this step 407, store the mapping between file directory and data type in the second client and close
System, by when receiving data and data type, inquires about this mapping relations according to data type, obtains
To the file directory that this data type is corresponding, and according to the store path of this document catalogue, the literary composition that will get
These data are stored to this document catalogue by part catalogue.As, when data type is picture, corresponding file
Catalogue is Photo folder, according to the store path/pic of Photo folder, these data are stored in/pic under;
And when data type is document, corresponding file directory is reading material, according to the storage road of reading material
Footpath/read, these data are stored in/read under.
408, the data processing method preset when the second client is startup program when processing data, the
Described data are identified by two clients, start corresponding program according to data recognition result.
The mapping relations between program and data recognition result are stored, by receiving in the second client
When data and data type, data are identified, start the program that this data recognition result is corresponding.Enter
One step ground, after starting the program that this data recognition result is corresponding, also includes: apply this program to open this number
According to.As, when data recognition result is web page interlinkage, it is right that the second client is known by inquiry mapping relations
The program answered is browser, then start browser and open this web page interlinkage, when data recognition result is phone number
Code, by inquiry mapping relations, the second client is known that corresponding program is dialing interface, is started dialing interface
And input this data, if plain text, the second client knows the journey of correspondence by inquiry mapping relations
Sequence is multiple program, then one program listing that can process the text of display, the program selected according to user
Open this plain text.
It should be noted that this preset data processing mode can be arranged by technical staff, and by the second client
End subscriber adjusts according to use habit.
The method that the embodiment of the present invention provides, by determining data to be transmitted with drag operation, by a terminal
Equipment obtains the data type of data to be transmitted automatically, makes another terminal unit according to the data type pair of data
Data carry out respective handling, it is provided that a kind of the most directly perceived and transmission side data of simplicity
Formula, manual operation is simple, it is to avoid manpower intervention too much in transmitting procedure, reduces error rate.
Fig. 5 is a kind of data transmission method flow chart that the embodiment of the present invention provides.This Fig. 5 is with the first visitor
Data transmission method to the embodiment of the present invention as a example by the drag operation of data is said by family end display interface
Bright, see Fig. 5, this embodiment includes:
501, starting the interactive interface of the first client, interactive interface is for the first client and the second client
Interact;
Step 501 specific implementation is similar with step 201, repeats no more here.
502, the user operation on detection interactive interface, when detecting paste operation, it is judged that number in clipbook
According to whether being file path name;
If it is, perform step 503;
If it does not, perform step 504;
Clipbook be operating system provide an interim storage area, it can word, file path name,
The data such as image are stored temporarily in inside internal memory, then paste in the program of target, as explorer,
The programs such as board.In embodiments of the present invention, user presses stickup shortcut Ctrl+V at interactive interface,
Interactive interface can detect paste operation, the then data in detection clipbook.
503, the data class of data is determined according to the file header of the file suffixes in file path name and data
Type;
When the data in clipbook are file path names, 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, the data type that checking determines, work as basis
When the data type that the file header of data determines is identical with the data type determined by suffix, suffix is determined
Data type be retrieved as the data type of data.
504, when data are not file path names in clipbook, from clipbook, the data type of data is obtained;
When the data in clipbook are file path names, in fact when transmitting file, need according to file
The data that this document pathname is mapped by pathname and the data type got are sent to the second client, and
When the data in clipbook are not file path names, these data are probably Word message, picture etc., this number
According to being i.e. data waiting for transmission, it is only necessary to these data and the data type got are sent to the second client
?.
505, by the communication connection between described first client and described second client, to described second
Data described in client transmissions and the data type of described data.
506, when the data processing method that the second client is preset is for storage, the second client is according to data
Data type obtains corresponding file directory, according to the store path of this document catalogue, stores data to right
The file directory answered;
507, the data processing method preset when the second client is startup program when processing data, the
Described data are identified by two clients, start corresponding program according to data recognition result.
Step 505-507 with the 406-408 in above-mentioned Fig. 4 a illustrated embodiment in like manner, does not repeats them here.
The method that the embodiment of the present invention provides, by determining data to be transmitted with paste operation, by a terminal
Equipment obtains the data type of data to be transmitted automatically, makes another terminal unit according to the data type pair of data
Data carry out respective handling, it is provided that a kind of the most directly perceived and transmission side data of simplicity
Formula, manual operation is simple, it is to avoid manpower intervention too much in transmitting procedure, reduces error rate.
Fig. 6 is the structural representation of a kind of data transmission device that the embodiment of the present invention provides.See Fig. 6, institute
State device to include:
Starting module 601, be used for starting interactive interface, described interactive interface is for local terminal and described second client
End interacts;
Acquisition module 602, is used for detecting user operation, when assigned operation being detected, obtains described appointment and grasps
Making the data type of corresponding data, described assigned operation is included on described interactive interface and drags described data
Drag operation and paste operation;
Transport module 603, for by the communication connection between described local terminal and described second client, to institute
State data described in the second client transmissions and the data type of described data so that described second client root
According to the data type of described data, described data are processed.
It is also preferred that the left described acquisition module 602 includes:
First acquiring unit, for when assigned operation is drag operation, reads the file path of described data
Name, obtains the data type of described data according to the file path name of described data;Or,
Second acquisition unit, for when assigned operation is paste operation, according to the data in clipbook, obtains
Take the data type of described data.
It is also preferred that the left described first acquiring unit is for reading the file path name of described data;According to described number
According to file path name in file suffixes, obtain the data type of described data;Literary composition according to described data
Part head, the data type that checking determines;When the data type determined according to the file header of described data with pass through
When data type that described suffix determines is identical, the data type that described suffix determines is retrieved as described data
Data type.
It is also preferred that the left described second acquisition unit is for when in clipbook, data are file path name, according to institute
The file header stating the file suffixes in file path name and described data determines the data type of described data;
Or, described second acquisition unit, for when in clipbook, data are not file path names, obtains from clipbook
Take the data type of described data.
It should be understood that the data transmission device that above-described embodiment provides is when data are transmitted, only with above-mentioned
The division of each functional module is illustrated, and in actual application, can above-mentioned functions be divided as desired
Join and completed by different functional modules, the internal structure of equipment will be divided into different functional modules, with complete
Become all or part of function described above.It addition, the data transmission device of above-described embodiment offer and number
Belonging to same design according to transmission method embodiment, it implements process and refers to embodiment of the method, the most no longer
Repeat.
Fig. 7 is the structural representation of the device of a kind of data transmission that the embodiment of the present invention provides.See Fig. 7,
Described device includes:
Receiver module 701, for by the communication connection between the first client and local terminal, receives described first
The data of client transmissions and the data type of described data;
Processing module 702, for processing described data according to the data type of described data.
It is also preferred that the left described processing module 702 includes:
Memory element, for when the data processing method that local terminal is preset is for storage, local terminal is according to the number of data
Obtain corresponding file directory according to type, according to the store path of this document catalogue, data are stored to correspondence
File directory;Or,
Start unit, for when local terminal preset data processing method be startup program data are processed time,
Described data are identified by local terminal, start corresponding program according to data recognition result.
It should be understood that the data transmission device that above-described embodiment provides is when data are transmitted, only with above-mentioned
The division of each functional module is illustrated, and in actual application, can above-mentioned functions be divided as desired
Join and completed by different functional modules, the internal structure of equipment will be divided into different functional modules, with complete
Become all or part of function described above.It addition, the data transmission device of above-described embodiment offer and number
Belonging to same design according to transmission method embodiment, it implements process and refers to embodiment of the method, the most no longer
Repeat.
Fig. 8 is a kind of terminal unit structural representation that the embodiment of the present invention provides.Seeing Fig. 8, this terminal sets
The standby data transmission method that may be used for implementing to provide in above-described embodiment.Specifically:
Terminal unit 800 can include communication unit 110, include one or more computer-readables and deposit
The memorizer 120 of storage media, input block 130, display unit 140, sensor 150, voicefrequency circuit 160,
WiFi (wireless fidelity, Wireless Fidelity) module 170, include one or more than one processes core
The parts such as processor 180 and power supply 190.It will be understood by those skilled in the art that the end shown in Fig. 8
End device structure is not intended that the restriction to terminal unit, can include that ratio illustrates more or less of parts,
Or combine some parts, or different parts are arranged.Wherein:
Communication unit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, this communication
Unit 110 can be RF(Radio Frequency, radio frequency) circuit, router, modem, etc.
Network communication equipment.Especially, when communication unit 110 is RF circuit, the downlink information of base station is received
After, transfer to one or more than one processor 180 processes;It addition, be sent to relating to up data
Base station.RF circuit usually as communication unit includes but not limited to antenna, at least one amplifier, tune
Humorous device, one or more agitator, subscriber identity module (SIM) card, transceiver, bonder, LNA
(Low Noise Amplifier, low-noise amplifier), duplexer etc..Additionally, communication unit 110 also may be used
To be communicated with network and other equipment by radio communication.Described radio communication can use arbitrary communication standard
Or agreement, (Global System of Mobile communication, the whole world is mobile to include but not limited to GSM
Communication system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code
Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple
Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email,
SMS (Short Messaging Service, Short Message Service) etc..Memorizer 120 can be used for storing software program
And module, processor 180 is stored in software program and the module of memorizer 120 by operation, thus
Perform the application of various function and data process.Memorizer 120 can mainly include storing program area and storage number
According to district, wherein, storage program area can store the application program (ratio needed for operating system, at least one function
Such as sound-playing function, image player function etc.) etc.;Storage data field can store according to terminal unit 800
The data (such as voice data, phone directory etc.) etc. that created of use.Additionally, memorizer 120 is permissible
Including high-speed random access memory, it is also possible to include nonvolatile memory, for example, at least one disk is deposited
Memory device, flush memory device or other volatile solid-state parts.Correspondingly, memorizer 120 is all right
Including Memory Controller, to provide processor 180 and the input block 130 access to memorizer 120.
Input block 130 can be used for receive input numeral or character information, and produce with user setup with
And function controls relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically,
Input block 130 can include Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as
For touching display screen or Trackpad, can collect user thereon or neighbouring touch operation (such as user makes
With any applicable object such as finger, stylus or adnexa on Touch sensitive surface 131 or attached at Touch sensitive surface 131
Near operation), and drive corresponding attachment means according to formula set in advance.Optionally, Touch sensitive surface 131
Touch detecting apparatus and two parts of touch controller can be included.Wherein, touch detecting apparatus detects user's
Touch orientation, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch control
Device receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 180,
And order that processor 180 sends can be received and performed.Furthermore, it is possible to use resistance-type, condenser type,
The polytype such as infrared ray and surface acoustic wave realizes Touch sensitive surface 131.Except Touch sensitive surface 131, input is single
Unit 130 can also include other input equipments 132.Specifically, other input equipments 132 can include but not
It is limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, behaviour
Make one or more in bar etc..
Display unit 140 can be used for showing the information inputted by user or the information being supplied to user and terminal
The various graphical user interface of equipment 800, these graphical user interface can by figure, text, icon,
Video and its combination in any are constituted.Display unit 140 can include display floater 141, optionally, can adopt
With LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode,
Organic Light Emitting Diode) etc. form configure display floater 141.Further, Touch sensitive surface 131 can cover
Display floater 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, sends process to
Device 180 is to determine the type of touch event, with preprocessor 180 according to the type of touch event at display surface
Corresponding visual output is provided on plate 141.Although in fig. 8, Touch sensitive surface 131 and display floater 141
It is to realize input and input function as two independent parts, but in some embodiments it is possible to will
Touch sensitive surface 131 is integrated with display floater 141 and realizes input and output function.
Terminal unit 800 may also include at least one sensor 150, such as optical sensor, motion sensor with
And other sensors.Specifically, optical sensor can include ambient light sensor and proximity transducer, wherein,
Ambient light sensor can regulate the brightness of display floater 141, proximity transducer according to the light and shade of ambient light
Display floater 141 and/or backlight can be closed when terminal unit 800 moves in one's ear.As motion-sensing
The one of device, Gravity accelerometer can detect the size of (generally three axles) acceleration in all directions,
Can detect that size and the direction of gravity time static, can be used for identifying application (the such as horizontal/vertical screen of mobile phone attitude
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion)
Deng;The gyroscope that can also configure as terminal unit 800, barometer, drimeter, thermometer, infrared ray pass
Other sensors such as sensor, do not repeat them here.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide between user and terminal unit 800
Audio interface.The signal of telecommunication after the voice data conversion that voicefrequency circuit 160 can will receive, is transferred to raise one's voice
Device 161, is converted to acoustical signal output by speaker 161;On the other hand, the sound that microphone 162 will be collected
Tone signal is converted to the signal of telecommunication, voicefrequency circuit 160 be converted to voice data after receiving, then by voice data
After output processor 180 processes, through RF circuit 110 to be sent to such as another terminal unit, or by sound
Frequency is according to exporting to memorizer 120 to process further.Voicefrequency circuit 160 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone and terminal unit 800.
In order to realize radio communication, this terminal unit can be configured with wireless communication unit 170, this channel radio
Letter unit 170 can be WiFi module.WiFi belongs to short range wireless transmission technology, and terminal unit 800 leads to
Cross wireless communication unit 170 user to be helped to send and receive e-mail, browse webpage and access streaming video etc.,
It has provided the user wireless broadband internet and has accessed.Although Fig. 8 shows wireless communication unit 170, but
Will be understood by, it is also not belonging to must be configured into of terminal unit 800, can exist as required completely
Omit in the scope of the essence not changing invention.
Processor 180 is the control centre of terminal unit 800, utilizes various interface and the whole hands of connection
The various piece of machine, is stored in the software program in memorizer 120 and/or module by running or performing, with
And call the data being stored in memorizer 120, perform the various functions of terminal unit 800 and process data,
Thus mobile phone is carried out integral monitoring.Optionally, processor 180 can include one or more process core;
Preferably, processor 180 can integrated application processor and modem processor, wherein, application processor
Mainly processing operating system, user interface and application program etc., modem processor mainly processes channel radio
Letter.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal unit 800 also includes the power supply 190(such as battery powered to all parts), it is preferred that electricity
Source can be logically contiguous with processor 180 by power-supply management system, thus is realized by power-supply management system
The functions such as management charging, electric discharge and power managed.Power supply 190 can also include one or more
Direct current or alternating current power supply, recharging system, power failure detection circuit, power supply changeover device or inverter,
The random component such as power supply status indicator.
Although not shown, terminal unit 800 can also include photographic head, bluetooth module etc., the most superfluous at this
State.The most in the present embodiment, the display unit of terminal unit is touch-screen display, and terminal unit also wraps
Having included memorizer, and one or more than one program, one of them or more than one program stores
In memorizer, and be configured to by one or more than one processor perform one or one with
Upper program comprises the instruction for carrying out following operation:
Starting interactive interface, described interactive interface interacts with described second client for the first client;
Detection user operation, when assigned operation being detected, obtains the data of described assigned operation corresponding data
Type, described assigned operation is included on described interactive interface drag operation and paste operation to described data;
By the communication connection between described first client and described second client, to described second client
End transmits described data and the data type of described data so that described second client is according to described data
Data type described data are processed.
It is also preferred that the left this memorizer also stores to give an order:
When assigned operation is drag operation, read the file path name of described data, according to described data
File path name obtains the data type of described data;Or,
When assigned operation is paste operation, according to the data in clipbook, obtain the data class of described data
Type.
It is also preferred that the left this memorizer also stores to give an order: read the file path name of described data;
The file suffixes in file path name according to described data, obtains the data type of described data;
According to the file header of described data, the data type that checking determines;
When the data type determined according to the file header of described data and the data type determined by described suffix
Time identical, the data type that described suffix determines is retrieved as the data type of described data.
It is also preferred that the left this memorizer also stores to give an order: when in clipbook, data are file path name, root
The data class of described data is determined according to the file header of the file suffixes in described file path name and described data
Type;Or,
When data are not file path names in clipbook, from clipbook, obtain the data type of described data.
Terminal unit structure based on above-mentioned Fig. 8, the embodiment of the present invention additionally provides a kind of above-mentioned for implementing
The terminal unit of the data transmission method provided in embodiment.Terminal unit, on the basis of Fig. 8, also includes
Having memorizer, and one or more than one program, one of them or more than one program is stored in
In memorizer, and be configured to by one or more than one processor perform one or more than one
Program comprises the instruction for carrying out following operation:
By the communication connection between the first client and the second client, receive described first client transmissions
Data and the data type of described data;
Described data are processed by the data type according to described data.
It is also preferred that the left this memorizer also stores to give an order: the data processing method preset when the second client is
During storage, the second client obtains corresponding file directory, according to this document mesh according to the data type of data
Data are stored to corresponding file directory by the store path of record;
When the second client preset data processing method be startup program data are processed time, second visitor
Described data are identified by family end, start corresponding program according to data recognition result.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be passed through
Hardware completes, it is also possible to instructing relevant hardware by program and complete, described program can be stored in
In a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or
CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the present invention's
Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention's
Within protection domain.