Changeset e4f5ca8 for protocols/skype/skype.c
- Timestamp:
- 2013-02-10T12:48:32Z (12 years ago)
- Branches:
- master
- Children:
- 12f500f, 65a5d15
- Parents:
- be98957 (diff), 875ba16 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/skype/skype.c
rbe98957 re4f5ca8 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.