AntiMicroX
Loading...
Searching...
No Matches
src
xml
joybuttonslotxml.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 JOYBUTTONSLOTXML_H
19
#define JOYBUTTONSLOTXML_H
20
21
#include <QObject>
22
#include <QReadWriteLock>
23
24
class
QXmlStreamReader
;
25
class
QXmlStreamWriter
;
26
class
JoyButtonSlot
;
27
28
class
JoyButtonSlotXml
:
public
QObject
29
{
30
Q_OBJECT
31
32
public
:
33
explicit
JoyButtonSlotXml
(
JoyButtonSlot
*
joyBtnSlot
, QObject *
parent
=
nullptr
);
34
35
virtual
void
readConfig
(
QXmlStreamReader
*xml);
36
virtual
void
writeConfig
(
QXmlStreamWriter
*xml);
37
static
int
timeoutWrite
;
38
static
int
timeoutRead
;
39
40
private
:
41
void
writeEachSlot
(
QXmlStreamWriter
*xml,
JoyButtonSlot
*
joyBtnSlot
);
42
void
readEachSlot
(
QXmlStreamReader
*xml,
JoyButtonSlot
*
joyBtnSlot
,
QString
&
profile
,
QString
&
tempStringData
,
43
QString
&
extraStringData
);
44
void
setSlotData
(
JoyButtonSlot
*
joyBtnSlot
,
QString
profile
,
QString
tempStringData
,
QString
extraStringData
);
45
46
JoyButtonSlot
*
m_joyBtnSlot
;
47
QReadWriteLock
xmlLock
;
48
};
49
50
#endif
// JOYBUTTONSLOTXML_H
JoyButtonSlotXml
Definition
joybuttonslotxml.h:29
JoyButtonSlotXml::readEachSlot
void readEachSlot(QXmlStreamReader *xml, JoyButtonSlot *joyBtnSlot, QString &profile, QString &tempStringData, QString &extraStringData)
Definition
joybuttonslotxml.cpp:149
JoyButtonSlotXml::timeoutWrite
static int timeoutWrite
Definition
joybuttonslotxml.h:37
JoyButtonSlotXml::setSlotData
void setSlotData(JoyButtonSlot *joyBtnSlot, QString profile, QString tempStringData, QString extraStringData)
Definition
joybuttonslotxml.cpp:242
JoyButtonSlotXml::m_joyBtnSlot
JoyButtonSlot * m_joyBtnSlot
Definition
joybuttonslotxml.h:46
JoyButtonSlotXml::xmlLock
QReadWriteLock xmlLock
Definition
joybuttonslotxml.h:47
JoyButtonSlotXml::writeConfig
virtual void writeConfig(QXmlStreamWriter *xml)
Definition
joybuttonslotxml.cpp:293
JoyButtonSlotXml::timeoutRead
static int timeoutRead
Definition
joybuttonslotxml.h:38
JoyButtonSlotXml::readConfig
virtual void readConfig(QXmlStreamReader *xml)
Definition
joybuttonslotxml.cpp:37
JoyButtonSlotXml::writeEachSlot
void writeEachSlot(QXmlStreamWriter *xml, JoyButtonSlot *joyBtnSlot)
Definition
joybuttonslotxml.cpp:342
JoyButtonSlot
Represents action which can be performed after pressing button.
Definition
joybuttonslot.h:38
JoyDPadXml
Definition
joydpadxml.h:27
Generated by
1.9.8