Phonon
23#include "iodevicestream_p.h"
24#include "abstractmediastream_p.h"
28#ifndef QT_NO_PHONON_ABSTRACTMEDIASTREAM
33class IODeviceStreamPrivate :
public AbstractMediaStreamPrivate
35 P_DECLARE_PUBLIC(IODeviceStream)
37 IODeviceStreamPrivate(QIODevice *_ioDevice)
40 if (!ioDevice->isOpen()) {
41 ioDevice->open(QIODevice::ReadOnly);
43 Q_ASSERT(ioDevice->isOpen());
44 Q_ASSERT(ioDevice->isReadable());
45 streamSize = ioDevice->size();
46 streamSeekable = !ioDevice->isSequential();
53IODeviceStream::IODeviceStream(QIODevice *ioDevice, QObject *parent)
60IODeviceStream::~IODeviceStream()
64void IODeviceStream::reset()
70void IODeviceStream::needData()
74 const QByteArray data = d->ioDevice->read(size);
76 if (d->ioDevice->atEnd()) {
81void IODeviceStream::seekStream(qint64 offset)
84 d->ioDevice->seek(offset);
91#include "moc_iodevicestream_p.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:05 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.