privateframe.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     copyright            : (C) 2008 by Serkan Kalyoncu
00003     copyright            : (C) 2008 by Scott Wheeler
00004     email                : wheeler@kde.org
00005 ***************************************************************************/
00006 
00007 /***************************************************************************
00008  *   This library is free software; you can redistribute it and/or modify  *
00009  *   it under the terms of the GNU Lesser General Public License version   *
00010  *   2.1 as published by the Free Software Foundation.                     *
00011  *                                                                         *
00012  *   This library is distributed in the hope that it will be useful, but   *
00013  *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00015  *   Lesser General Public License for more details.                       *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU Lesser General Public      *
00018  *   License along with this library; if not, write to the Free Software   *
00019  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00020  *   USA                                                                   *
00021  *                                                                         *
00022  *   Alternatively, this file is available under the Mozilla Public        *
00023  *   License Version 1.1.  You may obtain a copy of the License at         *
00024  *   http://www.mozilla.org/MPL/                                           *
00025  ***************************************************************************/
00026 
00027 #ifndef TAGLIB_PRIVATEFRAME_H
00028 #define TAGLIB_PRIVATEFRAME_H
00029 
00030 #include "id3v2frame.h"
00031 #include "taglib_export.h"
00032 
00033 namespace TagLib {
00034 
00035   namespace ID3v2 {
00036 
00038 
00039     class TAGLIB_EXPORT PrivateFrame : public Frame
00040     {
00041       friend class FrameFactory;
00042 
00043     public:
00047       PrivateFrame();
00048 
00054       explicit PrivateFrame(const ByteVector &data);
00055 
00059       virtual ~PrivateFrame();
00060 
00066       virtual String toString() const;
00067 
00072       String owner() const;
00073 
00077       ByteVector data() const;
00078 
00083       void setOwner(const String &s);
00084 
00088       void setData(const ByteVector &v);
00089 
00090     protected:
00091       // Reimplementations.
00092 
00093       virtual void parseFields(const ByteVector &data);
00094       virtual ByteVector renderFields() const;
00095 
00096     private:
00100       PrivateFrame(const ByteVector &data, Header *h);
00101 
00102       PrivateFrame(const PrivateFrame &);
00103       PrivateFrame &operator=(const PrivateFrame &);
00104 
00105       class PrivateFramePrivate;
00106       PrivateFramePrivate *d;
00107     };
00108 
00109   }
00110 }
00111 #endif