A kind of in JICQ the method for automatic reception fileTechnical field:
The present invention relates to computer software, network communication field, instant messaging especially, particularly relate to a kind of in JICQ the method for automatic reception file.
Background technology:
Instant messaging (Instant messaging is called for short IM) has become the important means that the user communicates by network at present.
Transfer files has 2 kinds of patterns in the JICQ at present, and a kind of is the point-to-point transmission pattern, and the sender sends file to the recipient, and the recipient is online and select " acceptance " sender could begin transfer files; Another kind is the server forwards pattern, and the sender will treat that earlier fat file sends on the server, and server is transmitted to the recipient more then, needs the online and selection " acceptance " of recipient equally, and server could be transferred to the recipient with this document.No matter under the sort of transmission mode, sender or server all are by the control command notification receiver file of not receiving to be arranged, and the recipient notifies sender or server to send file data by control command.
Under many circumstances, busier or not on the seat as: recipient, can not click " acceptance " timely, this document can not transmit, and clicking " acceptance " up to the recipient could transmit; Operating efficiency is also very low.
Summary of the invention:
The present invention is for addressing the above problem weak point, provide a kind of in JICQ the method for automatic reception file.
In order to address the above problem, the invention provides following technical scheme: a kind of in JICQ the method for automatic reception file, the object of sender's selective reception has been selected to treat fat file and has been sent, comprise the steps,
Whether a. the recipient is by client option, select by " automatic reception file ";
B. the recipient is set to " automatic reception file ", and the content that client generates control command automatically is " acceptance ";
C. the recipient is not set to " automatic reception file ", and the content of the manual input control order of recipient is " refusal ", " acceptance " or " saving as ".
D. the sender is according to the control command transfer files of receiving;
When the content of control command is " acceptance "; The recipient can be provided with the default path of file storage in client option, if therefore control command is " acceptance ", then use default path, and the recipient does not need the select File storing path;
If the control command content is " refusal ", then transfer files is not given the recipient,
If the control command content for " saving as " then transfer files give the recipient and this document be saved in the position that is provided with in addition.
Described step comprises that also the automatic reception file is not finished when receiving, and the recipient can cancel the reception file.
When described step also comprises automatic reception, by the state of user-interface notifications recipient reception.
Described state comprises that beginning to receive, finish receiving, send when receiving wrong, sender cancels transmission.
Described step comprises that also the recipient finishes receiving this document, ejection tray window or flash icon, and the prompting user receives the relevant information of new file and this document.
Described relevant information comprises the path that sender, transmitting time, file are preserved.
Advantage of the present invention:
When receiving file under ad hoc mode, do not need the user at every moment on the computer next door, can receive at any time, the sender can slowly not click " acceptance " because of the recipient and sends failure like this.
When under the server forwards pattern, receiving file, the recipient is engraved in by the computer equally when not required, at any time can receive file, can not exist the recipient not before computer, can't receive some vital documents, especially under the situation that file is bigger, and the user also can not delay the time of reception and can also do other things simultaneously temporarily not in computer when next door.
In a word, automatic reception file of the present invention makes the reception file of recipient's more convenient and quicker, thereby has improved operating efficiency.
Description of drawings:
Fig. 1 is the flow chart of the inventive method technical scheme.
Embodiment:
As shown in Figure 1, a kind of in JICQ the method for automatic reception file, comprise the steps:
Whether S1. the recipient is by client option, select by " automatic reception file ";
S21. the object of sender's selective reception, select to treat fat file and send: if ad hoc mode, then sender's client need be waited for recipient's sending controling instruction, just begins to send after receiving instruction.
If the server forwards pattern, then sender's client can directly send to file on the server, and the server notification recipient receives then.
S22. router is waited for recipient's sending controling instruction.
If ad hoc mode, the client that router uses for the sender; If server forwards pattern, router are the module that sends file in the server;
S3. the recipient is set to " automatic reception file ", and the content that client generates control command automatically is " acceptance ";
The S4 recipient is not set to " automatic reception file ", ejects session window, the prompting user
Not message in-coming part is arranged, and then the recipient needs manually to select control command, and this command content is " refusal " or " acceptance " or " saving as ";
If the content of control command is " acceptance ", the recipient will be saved in default location to file;
If the control command content is " refusal ", then program sends the refusal instruction to the sender, after the sender receives this instruction, by interface display " recipient refuses ", and does not send this document to the recipient;
If the control command content for " saving as " then transfer files give the recipient and this document be saved in the position that is provided with in addition.
S5. the sender is according to the control command transfer files, and this command content is " refusal " or " acceptance " or " saving as ";
S6. after finishing reception, ejection tray window or flash icon, the prompting user receives new file.
Receive in the file process, by the state of user-interface notifications recipient reception, as begin to receive, finish receiving, send mistake during reception, the sender cancels transmission etc.This interface informing mechanism, the recipient can not miss because of automatic reception and handle these files.Receive in the file process, the user can cancel reception, that is to say, even the automatic reception user also can intervene transport process.