Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

oggfile.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 copyright : (C) 2003 by Scott Wheeler 00003 email : wheeler@kde.org 00004 ***************************************************************************/ 00005 00006 /*************************************************************************** 00007 * This library is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU Lesser General Public License version * 00009 * 2.1 as published by the Free Software Foundation. * 00010 * * 00011 * This library is distributed in the hope that it will be useful, but * 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00014 * Lesser General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Lesser General Public * 00017 * License along with this library; if not, write to the Free Software * 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * 00019 * USA * 00020 ***************************************************************************/ 00021 00022 #include <tfile.h> 00023 #include <tbytevectorlist.h> 00024 00025 #ifndef TAGLIB_OGGFILE_H 00026 #define TAGLIB_OGGFILE_H 00027 00028 namespace TagLib { 00029 00031 00032 namespace Ogg { 00033 00034 class PageHeader; 00035 00037 00045 class File : public TagLib::File 00046 { 00047 public: 00048 virtual ~File(); 00049 00057 ByteVector packet(uint i); 00058 00062 void setPacket(uint i, const ByteVector &p); 00063 00068 const PageHeader *firstPageHeader(); 00069 00074 const PageHeader *lastPageHeader(); 00075 00076 virtual void save(); 00077 00078 protected: 00088 File(const char *file); 00089 00090 private: 00091 File(const File &); 00092 File &operator=(const File &); 00093 00097 bool nextPage(); 00098 void writePageGroup(const List<int> &group); 00099 00100 class FilePrivate; 00101 FilePrivate *d; 00102 }; 00103 00104 } 00105 } 00106 00107 #endif

Generated on Wed Jul 28 16:43:07 2004 for TagLib by doxygen 1.3.7