2025-10-02 11:19:14 +02:00
|
|
|
#ifndef GENERICCORE_H
|
|
|
|
|
#define GENERICCORE_H
|
|
|
|
|
|
2025-10-31 14:47:27 +01:00
|
|
|
#include <QObject>
|
|
|
|
|
|
2025-12-06 10:34:44 +01:00
|
|
|
class QUndoStack;
|
2025-12-02 15:59:34 +01:00
|
|
|
class QAbstractItemModel;
|
2025-10-02 16:22:47 +02:00
|
|
|
class QString;
|
|
|
|
|
|
2025-12-02 15:59:34 +01:00
|
|
|
class TableModel;
|
|
|
|
|
|
2025-10-31 14:47:27 +01:00
|
|
|
class GenericCore : public QObject {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
2025-10-02 16:22:01 +02:00
|
|
|
public:
|
|
|
|
|
GenericCore();
|
|
|
|
|
~GenericCore();
|
2025-10-02 13:42:13 +02:00
|
|
|
|
2025-10-02 16:22:47 +02:00
|
|
|
QString toString() const;
|
2025-10-02 16:22:01 +02:00
|
|
|
void sayHello() const;
|
2025-10-31 14:47:27 +01:00
|
|
|
|
|
|
|
|
bool isApplicationUpdateAvailable();
|
|
|
|
|
void triggerApplicationUpdate();
|
|
|
|
|
|
2025-12-11 15:46:28 +01:00
|
|
|
QUndoStack* getModelUndoStack() const;
|
2025-12-08 13:25:02 +01:00
|
|
|
std::shared_ptr<TableModel> getModel() const;
|
2025-12-02 15:59:34 +01:00
|
|
|
|
2025-12-23 10:14:13 +01:00
|
|
|
void saveItems();
|
|
|
|
|
|
2025-10-31 14:47:27 +01:00
|
|
|
signals:
|
|
|
|
|
void displayStatusMessage(QString message);
|
|
|
|
|
|
|
|
|
|
private:
|
2025-12-11 15:46:28 +01:00
|
|
|
QUndoStack* m_modelUndoStack;
|
2025-12-02 15:59:34 +01:00
|
|
|
std::shared_ptr<TableModel> m_mainModel;
|
|
|
|
|
|
|
|
|
|
void setupModels();
|
|
|
|
|
|
2025-10-31 14:47:27 +01:00
|
|
|
QString getMaintenanceToolFilePath() const;
|
2025-10-02 11:19:14 +02:00
|
|
|
};
|
|
|
|
|
|
2025-10-02 16:22:01 +02:00
|
|
|
#endif // GENERICCORE_H
|