1/*
2 * Copyright (c) 2022-2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef UPDATER_UI_TOOLS_H
17#define UPDATER_UI_TOOLS_H
18
19#include <string>
20
21namespace Updater {
22class UpdaterUiTools {
23public:
24    struct BitmapInfoHeader {
25        uint32_t bfSize;
26        uint16_t bfReserved1;
27        uint16_t bfReserved2;
28        uint32_t bfOffBits;
29        uint32_t biSize;
30        int32_t biWidth;
31        int32_t biHeight;
32        uint16_t biPlanes;
33        uint16_t biBitCount;
34        uint32_t biCompression;
35        uint32_t biSizeImage;
36        uint32_t biXPelsPerMeter;
37        uint32_t biYPelsPerMeter;
38        uint32_t biClrUsed;
39        uint32_t biClrImportant;
40    };
41
42    UpdaterUiTools() = default;
43    virtual ~UpdaterUiTools() = default;
44    static void SaveUxBuffToFile(const std::string &filePath);
45};
46} // namespace Updater
47#endif // UPDATER_UI_TOOLS_H
48