mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 20:23:04 +02:00
15 lines
591 B
C
15 lines
591 B
C
#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();
|
|
bool stringEmpty(const QString &string, const QString &messageBoxMessage);
|
|
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);
|
|
|
|
#endif // UNIVERSALFUNCTIONS_H
|