oggfile.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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 bool 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