Warning, file /plasma/wacomtablet/src/kded/procsystemadaptor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * This file is part of the KDE wacomtablet project. For copyright 0003 * information and license terms see the AUTHORS and COPYING files 0004 * in the top-level directory of this distribution. 0005 * 0006 * This program is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU General Public License as 0008 * published by the Free Software Foundation; either version 2 of 0009 * the License, or (at your option) any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 0020 #ifndef PROCSYSTEMADAPTOR_H 0021 #define PROCSYSTEMADAPTOR_H 0022 0023 #include <QList> 0024 #include <QString> 0025 0026 #include "propertyadaptor.h" 0027 0028 namespace Wacom 0029 { 0030 0031 // Forward Declarations 0032 class ProcSystemProperty; 0033 class ProcSystemAdaptorPrivate; 0034 0035 /** 0036 * A property adaptor which uses the proc system to set LED properties on a device. 0037 */ 0038 class ProcSystemAdaptor : public PropertyAdaptor 0039 { 0040 public: 0041 //! Default constructor. 0042 explicit ProcSystemAdaptor(const QString &deviceName); 0043 0044 //! Destructor 0045 ~ProcSystemAdaptor() override; 0046 0047 /** 0048 * @sa PropertyAdaptor::getProperties() 0049 */ 0050 const QList<Property> getProperties() const override; 0051 0052 /** 0053 * @sa PropertyAdaptor::getProperty(const Property&) 0054 */ 0055 const QString getProperty(const Property &property) const override; 0056 0057 /** 0058 * @sa PropertyAdaptor::setProperty(const Property&, const QString&) 0059 */ 0060 bool setProperty(const Wacom::Property &property, const QString &value) override; 0061 0062 /** 0063 * @sa PropertyAdaptor::supportsProperty(const Property&) 0064 */ 0065 bool supportsProperty(const Property &property) const override; 0066 0067 private: 0068 Q_DECLARE_PRIVATE(ProcSystemAdaptor) 0069 ProcSystemAdaptorPrivate *const d_ptr; /**< d-pointer for this class */ 0070 0071 }; // CLASS 0072 } // NAMESPACE 0073 #endif // HEADER PROTECTION