summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/soundformat.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/soundformat.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/soundformat.h')
-rw-r--r--kradio3/src/include/soundformat.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/kradio3/src/include/soundformat.h b/kradio3/src/include/soundformat.h
index 0c7a384..ea11f09 100644
--- a/kradio3/src/include/soundformat.h
+++ b/kradio3/src/include/soundformat.h
@@ -23,7 +23,7 @@
#endif
#include <endian.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kconfig.h>
struct SoundFormat {
@@ -32,9 +32,9 @@ struct SoundFormat {
unsigned m_SampleBits;
bool m_IsSigned;
unsigned m_Endianess;
- QString m_Encoding; // "raw", "mp3", ... (no "wav", because it's only header + raw data)
+ TQString m_Encoding; // "raw", "mp3", ... (no "wav", because it's only header + raw data)
- SoundFormat(unsigned sample_rate, unsigned channels, unsigned sample_bits, bool is_signed, unsigned endianess, const QString &enc)
+ SoundFormat(unsigned sample_rate, unsigned channels, unsigned sample_bits, bool is_signed, unsigned endianess, const TQString &enc)
: m_SampleRate(sample_rate), m_Channels(channels), m_SampleBits(sample_bits), m_IsSigned(is_signed), m_Endianess(endianess), m_Encoding(enc) {}
SoundFormat(unsigned sample_rate, unsigned channels, unsigned sample_bits, bool is_signed, unsigned endianess)
: m_SampleRate(sample_rate), m_Channels(channels), m_SampleBits(sample_bits), m_IsSigned(is_signed), m_Endianess(endianess), m_Encoding("raw") {}
@@ -60,8 +60,8 @@ struct SoundFormat {
int minValue() const;
int maxValue() const;
- void restoreConfig(const QString &prefix, KConfig *c);
- void saveConfig(const QString &prefix, KConfig *c) const;
+ void restoreConfig(const TQString &prefix, KConfig *c);
+ void saveConfig(const TQString &prefix, KConfig *c) const;
int convertSampleToInt(const char *sample, bool do_scale) const;
void convertIntToSample(int src, char *dst, bool is_scaled) const;