blob: 437d016b6d08af87eee25330f9ea931e59061034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}
|