summaryrefslogtreecommitdiff
path: root/qicclient/catalog.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'qicclient/catalog.hxx')
-rw-r--r--qicclient/catalog.hxx34
1 files changed, 0 insertions, 34 deletions
diff --git a/qicclient/catalog.hxx b/qicclient/catalog.hxx
deleted file mode 100644
index 2c7274c..0000000
--- a/qicclient/catalog.hxx
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef QICCLIENT_CATALOG_HXX
-#define QICCLIENT_CATALOG_HXX
-
-#include <QAbstractListModel>
-#include "product.hxx"
-
-struct icclient_catalog;
-
-namespace QICClient {
-
- class Catalog : public QAbstractListModel
- {
- Q_OBJECT
-
- public:
- Catalog(QObject* parent = nullptr) : QAbstractListModel{parent} {}
- Catalog(struct icclient_catalog* catalog, QObject* parent = nullptr);
- ~Catalog();
- int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE;
- QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
- struct icclient_catalog const* constData() const { return m_data; }
-
- protected:
- QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
-
- private:
- void addProduct(Product const& product);
- QList<Product> products;
- struct icclient_catalog* m_data;
- };
-
-}
-
-#endif