00001 /****************************************************************************** 00002 * This file is part of the Gluon Development Platform 00003 * Copyright (C) 2008 Sacha Schutz <istdasklar@free.fr> 00004 * Copyright (C) 2010 Kim Jung Nissen <jungnissen@gmail.com> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 #ifndef INPUTTHREADPRIVATE_H 00021 #define INPUTTHREADPRIVATE_H 00022 00023 #include "gluonbuttons.h" 00024 #include "absval.h" 00025 00026 #include <QtCore/QSharedData> 00027 #include <QtCore/QList> 00028 #include <QtCore/QMap> 00029 #include <QtCore/QString> 00030 00031 // #include <libudev.h> 00032 00033 namespace GluonInput 00034 { 00035 class InputThreadPrivate : public QSharedData 00036 { 00037 public: 00038 InputThreadPrivate(); 00039 InputThreadPrivate( InputThreadPrivate& other ); 00040 00041 int m_fd; 00042 struct input_id m_device_info; 00043 struct input_event m_currentEvent; 00044 // udev_device *m_udevDevice; 00045 QString m_devicePath; 00046 00047 QString m_deviceName; 00048 QString m_msgError; 00049 00050 bool m_error; 00051 00052 GluonInput::DeviceFlag m_deviceType; 00053 00054 QList<int> m_buttonCapabilities; // list of button capability. BTN_ESC, BTN_F1 etc.... 00055 QList<int> m_relAxisCapabilities; // list of rel Axis capability.. 00056 QList<int> m_absAxisCapabilities; // list of abs Axis capabilty 00057 QList<AbsVal> m_absAxisInfos; // each Absolute Axis has a sub info called AbsVal. [ABS_RX] = AbsVal. 00058 }; 00059 } 00060 #endif