Warning, file /plasma/wacomtablet/src/kded/tablethandlerinterface.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 TABLETHANDLERINTERFACE_H 0021 #define TABLETHANDLERINTERFACE_H 0022 0023 #include "devicetype.h" 0024 #include "property.h" 0025 0026 #include <QObject> 0027 #include <QString> 0028 #include <QStringList> 0029 0030 namespace Wacom 0031 { 0032 0033 /** 0034 * This interface only exists so we can create a mock implementation of it for 0035 * unit testing. See the main implementation for method documentation. 0036 * 0037 * @see TabletHandler 0038 */ 0039 class TabletHandlerInterface : public QObject 0040 { 0041 public: 0042 explicit TabletHandlerInterface(QObject *parent = 0) 0043 : QObject(parent) 0044 { 0045 } 0046 0047 virtual QString getProperty(const QString &tabletId, const DeviceType &deviceType, const Property &property) const = 0; 0048 0049 virtual QStringList listProfiles(const QString &tabletId) = 0; 0050 0051 virtual void setProfile(const QString &tabletId, const QString &profile) = 0; 0052 0053 virtual void setProperty(const QString &tabletId, const DeviceType &deviceType, const Property &property, const QString &value) = 0; 0054 0055 virtual QStringList getProfileRotationList(const QString &tabletId) = 0; 0056 0057 virtual void setProfileRotationList(const QString &tabletId, const QStringList &rotationList) = 0; 0058 0059 }; // CLASS 0060 } // NAMESPACE 0061 #endif // HEADER PROTECTION