18 #ifndef _KRADIO_FILE_RING_BUFFER_H 19 #define _KRADIO_FILE_RING_BUFFER_H 25 #include <kdemacros.h> 26 #include <QtCore/QString> 35 bool resize(
const QString &filename, quint64 new_max_size);
37 size_t addData (
const char *src,
size_t size);
38 size_t takeData(
char *dst,
size_t size);
39 quint64 removeData(quint64 size);
45 quint64
getFreeSize()
const {
return (m_Start + m_FillSize > m_RealSize) ? m_RealSize - m_FillSize : m_MaxSize - m_FillSize; }
49 bool error()
const {
return m_error; }
53 quint64 getFreeSpace(quint64 &size);
54 quint64 removeFreeSpace(quint64 size);
56 quint64 getData(quint64 &size);
quint64 getFillSize() const
const QString & getFileName() const
const QString & errorString() const
quint64 getMaxSize() const
quint64 getRealSize() const
quint64 getFreeSize() const