diff options
Diffstat (limited to 'examples/charts/chartsgallery/candlestickdatareader.h')
-rw-r--r-- | examples/charts/chartsgallery/candlestickdatareader.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/charts/chartsgallery/candlestickdatareader.h b/examples/charts/chartsgallery/candlestickdatareader.h new file mode 100644 index 00000000..f7ee316d --- /dev/null +++ b/examples/charts/chartsgallery/candlestickdatareader.h @@ -0,0 +1,25 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef CANDLESTICKDATAREADER_H +#define CANDLESTICKDATAREADER_H + +#include <QTextStream> + +QT_FORWARD_DECLARE_CLASS(QCandlestickSet) + +class CandlestickDataReader +{ +public: + explicit CandlestickDataReader(QIODevice *device); + ~CandlestickDataReader(); + + void readFile(QIODevice *device); + QCandlestickSet *readCandlestickSet(); + bool atEnd() const; + +private: + QTextStream m_textStream; +}; + +#endif |