Add Qt libs and headers

This commit is contained in:
√(noham)²
2026-05-07 16:41:01 +02:00
parent 18c023605c
commit 2861c25806
1005 changed files with 114575 additions and 7 deletions

View File

@@ -0,0 +1,40 @@
// Copyright (C) 2016 Kurt Pattyn <pattyn.kurt@gmail.com>.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QWEBSOCKETCORSAUTHENTICATOR_H
#define QWEBSOCKETCORSAUTHENTICATOR_H
#include "QtWebSockets/qwebsockets_global.h"
#include <memory>
QT_BEGIN_NAMESPACE
class QWebSocketCorsAuthenticatorPrivate;
class Q_WEBSOCKETS_EXPORT QWebSocketCorsAuthenticator
{
Q_DECLARE_PRIVATE(QWebSocketCorsAuthenticator)
public:
explicit QWebSocketCorsAuthenticator(const QString &origin);
~QWebSocketCorsAuthenticator();
explicit QWebSocketCorsAuthenticator(const QWebSocketCorsAuthenticator &other);
QWebSocketCorsAuthenticator(QWebSocketCorsAuthenticator &&other) noexcept;
QWebSocketCorsAuthenticator &operator =(QWebSocketCorsAuthenticator &&other) noexcept;
void swap(QWebSocketCorsAuthenticator &other) noexcept;
QWebSocketCorsAuthenticator &operator =(const QWebSocketCorsAuthenticator &other);
QString origin() const;
void setAllowed(bool allowed);
bool allowed() const;
private:
std::unique_ptr<QWebSocketCorsAuthenticatorPrivate> d_ptr;
};
QT_END_NAMESPACE
#endif // QWEBSOCKETCORSAUTHENTICATOR_H