File indexing completed on 2024-05-12 05:28:35

0001 //////////////////////////////////////////////////////////////////////////////
0002 // breezedetectwidget.h
0003 // Note: this class is a stripped down version of
0004 // /kdebase/workspace/kwin/kcmkwin/kwinrules/detectwidget.h
0005 // SPDX-FileCopyrightText: 2004 Lubos Lunak <l.lunak@kde.org>
0006 
0007 // -------------------
0008 //
0009 // SPDX-FileCopyrightText: 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0010 //
0011 // SPDX-License-Identifier: MIT
0012 //////////////////////////////////////////////////////////////////////////////
0013 
0014 #pragma once
0015 
0016 #include <QObject>
0017 #include <QVariantMap>
0018 
0019 namespace Breeze
0020 {
0021 class DetectDialog : public QObject
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     //* constructor
0027     explicit DetectDialog(QObject *parent = nullptr);
0028 
0029     //* read window properties or select one from mouse grab
0030     void detect();
0031 
0032     //* window properties
0033     QVariantMap properties() const;
0034 
0035 Q_SIGNALS:
0036     void detectionDone(bool);
0037 
0038 private:
0039     //* properties
0040     QVariantMap m_properties;
0041 };
0042 
0043 } // namespace