Add initial project structure with essential files including .gitignore, application resources, and various model and view components for the application. Implemented asynchronous parsing support and database structure checks.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#ifndef TITLEINSCRIPTIONSMODEL_H
|
||||
#define TITLEINSCRIPTIONSMODEL_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
#include <QDebug>
|
||||
|
||||
class TitleInscriptionsModel : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit TitleInscriptionsModel(QObject *parent = nullptr);
|
||||
|
||||
// Методы для работы с данными
|
||||
void setInscriptionValue(int fieldNumber, const QString &value);
|
||||
QString getInscriptionValue(int fieldNumber) const;
|
||||
QMap<int, QString> getAllInscriptions() const;
|
||||
void setAllInscriptions(const QMap<int, QString> &inscriptions);
|
||||
|
||||
// Методы для очистки данных
|
||||
void clear();
|
||||
void clearField(int fieldNumber);
|
||||
|
||||
// Методы для проверки состояния
|
||||
bool hasData() const;
|
||||
bool hasField(int fieldNumber) const;
|
||||
int getFieldCount() const;
|
||||
|
||||
signals:
|
||||
// Сигналы для уведомления об изменениях данных
|
||||
void dataChanged();
|
||||
void inscriptionChanged(int fieldNumber, const QString &value);
|
||||
|
||||
private:
|
||||
QMap<int, QString> m_inscriptions;
|
||||
};
|
||||
|
||||
#endif // TITLEINSCRIPTIONSMODEL_H
|
||||
Reference in New Issue
Block a user