MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / getState

Method getState

src/downloadmanager.cpp:1366–1373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1364}
1365
1366DownloadManager::DownloadState DownloadManager::getState(int index) const
1367{
1368 if ((index < 0) || (index >= m_ActiveDownloads.size())) {
1369 throw MyException(tr("state: invalid download index %1").arg(index));
1370 }
1371
1372 return m_ActiveDownloads.at(index)->m_State;
1373}
1374
1375bool DownloadManager::isInfoIncomplete(int index) const
1376{

Callers 6

dataMethod · 0.80
lessThanPredicateMethod · 0.80
paintMethod · 0.80
onDoubleClickMethod · 0.80
onCustomContextMenuMethod · 0.80
keyPressEventMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected