MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / createFlow

Method createFlow

TaskFlow/core/FlowRegistry.cpp:20–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20Flow *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
42QStringList FlowRegistry::getAvailableTypes() const
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected