mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 17:50:37 +02:00
42 lines
759 B
C++
42 lines
759 B
C++
#ifndef DATAPROCESSOR_H
|
|
#define DATAPROCESSOR_H
|
|
|
|
#include "token.h"
|
|
#include "subject.h"
|
|
#include "requestmanager.h"
|
|
#include "databasemanager.h"
|
|
#include <QJsonDocument>
|
|
#include <qjsonarray.h>
|
|
|
|
|
|
|
|
class DataProcessor : public QObject
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DataProcessor();
|
|
|
|
void processSubjects();
|
|
|
|
Subject *getSubjectById(const QUuid &id) const;
|
|
Subject *getSubjectByEmail(const QString &email) const;
|
|
QUuid getSubjectId(const QString &email) const;
|
|
|
|
Token *getTokenById(const QUuid &id) const;
|
|
Token *getTokenByData(const QString &data) const;
|
|
|
|
private slots:
|
|
void prepareSubjectJson(QString json);
|
|
|
|
private:
|
|
RequestManager *reqMan;
|
|
DatabaseManager *db;
|
|
QJsonArray subjectArr;
|
|
|
|
|
|
};
|
|
|
|
#endif // DATAPROCESSOR_H
|