diff options
Diffstat (limited to 'src/core/frontend/applets/cabinet.h')
| -rw-r--r-- | src/core/frontend/applets/cabinet.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/frontend/applets/cabinet.h b/src/core/frontend/applets/cabinet.h index 1c68bf57d..c28a235c1 100644 --- a/src/core/frontend/applets/cabinet.h +++ b/src/core/frontend/applets/cabinet.h | |||
| @@ -18,18 +18,19 @@ struct CabinetParameters { | |||
| 18 | Service::NFP::CabinetMode mode; | 18 | Service::NFP::CabinetMode mode; |
| 19 | }; | 19 | }; |
| 20 | 20 | ||
| 21 | using CabinetCallback = std::function<void(bool, const std::string&)>; | ||
| 22 | |||
| 21 | class CabinetApplet { | 23 | class CabinetApplet { |
| 22 | public: | 24 | public: |
| 23 | virtual ~CabinetApplet(); | 25 | virtual ~CabinetApplet(); |
| 24 | virtual void ShowCabinetApplet(std::function<void(bool, const std::string&)> callback, | 26 | virtual void ShowCabinetApplet(const CabinetCallback& callback, |
| 25 | const CabinetParameters& parameters, | 27 | const CabinetParameters& parameters, |
| 26 | std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const = 0; | 28 | std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const = 0; |
| 27 | }; | 29 | }; |
| 28 | 30 | ||
| 29 | class DefaultCabinetApplet final : public CabinetApplet { | 31 | class DefaultCabinetApplet final : public CabinetApplet { |
| 30 | public: | 32 | public: |
| 31 | void ShowCabinetApplet(std::function<void(bool, const std::string&)> callback, | 33 | void ShowCabinetApplet(const CabinetCallback& callback, const CabinetParameters& parameters, |
| 32 | const CabinetParameters& parameters, | ||
| 33 | std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const override; | 34 | std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const override; |
| 34 | }; | 35 | }; |
| 35 | 36 | ||