3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-01-31 07:12:18 +00:00
Brooklyn/plasma/kcms/keyboard/udev_helper.h
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

33 lines
564 B
C++

/*
SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef UDEV_HELPER_H_
#define UDEV_HELPER_H_
#include <QObject>
class UdevDeviceNotifier : public QObject
{
Q_OBJECT
public:
explicit UdevDeviceNotifier(QObject *parent = nullptr);
~UdevDeviceNotifier() override;
Q_SIGNALS:
void newKeyboardDevice();
void newPointerDevice();
private:
void init();
void socketActivated();
struct udev *m_udev;
struct udev_monitor *m_monitor;
};
#endif // UDEV_HELPER_H_