From 297626e55974e9082f0fd76b98050fc291b1e3f3 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 5 Apr 2013 16:08:13 +0000 Subject: - first approach of file transferring git-svn-id: http://svn.miranda-ng.org/main/trunk@4317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_transfer.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 protocols/Skype/src/skype_transfer.cpp (limited to 'protocols/Skype/src/skype_transfer.cpp') diff --git a/protocols/Skype/src/skype_transfer.cpp b/protocols/Skype/src/skype_transfer.cpp new file mode 100644 index 0000000000..437d016b6d --- /dev/null +++ b/protocols/Skype/src/skype_transfer.cpp @@ -0,0 +1,29 @@ +#include "skype_proto.h" + +//LIST CSkypeProto::fileTransferList(1); + +FileTransfer *CSkypeProto::FindTransfer(SEBinary guid) +{ + for (int i = 0; i < this->fileTransferList.getCount(); i++) + { + if (this->fileTransferList[i]->guid == guid) + { + return this->fileTransferList[i]; + } + } + + return NULL; +} + +FileTransfer *CSkypeProto::FindFileTransfer(CTransfer::Ref transfer) +{ + for (int i = 0; i < this->fileTransferList.getCount(); i++) + { + if (this->fileTransferList[i]->transfers.contains(transfer)) + { + return this->fileTransferList[i]; + } + } + + return NULL; +} \ No newline at end of file -- cgit v1.2.3