| 18 | } |
| 19 | |
| 20 | Flow *FlowRegistry::createFlow(const QString &flowType, FlowManager *flowManager) const |
| 21 | { |
| 22 | LOG_MESSAGE(QString("Trying to create flow: %1").arg(flowType)); |
| 23 | |
| 24 | if (m_flowCreators.contains(flowType)) { |
| 25 | LOG_MESSAGE(QString("Found creator for flow type: %1").arg(flowType)); |
| 26 | try { |
| 27 | Flow *flow = m_flowCreators[flowType](flowManager); |
| 28 | if (flow) { |
| 29 | LOG_MESSAGE(QString("Successfully created flow: %1").arg(flowType)); |
| 30 | return flow; |
| 31 | } |
| 32 | } catch (...) { |
| 33 | LOG_MESSAGE(QString("Exception while creating flow of type: %1").arg(flowType)); |
| 34 | } |
| 35 | } else { |
| 36 | LOG_MESSAGE(QString("No creator found for flow type: %1").arg(flowType)); |
| 37 | } |
| 38 | |
| 39 | return nullptr; |
| 40 | } |
| 41 | |
| 42 | QStringList FlowRegistry::getAvailableTypes() const |
| 43 | { |
nothing calls this directly
no outgoing calls
no test coverage detected