refactor(tree): give the logic layer and the shell a folder each

src/ and include/ are what is left: the controller the screens delegate
to, its workers and its data model (core/), and the window and entry
point that hold them together (app/). With those moved, src/ and
include/ are empty and go away — a header is now always next to its
source, in a folder named after what it does.
This commit is contained in:
BlackAngelTV committed 2026-09-29 21:26:04 +02:00
1 parent c63b231778
commit 5a6aaae244
10 files changed
+22 -22

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
#pragma once
#include <QObject>
#include <QAbstractListModel>
#include <QVariant>
#include <vector>
#include "package-manager.h"
class PackageModel : public QAbstractListModel {
Q_OBJECT
public:
enum Roles {
NameRole = Qt::UserRole + 1,
VersionRole,
DescriptionRole,
RepositoryRole,
InstalledRole,
SizeRole,
UpdateAvailableRole
};
explicit PackageModel(QObject* parent = nullptr);
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
QHash<int, QByteArray> roleNames() const override;
void setPackages(const std::vector<PackageInfo>& packages);
void clear();
PackageInfo getPackage(int row) const;
private:
std::vector<PackageInfo> m_packages;
};