Use namespace for static taglib to avoid collision with taglib

linked to vlc
This commit is contained in:
Jonas Kvinge
2019-04-25 23:00:25 +02:00
parent ace8ecbb4e
commit 1c926cca45
227 changed files with 460 additions and 447 deletions

View File

@@ -29,7 +29,7 @@
#include <tstring.h>
#include "mp4atom.h"
using namespace TagLib;
using namespace Strawberry_TagLib::TagLib;
const char *MP4::Atom::containers[11] = {
"moov", "udta", "mdia", "meta", "ilst",

View File

@@ -33,12 +33,12 @@
#include "tfile.h"
#include "tlist.h"
namespace TagLib {
namespace Strawberry_TagLib::TagLib {
namespace MP4 {
class Atom;
typedef TagLib::List<Atom *> AtomList;
typedef Strawberry_TagLib::TagLib::List<Atom *> AtomList;
enum AtomDataType
{
@@ -72,7 +72,7 @@ namespace TagLib {
ByteVector data;
};
typedef TagLib::List<AtomData> AtomDataList;
typedef Strawberry_TagLib::TagLib::List<AtomData> AtomDataList;
class Atom
{
@@ -84,7 +84,7 @@ namespace TagLib {
AtomList findall(const char *name, bool recursive = false);
long offset;
long length;
TagLib::ByteVector name;
Strawberry_TagLib::TagLib::ByteVector name;
AtomList children;
private:
static const int numContainers = 11;

View File

@@ -28,7 +28,7 @@
#include "trefcounter.h"
#include "mp4coverart.h"
using namespace TagLib;
using namespace Strawberry_TagLib::TagLib;
class MP4::CoverArt::CoverArtPrivate : public RefCounter
{

View File

@@ -31,7 +31,7 @@
#include "taglib_export.h"
#include "mp4atom.h"
namespace TagLib {
namespace Strawberry_TagLib::TagLib {
namespace MP4 {

View File

@@ -32,7 +32,7 @@
#include "mp4tag.h"
#include "mp4file.h"
using namespace TagLib;
using namespace Strawberry_TagLib::TagLib;
namespace
{
@@ -88,7 +88,7 @@ bool MP4::File::isSupported(IOStream *stream)
////////////////////////////////////////////////////////////////////////////////
MP4::File::File(FileName file, bool readProperties, AudioProperties::ReadStyle) :
TagLib::File(file),
Strawberry_TagLib::TagLib::File(file),
d(new FilePrivate())
{
if(isOpen())
@@ -96,7 +96,7 @@ MP4::File::File(FileName file, bool readProperties, AudioProperties::ReadStyle)
}
MP4::File::File(IOStream *stream, bool readProperties, AudioProperties::ReadStyle) :
TagLib::File(stream),
Strawberry_TagLib::TagLib::File(stream),
d(new FilePrivate())
{
if(isOpen())

View File

@@ -32,7 +32,7 @@
#include "mp4properties.h"
#include "mp4tag.h"
namespace TagLib {
namespace Strawberry_TagLib::TagLib {
//! An implementation of MP4 (AAC, ALAC, ...) metadata
namespace MP4 {
@@ -41,11 +41,11 @@ namespace TagLib {
/*!
* This implements and provides an interface for MP4 files to the
* TagLib::Tag and TagLib::AudioProperties interfaces by way of implementing
* the abstract TagLib::File API as well as providing some additional
* Strawberry_TagLib::TagLib::Tag and Strawberry_TagLib::TagLib::AudioProperties interfaces by way of implementing
* the abstract Strawberry_TagLib::TagLib::File API as well as providing some additional
* information specific to MP4 files.
*/
class TAGLIB_EXPORT File : public TagLib::File
class TAGLIB_EXPORT File : public Strawberry_TagLib::TagLib::File
{
public:
/*!
@@ -78,7 +78,7 @@ namespace TagLib {
* Returns a pointer to the MP4 tag of the file.
*
* MP4::Tag implements the tag interface, so this serves as the
* reimplementation of TagLib::File::tag().
* reimplementation of Strawberry_TagLib::TagLib::File::tag().
*
* \note The Tag <b>is still</b> owned by the MP4::File and should not be
* deleted by the user. It will be deleted when the file (object) is

View File

@@ -28,7 +28,7 @@
#include "trefcounter.h"
#include "mp4item.h"
using namespace TagLib;
using namespace Strawberry_TagLib::TagLib;
class MP4::Item::ItemPrivate : public RefCounter
{

View File

@@ -30,7 +30,7 @@
#include "mp4coverart.h"
#include "taglib_export.h"
namespace TagLib {
namespace Strawberry_TagLib::TagLib {
namespace MP4 {

View File

@@ -29,7 +29,7 @@
#include "mp4atom.h"
#include "mp4properties.h"
using namespace TagLib;
using namespace Strawberry_TagLib::TagLib;
class MP4::Properties::PropertiesPrivate
{

View File

@@ -29,7 +29,7 @@
#include "taglib_export.h"
#include "audioproperties.h"
namespace TagLib {
namespace Strawberry_TagLib::TagLib {
namespace MP4 {

View File

@@ -30,7 +30,7 @@
#include "mp4tag.h"
#include "id3v1genres.h"
using namespace TagLib;
using namespace Strawberry_TagLib::TagLib;
class MP4::Tag::TagPrivate
{
@@ -39,7 +39,7 @@ public:
file(0),
atoms(0) {}
TagLib::File *file;
Strawberry_TagLib::TagLib::File *file;
Atoms *atoms;
ItemMap items;
};
@@ -49,7 +49,7 @@ MP4::Tag::Tag() :
{
}
MP4::Tag::Tag(TagLib::File *file, MP4::Atoms *atoms) :
MP4::Tag::Tag(Strawberry_TagLib::TagLib::File *file, MP4::Atoms *atoms) :
d(new TagPrivate())
{
d->file = file;

View File

@@ -35,21 +35,21 @@
#include "mp4atom.h"
#include "mp4item.h"
namespace TagLib {
namespace Strawberry_TagLib::TagLib {
namespace MP4 {
/*!
* \deprecated
*/
typedef TagLib::Map<String, Item> ItemListMap;
typedef TagLib::Map<String, Item> ItemMap;
typedef Strawberry_TagLib::TagLib::Map<String, Item> ItemListMap;
typedef Strawberry_TagLib::TagLib::Map<String, Item> ItemMap;
class TAGLIB_EXPORT Tag: public TagLib::Tag
class TAGLIB_EXPORT Tag: public Strawberry_TagLib::TagLib::Tag
{
public:
Tag();
Tag(TagLib::File *file, Atoms *atoms);
Tag(Strawberry_TagLib::TagLib::File *file, Atoms *atoms);
virtual ~Tag();
bool save();