File indexing completed on 2024-04-28 05:36:52

0001 /*
0002  * SPDX-FileCopyrightText: 2018 Red Hat Inc
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  *
0006  * SPDX-FileCopyrightText: 2018 Jan Grulich <jgrulich@redhat.com>
0007  */
0008 
0009 #ifndef XDG_DESKTOP_PORTAL_KDE_REMOTEDESKTOP_DIALOG_H
0010 #define XDG_DESKTOP_PORTAL_KDE_REMOTEDESKTOP_DIALOG_H
0011 
0012 #include "outputsmodel.h"
0013 #include "quickdialog.h"
0014 #include "remotedesktop.h"
0015 
0016 namespace Ui
0017 {
0018 class RemoteDesktopDialog;
0019 }
0020 
0021 class RemoteDesktopDialog : public QuickDialog
0022 {
0023     Q_OBJECT
0024 public:
0025     RemoteDesktopDialog(const QString &appName, RemoteDesktopPortal::DeviceTypes deviceTypes, bool screenSharingEnabled, QObject *parent = nullptr);
0026 
0027     QList<Output> selectedOutputs() const;
0028     bool allowRestore() const;
0029 
0030     static QString buildDescription(const QString &appName, RemoteDesktopPortal::DeviceTypes deviceTypes, bool screenSharingEnabled);
0031 };
0032 
0033 #endif // XDG_DESKTOP_PORTAL_KDE_REMOTEDESKTOP_DIALOG_H