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

Method RawAddSource

src/GenericClientListCtrl.cpp:217–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216}
217void CGenericClientListCtrl::RawAddSource(CKnownFile* owner, CClientRef source, SourceItemType type)
218{
219 ClientCtrlItem_Struct* newitem = new ClientCtrlItem_Struct;
220 newitem->SetContents(owner, source, type);
221
222 m_ListItems.insert( ListItemsPair(source.ECID(), newitem) );
223
224 long item = InsertItem( GetItemCount(), "" );
225 SetItemPtrData( item, reinterpret_cast<wxUIntPtr>(newitem) );
226 SetItemBackgroundColour( item, GetBackgroundColour() );
227}
228
229void CGenericClientListCtrl::AddSource(CKnownFile* owner, const CClientRef& source, SourceItemType type)
230{

Callers

nothing calls this directly

Calls 3

insertMethod · 0.80
ECIDMethod · 0.80
SetContentsMethod · 0.45

Tested by

no test coverage detected