src/plugins/tool/CellMLTools/src/cellmltoolsplugin.cpp
// Retrieve the file types supported by the CellMLSupport plugin
Retrieve the file types supported by the CellMLSupport plugin
Retrieve the file types supported by the CellMLSupport plugin
foreach (Plugin *plugin, pLoadedPlugins) {
        FileTypeInterface *fileTypeInterface = qobject_cast<FileTypeInterface *>(plugin->instance());
        if (!plugin->name().compare("CellMLSupport") && fileTypeInterface) {
            mCellmlFileTypes << fileTypeInterface->fileTypes();
            break;
        }
    }
foreach ( Plugin * plugin , pLoadedPlugins ) { FileTypeInterface * fileTypeInterface = qobject_cast < FileTypeInterface * > ( plugin -> instance ( ) ) ; if ( ! plugin -> name ( ) . compare ( " " ) && fileTypeInterface ) { mCellmlFileTypes << fileTypeInterface -> fileTypes ( ) ; break ; } }
Retrieve the file types supported by the CellMLSupport plugin
Retrieve the file types supported by the CellMLSupport plugin
// This is the CellMLSupport plugin and, as expected, it implements // our file type interface, so retrieve the file types it supports