File indexing completed on 2024-04-28 16:55:47

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_SCREENCHOOSER_DIALOG_H
0010 #define XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H
0011 
0012 #include "outputsmodel.h"
0013 #include "quickdialog.h"
0014 #include "screencast.h"
0015 #include <QEventLoop>
0016 
0017 class ScreenChooserDialog : public QuickDialog
0018 {
0019     Q_OBJECT
0020 public:
0021     ScreenChooserDialog(const QString &appName, bool multiple, ScreenCastPortal::SourceTypes types);
0022     ~ScreenChooserDialog() override;
0023 
0024     QList<Output> selectedOutputs() const;
0025     QVector<QMap<int, QVariant>> selectedWindows() const;
0026     bool allowRestore() const;
0027 
0028 Q_SIGNALS:
0029     void clearSelection();
0030 };
0031 
0032 #endif // XDG_DESKTOP_PORTAL_KDE_SCREENCHOOSER_DIALOG_H