master
h 42 lines 1.08 KB
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 ImageProgress.h
8
9 Abstract:
10
11 This file contains the definition of the WinRT wrapper for the WSLC SDK ImageProgress class.
12
13 --*/
14
15 #pragma once
16 #include "Microsoft.WSL.Containers.ImageProgress.g.h"
17 #include "Helpers.h"
18
19 namespace winrt::Microsoft::WSL::Containers::implementation {
20 struct ImageProgress : ImageProgressT<ImageProgress>
21 {
22 ImageProgress() = default;
23 ImageProgress(const WslcImageProgressMessage* progress);
24
25 hstring Id();
26 void Id(hstring const& value);
27 winrt::Microsoft::WSL::Containers::ImageProgressStatus Status();
28 void Status(winrt::Microsoft::WSL::Containers::ImageProgressStatus const& value);
29 uint64_t CurrentBytes();
30 void CurrentBytes(uint64_t value);
31 uint64_t TotalBytes();
32 void TotalBytes(uint64_t value);
33
34 private:
35 hstring m_id;
36 winrt::Microsoft::WSL::Containers::ImageProgressStatus m_status{};
37 uint64_t m_currentBytes{};
38 uint64_t m_totalBytes{};
39 };
40 } // namespace winrt::Microsoft::WSL::Containers::implementation
41
42 DEFINE_TYPE_HELPERS(ImageProgress);