| 1 | /* |
| 2 | * This file is part of lomiri-online-accounts-ui |
| 3 | * |
| 4 | * Copyright (C) 2021 UBports Foundation |
| 5 | * |
| 6 | * Contact: Alberto Mardegan <[email protected]> |
| 7 | * |
| 8 | * This program is free software: you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License version 3, as published |
| 10 | * by the Free Software Foundation. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranties of |
| 14 | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 15 | * PURPOSE. See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #ifndef SIGNON_UI_EXTERNAL_BROWSER_REQUEST_H |
| 22 | #define SIGNON_UI_EXTERNAL_BROWSER_REQUEST_H |
| 23 | |
| 24 | #include "signonui-request.h" |
| 25 | |
| 26 | #include <QObject> |
| 27 | #include <QScopedPointer> |
| 28 | |
| 29 | namespace SignOnUi { |
| 30 | |
| 31 | class ExternalBrowserRequestPrivate; |
| 32 | |
| 33 | class ExternalBrowserRequest: public Request |
| 34 | { |
| 35 | Q_OBJECT |
| 36 | |
| 37 | public: |
| 38 | explicit ExternalBrowserRequest(int id, |
| 39 | const QString &clientProfile, |
| 40 | const QVariantMap ¶meters, |
| 41 | QObject *parent = 0); |
| 42 | ~ExternalBrowserRequest(); |
| 43 | |
| 44 | // reimplemented virtual methods |
| 45 | void start(); |
| 46 | |
| 47 | private: |
| 48 | QScopedPointer<ExternalBrowserRequestPrivate> d_ptr; |
| 49 | Q_DECLARE_PRIVATE(ExternalBrowserRequest) |
| 50 | }; |
| 51 | |
| 52 | } // namespace |
| 53 | |
| 54 | #endif // SIGNON_UI_EXTERNAL_BROWSER_REQUEST_H |