File indexing completed on 2024-05-26 05:37:14

0001 /*
0002     SPDX-FileCopyrightText: 2013 Alexander Mezin <mezin.alexander@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include <Plasma5Support/DataEngine>
0009 
0010 class OrgKdeTouchpadInterface;
0011 
0012 class TouchpadEngine : public Plasma5Support::DataEngine
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     TouchpadEngine(QObject *parent);
0018     ~TouchpadEngine();
0019 
0020     Plasma5Support::Service *serviceForSource(const QString &source) override;
0021 
0022 private Q_SLOTS:
0023     void workingTouchpadFoundChanged(bool);
0024     void mousePluggedInChanged(bool);
0025     void enabledChanged(bool);
0026 
0027 private:
0028     void init();
0029     QString m_source;
0030     OrgKdeTouchpadInterface *m_daemon;
0031 };