Changeset b2dc873
- Timestamp:
- 2013-01-19T19:25:19Z (12 years ago)
- Branches:
- master
- Children:
- fe92921
- Parents:
- be98957
- git-author:
- Miklos Vajna <vmiklos@…> (19-01-13 19:25:19)
- git-committer:
- Miklos Vajna <vmiklos@…> (19-01-13 19:25:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/skype/skype.c
rbe98957 rb2dc873 46 46 enum { 47 47 SKYPE_FILETRANSFER_NEW = 1, 48 SKYPE_FILETRANSFER_TRANSFERRING, 49 SKYPE_FILETRANSFER_COMPLETED, 48 50 SKYPE_FILETRANSFER_FAILED 49 51 }; … … 81 83 /* Same for file transfers. */ 82 84 int filetransfer_status; 85 /* Path of the file being transferred. */ 86 char *filetransfer_path; 83 87 /* Using /j #nick we want to have a groupchat with two people. Usually 84 88 * not (default). */ … … 783 787 id); 784 788 sd->filetransfer_status = SKYPE_FILETRANSFER_FAILED; 789 } else if (!strcmp(info, "STATUS COMPLETED")) { 790 skype_printf(ic, "GET FILETRANSFER %s PARTNER_HANDLE\n", id); 791 sd->filetransfer_status = SKYPE_FILETRANSFER_COMPLETED; 792 } else if (!strcmp(info, "STATUS TRANSFERRING")) { 793 skype_printf(ic, "GET FILETRANSFER %s PARTNER_HANDLE\n", id); 794 sd->filetransfer_status = SKYPE_FILETRANSFER_TRANSFERRING; 795 } else if (!strncmp(info, "FILEPATH ", 9)) { 796 info += 9; 797 sd->filetransfer_path = g_strdup(info); 785 798 } else if (!strncmp(info, "PARTNER_HANDLE ", 15)) { 786 799 info += 15; … … 795 808 imcb_log(ic, "Failed to transfer file from user %s.", 796 809 info); 810 break; 811 case SKYPE_FILETRANSFER_COMPLETED: 812 imcb_log(ic, "File transfer from user %s completed.", info); 813 break; 814 case SKYPE_FILETRANSFER_TRANSFERRING: 815 if (sd->filetransfer_path) { 816 imcb_log(ic, "File transfer from user %s started, saving to %s.", info, sd->filetransfer_path); 817 g_free(sd->filetransfer_path); 818 sd->filetransfer_path = NULL; 819 } 797 820 break; 798 821 }
Note: See TracChangeset
for help on using the changeset viewer.