MCPcopy Create free account
hub / github.com/amule-project/amule / RequestSharedFileList

Method RequestSharedFileList

src/FriendList.cpp:212–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210
211
212void CFriendList::RequestSharedFileList(CFriend* cur_friend)
213{
214 if (cur_friend) {
215 CUpDownClient* client = cur_friend->GetLinkedClient().GetClient();
216 if (!client) {
217 client = new CUpDownClient(cur_friend->GetPort(), cur_friend->GetIP(), 0, 0, 0, true, true);
218 client->SetUserName(cur_friend->GetName());
219 theApp->clientlist->AddClient(client);
220 cur_friend->LinkClient(CCLIENTREF(client, "CFriendList::RequestSharedFileList"));
221 }
222 client->RequestSharedFileList();
223 }
224}
225
226
227void CFriendList::SetFriendSlot(CFriend* Friend, bool new_state)

Callers 3

OnViewFilesMethod · 0.45
Get_EC_Response_FriendFunction · 0.45
OnViewFilesMethod · 0.45

Calls 7

SetUserNameMethod · 0.80
GetNameMethod · 0.80
LinkClientMethod · 0.80
GetClientMethod · 0.45
GetPortMethod · 0.45
GetIPMethod · 0.45
AddClientMethod · 0.45

Tested by

no test coverage detected