AntiMicroX
Loading...
Searching...
No Matches
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
23class JoyButton;
26
27class JoyButtonXml : public QObject
28{
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:
40};
41
42#endif // JOYBUTTONXML_H
Definition joybuttonxml.h:28
JoyButton * m_joyButton
Definition joybuttonxml.h:39
virtual void writeConfig(QXmlStreamWriter *xml)
Definition joybuttonxml.cpp:342
virtual void readConfig(QXmlStreamReader *xml)
Definition joybuttonxml.cpp:322
virtual bool readButtonConfig(QXmlStreamReader *xml)
Definition joybuttonxml.cpp:32
Represents a single joystick button being part of a SetJoystick Contains multiple JoyButtonSlots whic...
Definition joybutton.h:47
Definition joydpadxml.h:27