#ifndef TOOLSMANAGER_H #define TOOLSMANAGER_H #include #include struct ToolItem { QString title; QString program; QString workingDirectory; QString parameters; bool pauseAfterExit; }; using PToolItem = std::shared_ptr; class ToolsManager : public QObject { Q_OBJECT public: explicit ToolsManager(QObject *parent = nullptr); void load(); void save(); const QList &tools() const; PToolItem findTool(const QString& title); void setTools(const QList &newTools); private: QList mTools; }; using PToolsManager = std::shared_ptr; #endif // TOOLSMANAGER_H