matrixion/src/SSOHandler.h
Loren Burkholder 9a6f53e8b2 Create working Android build
"Working" in this case means it compiles and runs.
2021-09-15 21:21:39 -04:00

34 lines
546 B
C++

// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <Qt> // for OS defines
#ifndef Q_OS_ANDROID
#include "httplib.h"
#include <QObject>
#include <string>
class SSOHandler : public QObject
{
Q_OBJECT
public:
SSOHandler(QObject *parent = nullptr);
~SSOHandler();
std::string url() const;
signals:
void ssoSuccess(std::string token);
void ssoFailed();
private:
httplib::Server svr;
int port = 0;
};
#endif