MCPcopy Create free account
hub / github.com/RetroShare/RetroShare / getFilePaths

Method getFilePaths

retroshare-gui/src/gui/RemoteDirModel.cpp:1485–1514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485void RetroshareDirModel::getFilePaths(const QModelIndexList &list, std::list<std::string> &fullpaths)
1486{
1487#ifdef RDM_DEBUG
1488 std::cerr << "RetroshareDirModel::getFilePaths()" << std::endl;
1489#endif
1490#warning mr-alice: make sure we atually output something here
1491 if (RemoteMode)
1492 {
1493#ifdef RDM_DEBUG
1494 std::cerr << "No File Paths for remote files" << std::endl;
1495#endif
1496 return;
1497 }
1498 /* translate */
1499 for(QModelIndexList::const_iterator it = list.begin(); it != list.end(); ++it)
1500 {
1501 std::string path ;
1502
1503 getFilePath(*it,path) ;
1504#ifdef RDM_DEBUG
1505 std::cerr << "Constructed FilePath: " << path << std::endl;
1506#endif
1507#warning mr-alice: TERRIBLE COST here. Use a std::set!
1508 if (fullpaths.end() == std::find(fullpaths.begin(), fullpaths.end(), path))
1509 fullpaths.push_back(path);
1510 }
1511#ifdef RDM_DEBUG
1512 std::cerr << "::::::::::::Done getFilePaths" << std::endl;
1513#endif
1514}
1515
1516void RetroshareDirModel::filterItems(const std::list<std::string>& keywords,uint32_t& found)
1517{

Callers 1

playselectedfilesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected