/* * SPDX-FileCopyrightText: 2024 Bohdan Onofriichuk * * SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include class OpenWithFileManagerAction : public ActionInterface { Q_OBJECT Q_INTERFACES(ActionInterface) public: explicit OpenWithFileManagerAction(const QString &udi, QObject *parent); ~OpenWithFileManagerAction() override; QString predicate() const override; bool isValid() const override; QString name() const override; QString icon() const override; QString text() const override; private Q_SLOTS: void updateIsValid(const QString &udi); private: QString m_icon; QString m_text; bool m_isActionValid; std::shared_ptr m_stateMonitor; };