| 63 | } |
| 64 | |
| 65 | bool dpfservice::ProjectGenerator::isOpenedProject(const QString &kitName, |
| 66 | const QString &language, |
| 67 | const QString &workspace) |
| 68 | { |
| 69 | auto &ctx = dpfInstance.serviceContext(); |
| 70 | ProjectService *projectService = ctx.service<ProjectService>(ProjectService::name()); |
| 71 | auto proInfos = projectService->getAllProjectInfo(); |
| 72 | for (auto info : proInfos) { |
| 73 | if (info.kitName() == kitName |
| 74 | && info.language() == language |
| 75 | && info.workspaceFolder() == workspace) { |
| 76 | return true; |
| 77 | } |
| 78 | } |
| 79 | return false; |
| 80 | } |
| 81 | |
| 82 | void dpfservice::ProjectGenerator::doProjectOpen(const QString &kitName, |
| 83 | const QString &language, |
no test coverage detected