AntiMicroX
joydpadxml.h
Go to the documentation of this file.
1 /* antimicrox Gamepad to KB+M event mapper
2  * Copyright (C) 2020 Jagoda Górska <juliagoda.pl@protonmail>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8 
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13 
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef JOYDPADXML_H
19 #define JOYDPADXML_H
20 
21 #include <QObject>
22 
23 class QXmlStreamReader;
24 class QXmlStreamWriter;
25 
26 template <class T> class JoyDPadXml : public QObject
27 {
28  public:
29  explicit JoyDPadXml(T *joydpad, QObject *parent = nullptr);
30 
31  void readConfig(QXmlStreamReader *xml); // JoyDPadXml class
32  void writeConfig(QXmlStreamWriter *xml); // JoyDPadXml class
33  bool readMainConfig(QXmlStreamReader *xml);
34 
35  private:
37 };
38 
39 #endif // JOYDPADXML_H
JoyDPad::EightWayMode
@ EightWayMode
Definition: joydpad.h:34
GlobalVariables::JoyDPad::DEFAULTDPADDELAY
static const int DEFAULTDPADDELAY
Definition: globalvariables.h:208
globalvariables.h
joybuttonxml.h
JoyDPadXml::readConfig
void readConfig(QXmlStreamReader *xml)
Definition: joydpadxml.cpp:23
JoyDPadXml
Definition: joydpadxml.h:26
joydpadxml.h
JoyDPadXml::JoyDPadXml
JoyDPadXml(T *joydpad, QObject *parent=nullptr)
Definition: joydpadxml.cpp:17
vdpad.h
JoyDPad::FourWayCardinal
@ FourWayCardinal
Definition: joydpad.h:35
JoyDPadXml::writeConfig
void writeConfig(QXmlStreamWriter *xml)
Definition: joydpadxml.cpp:41
JoyDPadButton
Definition: joydpadbutton.h:27
JoyButtonXml::writeConfig
virtual void writeConfig(QXmlStreamWriter *xml)
Definition: joybuttonxml.cpp:342
JoyDPad::FourWayDiagonal
@ FourWayDiagonal
Definition: joydpad.h:36
JoyDPadXml::readMainConfig
bool readMainConfig(QXmlStreamReader *xml)
Definition: joydpadxml.cpp:76
JoyDPadXml::m_joydpad
T * m_joydpad
Definition: joydpadxml.h:36
JoyButtonXml::readConfig
virtual void readConfig(QXmlStreamReader *xml)
Definition: joybuttonxml.cpp:322
joydpad.h
JoyButtonXml
Definition: joybuttonxml.h:27
number
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Lesser General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: lgpl-2.1.txt:423
gamecontrollerdpad.h