tdebuglistener.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2013 by Tsuda Kageyu
email : tsuda.kageyu@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_DEBUGLISTENER_H
#define TAGLIB_DEBUGLISTENER_H
#include "tstring.h"
#include "taglib_export.h"
namespace TagLib
{
class TAGLIB_EXPORT DebugListener
{
public:
DebugListener();
virtual ~DebugListener();
DebugListener(const DebugListener &) = delete;
DebugListener &operator=(const DebugListener &) = delete;
virtual void printMessage(const String &msg) = 0;
private:
class DebugListenerPrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<DebugListenerPrivate> d;
};
TAGLIB_EXPORT void setDebugListener(DebugListener *listener);
} // namespace TagLib
#endif
TagLib::DebugListener
An abstraction for the listener to the debug messages.
Definition tdebuglistener.h:44
TagLib::DebugListener::printMessage
virtual void printMessage(const String &msg)=0
TagLib::DebugListener::DebugListener
DebugListener()
TagLib::DebugListener::DebugListener
DebugListener(const DebugListener &)=delete
TagLib::DebugListener::~DebugListener
virtual ~DebugListener()
TagLib::DebugListener::operator=
DebugListener & operator=(const DebugListener &)=delete
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
TagLib::setDebugListener
TAGLIB_EXPORT void setDebugListener(DebugListener *listener)
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
tstring.h