TagLib 1.6.1 (TagLib: generalencapsulatedobjectframe.h Source File)

generalencapsulatedobjectframe.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     copyright            : (C) 2002 - 2008 by Scott Wheeler
00003     email                : wheeler@kde.org
00004     copyright            : (C) 2006 by Aaron VonderHaar
00005     email                : avh4@users.sourceforge.net
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *   This library is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU Lesser General Public License version   *
00011  *   2.1 as published by the Free Software Foundation.                     *
00012  *                                                                         *
00013  *   This library is distributed in the hope that it will be useful, but   *
00014  *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00016  *   Lesser General Public License for more details.                       *
00017  *                                                                         *
00018  *   You should have received a copy of the GNU Lesser General Public      *
00019  *   License along with this library; if not, write to the Free Software   *
00020  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00021  *   USA                                                                   *
00022  *                                                                         *
00023  *   Alternatively, this file is available under the Mozilla Public        *
00024  *   License Version 1.1.  You may obtain a copy of the License at         *
00025  *   http://www.mozilla.org/MPL/                                           *
00026  ***************************************************************************/
00027 
00028 #ifndef TAGLIB_GENERALENCAPSULATEDOBJECT_H
00029 #define TAGLIB_GENERALENCAPSULATEDOBJECT_H
00030 
00031 #include "id3v2frame.h"
00032 #include "id3v2header.h"
00033 #include "taglib_export.h"
00034 
00035 namespace TagLib {
00036 
00037   namespace ID3v2 {
00038 
00040 
00050     class TAGLIB_EXPORT GeneralEncapsulatedObjectFrame : public Frame
00051     {
00052       friend class FrameFactory;
00053 
00054     public:
00055 
00060       GeneralEncapsulatedObjectFrame();
00061 
00069       explicit GeneralEncapsulatedObjectFrame(const ByteVector &data);
00070 
00074       virtual ~GeneralEncapsulatedObjectFrame();
00075 
00079       virtual String toString() const;
00080 
00088       String::Type textEncoding() const;
00089 
00096       void setTextEncoding(String::Type encoding);
00097 
00101       String mimeType() const;
00102 
00106       void setMimeType(const String &type);
00107 
00113       String fileName() const;
00114 
00120       void setFileName(const String &name);
00121 
00130       String description() const;
00131 
00140       void setDescription(const String &desc);
00141 
00151       ByteVector object() const;
00152 
00161       void setObject(const ByteVector &object);
00162 
00163     protected:
00164       virtual void parseFields(const ByteVector &data);
00165       virtual ByteVector renderFields() const;
00166 
00167     private:
00168       GeneralEncapsulatedObjectFrame(const ByteVector &data, Header *h);
00169       GeneralEncapsulatedObjectFrame(const GeneralEncapsulatedObjectFrame &);
00170       GeneralEncapsulatedObjectFrame &operator=(const GeneralEncapsulatedObjectFrame &);
00171 
00172       class GeneralEncapsulatedObjectFramePrivate;
00173       GeneralEncapsulatedObjectFramePrivate *d;
00174     };
00175   }
00176 }
00177 
00178 #endif