MCPcopy Create free account
hub / github.com/KDE/okular / loadServiceList

Method loadServiceList

core/document.cpp:857–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855}
856
857void DocumentPrivate::loadServiceList(const QList<KPluginMetaData> &offers)
858{
859 int count = offers.count();
860 if (count <= 0) {
861 return;
862 }
863
864 for (const auto &offer : std::as_const(offers)) {
865 auto id = offer.pluginId();
866 // don't load already loaded generators
867 if (m_loadedGenerators.contains(id)) {
868 continue;
869 }
870
871 auto *g = loadGeneratorLibrary(offer);
872 (void)g;
873 }
874}
875
876void DocumentPrivate::unloadGenerator(GeneratorInfo &info)
877{

Callers 1

fillConfigDialogMethod · 0.80

Calls 2

containsMethod · 0.60
countMethod · 0.45

Tested by

no test coverage detected