setup electron app with boilerplate

This commit is contained in:
talksik
2026-02-19 19:41:26 -08:00
parent fc6a5e43db
commit 1f249c47a6
5174 changed files with 8743 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef PARTICLELISTMODEL_H
#define PARTICLELISTMODEL_H
#include <QAbstractListModel>
#include "store.h"
class ParticleListModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit ParticleListModel(Store *store, QObject *parent = nullptr);
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
void setStreamId(const QString &streamId);
int firstUnseenRow() const; // Returns -1 if none unseen
const Particle* particleAtRow(int row) const;
private:
Store *m_store;
QString m_currentStreamId;
};
#endif // PARTICLELISTMODEL_H