popularimeterframe.h
Go to the documentation of this file.
/***************************************************************************
*
copyright : (C) 2008 by Lukas Lalinsky
email : lalinsky@gmail.com
***************************************************************************/
/***************************************************************************
* This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License version *
* 2.1 as published by the Free Software Foundation. *
* *
* This library is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301 USA *
* *
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifndef TAGLIB_POPULARIMETERFRAME_H
#define TAGLIB_POPULARIMETERFRAME_H
#include "taglib_export.h"
#include "id3v2frame.h"
namespace TagLib {
namespace ID3v2 {
class TAGLIB_EXPORT PopularimeterFrame : public Frame
{
friend class FrameFactory;
public:
explicit PopularimeterFrame();
explicit PopularimeterFrame(const ByteVector &data);
~PopularimeterFrame() override;
PopularimeterFrame(const PopularimeterFrame &) = delete;
PopularimeterFrame &operator=(const PopularimeterFrame &) = delete;
String toString() const override;
StringList toStringList() const override;
String email() const;
void setEmail(const String &s);
int rating() const;
void setRating(int s);
unsigned int counter() const;
void setCounter(unsigned int s);
protected:
// Reimplementations.
void parseFields(const ByteVector &data) override;
ByteVector renderFields() const override;
private:
PopularimeterFrame(const ByteVector &data, Header *h);
class PopularimeterFramePrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<PopularimeterFramePrivate> d;
};
} // namespace ID3v2
} // namespace TagLib
#endif
TagLib::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::ID3v2::Frame::Header
ID3v2 frame header implementation.
Definition id3v2frame.h:293
TagLib::ID3v2::Frame::Frame
Frame(const Frame &)=delete
TagLib::ID3v2::PopularimeterFrame::setCounter
void setCounter(unsigned int s)
TagLib::ID3v2::PopularimeterFrame::PopularimeterFrame
PopularimeterFrame(const PopularimeterFrame &)=delete
TagLib::ID3v2::PopularimeterFrame::setRating
void setRating(int s)
TagLib::ID3v2::PopularimeterFrame::toString
String toString() const override
TagLib::ID3v2::PopularimeterFrame::rating
int rating() const
TagLib::ID3v2::PopularimeterFrame::toStringList
StringList toStringList() const override
TagLib::ID3v2::PopularimeterFrame::PopularimeterFrame
PopularimeterFrame(const ByteVector &data)
TagLib::ID3v2::PopularimeterFrame::counter
unsigned int counter() const
TagLib::ID3v2::PopularimeterFrame::FrameFactory
friend class FrameFactory
Definition popularimeterframe.h:46
TagLib::ID3v2::PopularimeterFrame::operator=
PopularimeterFrame & operator=(const PopularimeterFrame &)=delete
TagLib::ID3v2::PopularimeterFrame::PopularimeterFrame
PopularimeterFrame()
TagLib::ID3v2::PopularimeterFrame::renderFields
ByteVector renderFields() const override
TagLib::ID3v2::PopularimeterFrame::parseFields
void parseFields(const ByteVector &data) override
TagLib::ID3v2::PopularimeterFrame::email
String email() const
TagLib::ID3v2::PopularimeterFrame::~PopularimeterFrame
~PopularimeterFrame() override
TagLib::ID3v2::PopularimeterFrame::setEmail
void setEmail(const String &s)
TagLib::StringList
A list of strings.
Definition tstringlist.h:44
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
id3v2frame.h
TagLib::ID3v2
An ID3v2 implementation.
Definition flacfile.h:39
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition taglib_export.h:40
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55