File indexing completed on 2025-02-16 05:09:08

0001 /****************************************************************************
0002 **
0003 ** Copyright (C) 2020 The Qt Company Ltd.
0004 ** Contact: https://www.qt.io/licensing/
0005 **
0006 ** This file is part of the test suite of the Qt Toolkit.
0007 **
0008 ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
0009 ** Commercial License Usage
0010 ** Licensees holding valid commercial Qt licenses may use this file in
0011 ** accordance with the commercial license agreement provided with the
0012 ** Software or, alternatively, in accordance with the terms contained in
0013 ** a written agreement between you and The Qt Company. For licensing terms
0014 ** and conditions see https://www.qt.io/terms-conditions. For further
0015 ** information use the contact form at https://www.qt.io/contact-us.
0016 **
0017 ** GNU General Public License Usage
0018 ** Alternatively, this file may be used under the terms of the GNU
0019 ** General Public License version 3 as published by the Free Software
0020 ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
0021 ** included in the packaging of this file. Please review the following
0022 ** information to ensure the GNU General Public License requirements will
0023 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
0024 **
0025 ** $QT_END_LICENSE$
0026 **
0027 ****************************************************************************/
0028 
0029 #pragma once
0030 
0031 #include "coreprotocol.h"
0032 
0033 #include <qwayland-server-kde-output-order-v1.h>
0034 
0035 namespace MockCompositor
0036 {
0037 class OutputOrder : public Global, public QtWaylandServer::kde_output_order_v1
0038 {
0039     Q_OBJECT
0040 public:
0041     explicit OutputOrder(CoreCompositor *compositor);
0042 
0043     void setList(const QStringList &list);
0044 
0045 protected:
0046     void kde_output_order_v1_bind_resource(Resource *resource) override;
0047 
0048 private:
0049     QStringList m_list;
0050 };
0051 
0052 } // namespace MockCompositor