kwin/plugins/platforms/drm/drm_object_connector.h
2020-08-07 19:57:56 +00:00

46 lines
733 B
C++

/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2016 Roman Gilg <subdiff@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_DRM_OBJECT_CONNECTOR_H
#define KWIN_DRM_OBJECT_CONNECTOR_H
#include "drm_object.h"
namespace KWin
{
class DrmConnector : public DrmObject
{
public:
DrmConnector(uint32_t connector_id, int fd);
~DrmConnector() override;
bool atomicInit() override;
enum class PropertyIndex {
CrtcId = 0,
Count
};
QVector<uint32_t> encoders() {
return m_encoders;
}
bool initProps() override;
bool isConnected();
private:
QVector<uint32_t> m_encoders;
};
}
#endif