2022-04-06 14:30:57 +02:00
|
|
|
#ifndef UNIVERSALFUNCTIONS_H
|
|
|
|
|
#define UNIVERSALFUNCTIONS_H
|
|
|
|
|
|
|
|
|
|
#include <QJsonObject>
|
|
|
|
|
|
|
|
|
|
QJsonObject readJsonFile(const QString title);
|
|
|
|
|
void saveJsonFile(QJsonObject &users, const QString name);
|
|
|
|
|
void outputMessageBox(const QString messageBoxText);
|
|
|
|
|
void exit();
|
2022-04-06 16:31:31 +02:00
|
|
|
bool stringEmpty(const QString &string, const QString &messageBoxMessage);
|
2022-04-06 19:44:14 +02:00
|
|
|
bool idExists(const QString &id, const QJsonObject &json, const QString &message, const bool &whenMessage);
|
|
|
|
|
bool sameString(const QString &stringToCompare, const QString &jsonId, const QJsonObject &json, const QString &message);
|
2022-04-06 14:30:57 +02:00
|
|
|
|
|
|
|
|
#endif // UNIVERSALFUNCTIONS_H
|