File indexing completed on 2024-07-14 15:12:20

0001 /*
0002 
0003  * SPDX-FileCopyrightText: 2017 Riccardo Iaconelli <riccardo@kde.org>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.0-or-later
0006  *
0007  */
0008 
0009 #pragma once
0010 
0011 #include "libruqolacore_export.h"
0012 #include <QObject>
0013 
0014 class QString;
0015 
0016 class LIBRUQOLACORE_EXPORT RuqolaUtils : public QObject
0017 {
0018     Q_OBJECT
0019 public:
0020     ~RuqolaUtils() override;
0021     static RuqolaUtils *self();
0022     void openUrl(const QString &url);
0023 
0024     [[nodiscard]] QString extractRoomUserFromUrl(const QString &url);
0025 
0026 private:
0027     explicit RuqolaUtils(QObject *parent = nullptr);
0028     Q_DISABLE_COPY(RuqolaUtils)
0029 };