MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / isDocumentInFavoriteList

Method isDocumentInFavoriteList

src/board/UBFeaturesController.cpp:530–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530bool UBFeaturesController::isDocumentInFavoriteList(QString documentFolderName)
531{
532 for(auto&& url : std::as_const(*favoriteSet))
533 {
534 QString localFile = url.toLocalFile();
535 if (localFile.endsWith(".rdf"))
536 {
537 if (localFile.section('/', -2, -2) == documentFolderName) //section before "/metadata.rdf" is documentFolderName
538 {
539 return true;
540 }
541 }
542 }
543
544 return false;
545}
546
547bool UBFeaturesController::isInRecentlyOpenDocuments(QString documentFolderName)
548{

Callers 5

setNewNameMethod · 0.80
updateActionsMethod · 0.80
updateButtonsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected