mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00

We currently have a single IPC to set clipboard data. We will also need an IPC to retrieve that data from the UI. This defines system clipboard data in LibWeb to handle this transfer, and adds the IPC to provide it.
28 lines
698 B
C
28 lines
698 B
C
/*
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/ByteString.h>
|
|
#include <AK/Error.h>
|
|
#include <AK/Optional.h>
|
|
#include <AK/String.h>
|
|
#include <AK/StringView.h>
|
|
#include <LibURL/URL.h>
|
|
|
|
#include <QByteArray>
|
|
#include <QString>
|
|
#include <QUrl>
|
|
|
|
AK::ByteString ak_byte_string_from_qstring(QString const&);
|
|
AK::ByteString ak_byte_string_from_qbytearray(QByteArray const&);
|
|
|
|
String ak_string_from_qstring(QString const&);
|
|
QString qstring_from_ak_string(StringView);
|
|
QByteArray qbytearray_from_ak_string(StringView);
|
|
|
|
Optional<URL::URL> ak_url_from_qstring(QString const&);
|
|
URL::URL ak_url_from_qurl(QUrl const&);
|