summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/fileringbuffer.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
commit70b9eea2ba01c3691497f49e4c45cb070c16193c (patch)
tree9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/src/include/fileringbuffer.h
parent998c1384ace4ae4655997c181fa33242148cd0a4 (diff)
downloadtderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.tar.gz
tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.zip
TQt4 port kradio
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1238952 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/src/include/fileringbuffer.h')
-rw-r--r--kradio3/src/include/fileringbuffer.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/kradio3/src/include/fileringbuffer.h b/kradio3/src/include/fileringbuffer.h
index 3447277..2978bec 100644
--- a/kradio3/src/include/fileringbuffer.h
+++ b/kradio3/src/include/fileringbuffer.h
@@ -22,49 +22,49 @@
#include <config.h>
#endif
-#include <qstring.h>
+#include <tqstring.h>
#include <stdio.h>
class FileRingBuffer
{
public:
- FileRingBuffer(const QString &filename, Q_UINT64 max_size);
+ FileRingBuffer(const TQString &filename, TQ_UINT64 max_size);
~FileRingBuffer();
- bool resize(const QString &filename, Q_UINT64 new_max_size);
+ bool resize(const TQString &filename, TQ_UINT64 new_max_size);
size_t addData (const char *src, size_t size);
size_t takeData(char *dst, size_t size);
- Q_UINT64 removeData(Q_UINT64 size);
+ TQ_UINT64 removeData(TQ_UINT64 size);
- const QString &getFileName () const { return m_FileName; }
- Q_UINT64 getMaxSize() const { return m_MaxSize; }
- Q_UINT64 getRealSize() const { return m_RealSize; }
- Q_UINT64 getFillSize() const { return m_FillSize; }
- Q_UINT64 getFreeSize() const { return (m_Start + m_FillSize > m_RealSize) ? m_RealSize - m_FillSize : m_MaxSize - m_FillSize; }
+ const TQString &getFileName () const { return m_FileName; }
+ TQ_UINT64 getMaxSize() const { return m_MaxSize; }
+ TQ_UINT64 getRealSize() const { return m_RealSize; }
+ TQ_UINT64 getFillSize() const { return m_FillSize; }
+ TQ_UINT64 getFreeSize() const { return (m_Start + m_FillSize > m_RealSize) ? m_RealSize - m_FillSize : m_MaxSize - m_FillSize; }
void clear();
bool error() const { return m_error; }
- const QString &errorString() const { return m_errorString; }
+ const TQString &errorString() const { return m_errorString; }
protected:
- Q_UINT64 getFreeSpace(Q_UINT64 &size); // returns position in file + size
- Q_UINT64 removeFreeSpace(Q_UINT64 size);
+ TQ_UINT64 getFreeSpace(TQ_UINT64 &size); // returns position in file + size
+ TQ_UINT64 removeFreeSpace(TQ_UINT64 size);
- Q_UINT64 getData(Q_UINT64 &size); // returns position in file + size
+ TQ_UINT64 getData(TQ_UINT64 &size); // returns position in file + size
int m_FileIdx;
- QString m_BaseFileName;
- QString m_FileName;
+ TQString m_BaseFileName;
+ TQString m_FileName;
FILE *m_File;
- Q_UINT64 m_Start;
- Q_UINT64 m_MaxSize;
- Q_UINT64 m_RealSize;
- Q_UINT64 m_FillSize;
+ TQ_UINT64 m_Start;
+ TQ_UINT64 m_MaxSize;
+ TQ_UINT64 m_RealSize;
+ TQ_UINT64 m_FillSize;
- QString m_errorString;
+ TQString m_errorString;
bool m_error;
};