Mercurial > hg > svcore
diff data/fileio/AudioFileReader.h @ 290:92e8dbde73cd
* Revert revision 713. We do like QStrings after all.
author | Chris Cannam |
---|---|
date | Fri, 24 Aug 2007 11:41:48 +0000 |
parents | 20028c634494 |
children | c022976d18e8 |
line wrap: on
line diff
--- a/data/fileio/AudioFileReader.h Thu Aug 16 16:47:07 2007 +0000 +++ b/data/fileio/AudioFileReader.h Fri Aug 24 11:41:48 2007 +0000 @@ -16,10 +16,8 @@ #ifndef _AUDIO_FILE_READER_H_ #define _AUDIO_FILE_READER_H_ -#include <QObject> - -#include <string> -#include <vector> +#include <QString> +#include "model/Model.h" // for SampleBlock class AudioFileReader : public QObject { @@ -28,11 +26,9 @@ public: virtual ~AudioFileReader() { } - typedef std::vector<float> SampleBlock; - bool isOK() const { return (m_channelCount > 0); } - virtual std::string getError() const { return m_error; } + virtual QString getError() const { return ""; } size_t getFrameCount() const { return m_frameCount; } size_t getChannelCount() const { return m_channelCount; } @@ -43,7 +39,7 @@ * may be implemented by subclasses that support file tagging. * This is not the same thing as the file name. */ - virtual std::string getTitle() const { return ""; } + virtual QString getTitle() const { return ""; } /** * The subclass implementations of this function must be @@ -66,10 +62,6 @@ size_t m_frameCount; size_t m_channelCount; size_t m_sampleRate; - - std::string m_error; - void setError(std::string text, std::string arg = ""); - void setError(std::string text, int arg); }; #endif