| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | InstallProgress.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | This file contains the definition of the WinRT wrapper for the WSLC SDK InstallProgress class. |
| 12 | |
| 13 | --*/ |
| 14 | |
| 15 | #pragma once |
| 16 | #include "Microsoft.WSL.Containers.InstallProgress.g.h" |
| 17 | #include "Helpers.h" |
| 18 | |
| 19 | namespace winrt::Microsoft::WSL::Containers::implementation { |
| 20 | struct InstallProgress : InstallProgressT<InstallProgress> |
| 21 | { |
| 22 | InstallProgress() = default; |
| 23 | InstallProgress(winrt::Microsoft::WSL::Containers::Component component, uint32_t progress, uint32_t total); |
| 24 | |
| 25 | winrt::Microsoft::WSL::Containers::Component Component(); |
| 26 | uint32_t Progress(); |
| 27 | uint32_t Total(); |
| 28 | |
| 29 | private: |
| 30 | winrt::Microsoft::WSL::Containers::Component m_component{}; |
| 31 | uint32_t m_progress{}; |
| 32 | uint32_t m_total{}; |
| 33 | }; |
| 34 | } // namespace winrt::Microsoft::WSL::Containers::implementation |
| 35 | |
| 36 | DEFINE_TYPE_HELPERS(InstallProgress); |