//
// Created by 34753 on 2025/6/20.
//
#ifndef DATASTORAGE_H
#define DATASTORAGE_H
#include <QObject>
#include <QList>
#include "core/student.h"
class DataStorage : public QObject
{
Q_OBJECT
public:
explicit DataStorage(QObject *parent = nullptr);
~DataStorage() override = default; // 添加虚析构函数
virtual QList<Student*> loadStudents() = 0;
virtual bool saveStudents(const QList<Student*> &students) = 0;
};
#endif //DATASTORAGE_H