summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmstring.h
blob: 62927ee93cb34b0d91f84c52304a7fc9e5843623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#pragma once

#include <qstring.h>

#include <emscripten/val.h>

QT_BEGIN_NAMESPACE

class QWasmString
{
public:
    static emscripten::val fromQString(const QString &str);
    static QString toQString(const emscripten::val &v);
};
QT_END_NAMESPACE