/* * Copyright 2016-2017 gtalent2@gmail.com * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include #include #include namespace nostalgia { namespace studio { class OxFSFile { private: QList m_childItems; QList m_itemData; OxFSFile *m_parentItem; public: explicit OxFSFile(const QList &data, OxFSFile *parentItem = 0); ~OxFSFile(); void appendChild(OxFSFile *child); OxFSFile *child(int row); int childCount() const; int columnCount() const; QVariant data(int column) const; int row() const; OxFSFile *parentItem(); }; } }