AntiMicroX
Loading...
Searching...
No Matches
src
xml
joybuttonxml.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 JOYBUTTONXML_H
19
#define JOYBUTTONXML_H
20
21
#include <QObject>
22
23
class
JoyButton
;
24
class
QXmlStreamReader
;
25
class
QXmlStreamWriter
;
26
27
class
JoyButtonXml
:
public
QObject
28
{
29
Q_OBJECT
30
31
public
:
32
explicit
JoyButtonXml
(
JoyButton
*
joyButton
, QObject *
parent
=
nullptr
);
33
34
virtual
bool
readButtonConfig
(
QXmlStreamReader
*xml);
35
virtual
void
readConfig
(
QXmlStreamReader
*xml);
36
virtual
void
writeConfig
(
QXmlStreamWriter
*xml);
37
38
private
:
39
JoyButton
*
m_joyButton
;
40
};
41
42
#endif
// JOYBUTTONXML_H
JoyButtonXml
Definition
joybuttonxml.h:28
JoyButtonXml::m_joyButton
JoyButton * m_joyButton
Definition
joybuttonxml.h:39
JoyButtonXml::writeConfig
virtual void writeConfig(QXmlStreamWriter *xml)
Definition
joybuttonxml.cpp:342
JoyButtonXml::readConfig
virtual void readConfig(QXmlStreamReader *xml)
Definition
joybuttonxml.cpp:322
JoyButtonXml::readButtonConfig
virtual bool readButtonConfig(QXmlStreamReader *xml)
Definition
joybuttonxml.cpp:32
JoyButton
Represents a single joystick button being part of a SetJoystick Contains multiple JoyButtonSlots whic...
Definition
joybutton.h:47
JoyDPadXml
Definition
joydpadxml.h:27
Generated by
1.9.8