|
|
00001 /*************************************************************************** 00002 copyright : (C) 2006 by Lukáš Lalinský 00003 email : lalinsky@gmail.com 00004 00005 copyright : (C) 2002 - 2008 by Scott Wheeler 00006 email : wheeler@kde.org 00007 (original Vorbis implementation) 00008 ***************************************************************************/ 00009 00010 /*************************************************************************** 00011 * This library is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU Lesser General Public License version * 00013 * 2.1 as published by the Free Software Foundation. * 00014 * * 00015 * This library is distributed in the hope that it will be useful, but * 00016 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00018 * Lesser General Public License for more details. * 00019 * * 00020 * You should have received a copy of the GNU Lesser General Public * 00021 * License along with this library; if not, write to the Free Software * 00022 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 00023 * 02110-1301 USA * 00024 * * 00025 * Alternatively, this file is available under the Mozilla Public * 00026 * License Version 1.1. You may obtain a copy of the License at * 00027 * http://www.mozilla.org/MPL/ * 00028 ***************************************************************************/ 00029 00030 #ifndef TAGLIB_SPEEXFILE_H 00031 #define TAGLIB_SPEEXFILE_H 00032 00033 #include "oggfile.h" 00034 #include "xiphcomment.h" 00035 00036 #include "speexproperties.h" 00037 00038 namespace TagLib { 00039 00040 namespace Ogg { 00041 00043 00044 namespace Speex { 00045 00047 00055 class TAGLIB_EXPORT File : public Ogg::File 00056 { 00057 public: 00064 File(FileName file, bool readProperties = true, 00065 Properties::ReadStyle propertiesStyle = Properties::Average); 00066 00076 File(IOStream *stream, bool readProperties = true, 00077 Properties::ReadStyle propertiesStyle = Properties::Average); 00078 00082 virtual ~File(); 00083 00089 virtual Ogg::XiphComment *tag() const; 00090 00095 PropertyMap properties() const; 00096 00101 PropertyMap setProperties(const PropertyMap &); 00102 00107 virtual Properties *audioProperties() const; 00108 00109 00110 00111 virtual bool save(); 00112 00113 private: 00114 File(const File &); 00115 File &operator=(const File &); 00116 00117 void read(bool readProperties, Properties::ReadStyle propertiesStyle); 00118 00119 class FilePrivate; 00120 FilePrivate *d; 00121 }; 00122 } 00123 } 00124 } 00125 00126 #endif