comparison data/fileio/OggVorbisFileReader.h @ 333:1afaf98dbf11

* Factor out uses of "Sonic Visualiser" in "common" code to applicationName() * Add ability to show work title + artist in top-left of pane (thinking of Vect but may be useful in SV in future) * A few other generalisations useful for Vect
author Chris Cannam
date Fri, 09 Nov 2007 17:46:58 +0000
parents c324d410b096
children 700cd3350391
comparison
equal deleted inserted replaced
332:13e5870040e6 333:1afaf98dbf11
44 virtual ~OggVorbisFileReader(); 44 virtual ~OggVorbisFileReader();
45 45
46 virtual QString getError() const { return m_error; } 46 virtual QString getError() const { return m_error; }
47 47
48 virtual QString getTitle() const { return m_title; } 48 virtual QString getTitle() const { return m_title; }
49 virtual QString getMaker() const { return m_maker; }
49 50
50 static void getSupportedExtensions(std::set<QString> &extensions); 51 static void getSupportedExtensions(std::set<QString> &extensions);
51 static bool supportsExtension(QString ext); 52 static bool supportsExtension(QString ext);
52 static bool supportsContentType(QString type); 53 static bool supportsContentType(QString type);
53 static bool supports(FileSource &source); 54 static bool supports(FileSource &source);
61 protected: 62 protected:
62 FileSource m_source; 63 FileSource m_source;
63 QString m_path; 64 QString m_path;
64 QString m_error; 65 QString m_error;
65 QString m_title; 66 QString m_title;
67 QString m_maker;
66 68
67 OGGZ *m_oggz; 69 OGGZ *m_oggz;
68 FishSound *m_fishSound; 70 FishSound *m_fishSound;
69 QProgressDialog *m_progress; 71 QProgressDialog *m_progress;
70 size_t m_fileSize; 72 size_t m_fileSize;