diff options
Diffstat (limited to 'protocols/Skype/src/skype_transfer.cpp')
-rw-r--r-- | protocols/Skype/src/skype_transfer.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
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<FileTransfer> 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 |