forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIcon.cpp
More file actions
34 lines (33 loc) · 830 Bytes
/
Copy pathIcon.cpp
File metadata and controls
34 lines (33 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "Icon.g.cpp"
#include "Icon.h"
#include "Converters.h"
namespace winrt::Microsoft::Management::Deployment::implementation
{
void Icon::Initialize(::AppInstaller::Manifest::Icon icon)
{
m_icon = std::move(icon);
}
hstring Icon::Url()
{
return winrt::to_hstring(m_icon.Url);
}
IconFileType Icon::FileType()
{
return GetDeploymentIconFileType(m_icon.FileType);
}
IconResolution Icon::Resolution()
{
return GetDeploymentIconResolution(m_icon.Resolution);
}
IconTheme Icon::Theme()
{
return GetDeploymentIconTheme(m_icon.Theme);
}
com_array<uint8_t> Icon::Sha256()
{
return com_array<uint8_t>(m_icon.Sha256);
}
}