 |
AntiMicroX
|
Go to the documentation of this file.
19 #ifndef XMLCONFIGREADER_H
20 #define XMLCONFIGREADER_H
23 #include <QStringList>
26 class QXmlStreamReader;
46 const QXmlStreamReader *
getXml();
59 QXmlStreamReader *
xml;
66 #endif // XMLCONFIGREADER_H
InputDevice * m_joystick
Definition: xmlconfigreader.h:62
~XMLConfigReader()
Definition: xmlconfigreader.cpp:50
QString fileName
Definition: xmlconfigreader.h:60
const QString getErrorString()
Definition: xmlconfigreader.cpp:177
void setJoystick(InputDevice *joystick)
Definition: xmlconfigreader.cpp:68
const InputDevice * getJoystick()
Definition: xmlconfigreader.cpp:202
const QFile * getConfigFile()
Definition: xmlconfigreader.cpp:200
bool read()
Definition: xmlconfigreader.cpp:97
const QStringList & getDeviceTypes()
Definition: xmlconfigreader.cpp:204
const QString & getFileName()
Definition: xmlconfigreader.cpp:198
void configJoystick(InputDevice *joystick)
Read input device config from the current XML file into the InputDevice object.
Definition: xmlconfigreader.cpp:91
QStringList deviceTypes
Definition: xmlconfigreader.h:63
Definition: xmlconfigmigration.h:26
void setFileName(QString filename)
Sets the filename of the to be read XML file.
Definition: xmlconfigreader.cpp:73
void initDeviceTypes()
Definition: xmlconfigreader.cpp:189
QXmlStreamReader * xml
Definition: xmlconfigreader.h:59
QString migrate()
Definition: xmlconfigmigration.cpp:56
Main XML config reader class.
Definition: xmlconfigreader.h:33
bool requiresMigration()
Definition: xmlconfigmigration.cpp:44
XMLConfigReader(QObject *parent=nullptr)
Main XML config writer class.
Definition: xmlconfigreader.cpp:41
static const QString xmlName
Definition: globalvariables.h:155
#define WARN()
Definition: logger.h:44
QFile * configFile
Definition: xmlconfigreader.h:61
static const QString xmlName
Definition: globalvariables.h:201
bool hasError()
Definition: xmlconfigreader.cpp:187
const QXmlStreamReader * getXml()
Definition: xmlconfigreader.cpp:196