kwin/src/inputbackend.h
Vlad Zahorodnii 7096e3ead8 Run clang-format
The .clang-format file is based on the one in ECM except the following
style options:

 - AlwaysBreakBeforeMultilineStrings
 - BinPackArguments
 - BinPackParameters
 - ColumnLimit
 - BreakBeforeBraces
 - KeepEmptyLinesAtTheStartOfBlocks
2022-03-25 13:25:15 +02:00

42 lines
670 B
C++

/*
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "kwin_export.h"
#include <KSharedConfig>
#include <QObject>
namespace KWin
{
class InputDevice;
class KWIN_EXPORT InputBackend : public QObject
{
Q_OBJECT
public:
explicit InputBackend(QObject *parent = nullptr);
KSharedConfigPtr config() const;
void setConfig(KSharedConfigPtr config);
virtual void initialize()
{
}
Q_SIGNALS:
void deviceAdded(InputDevice *device);
void deviceRemoved(InputDevice *device);
private:
KSharedConfigPtr m_config;
};
} // namespace KWin