summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmbase64iconstore.h
blob: 89704f2d2ce608d240176ef3b385dadfd5629ca2 (plain)
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
35
36
37
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef QWASMBASE64IMAGESTORE_H
#define QWASMBASE64IMAGESTORE_H

#include <string>
#include <string_view>

#include <QtCore/qtconfigmacros.h>

QT_BEGIN_NAMESPACE
class Base64IconStore
{
public:
    enum class IconType {
        Maximize,
        First = Maximize,
        QtLogo,
        Restore,
        X,
        Size,
    };

    Base64IconStore();
    ~Base64IconStore();

    static Base64IconStore *get();

    std::string_view getIcon(IconType type) const;

private:
    std::string m_storage[static_cast<size_t>(IconType::Size)];
};

QT_END_NAMESPACE
#endif // QWASMBASE64IMAGESTORE_H