Move TagType into separate header
So it can be used in different places without creating a dependency loop.
This commit is contained in:
parent
c4d850825a
commit
d17f04864d
|
@ -86,6 +86,7 @@ set(HEADER_FILES
|
||||||
size.h
|
size.h
|
||||||
tag.h
|
tag.h
|
||||||
tagtarget.h
|
tagtarget.h
|
||||||
|
tagtype.h
|
||||||
tagvalue.h
|
tagvalue.h
|
||||||
vorbis/vorbiscomment.h
|
vorbis/vorbiscomment.h
|
||||||
vorbis/vorbiscommentfield.h
|
vorbis/vorbiscommentfield.h
|
||||||
|
|
16
tag.h
16
tag.h
|
@ -2,6 +2,7 @@
|
||||||
#define TAG_PARSER_TAG_H
|
#define TAG_PARSER_TAG_H
|
||||||
|
|
||||||
#include "./tagtarget.h"
|
#include "./tagtarget.h"
|
||||||
|
#include "./tagtype.h"
|
||||||
#include "./tagvalue.h"
|
#include "./tagvalue.h"
|
||||||
|
|
||||||
#include <c++utilities/io/binaryreader.h>
|
#include <c++utilities/io/binaryreader.h>
|
||||||
|
@ -12,21 +13,6 @@
|
||||||
|
|
||||||
namespace TagParser {
|
namespace TagParser {
|
||||||
|
|
||||||
/*!
|
|
||||||
* \brief Specifies the tag type.
|
|
||||||
*
|
|
||||||
* \sa Tag::type()
|
|
||||||
*/
|
|
||||||
enum class TagType : unsigned int {
|
|
||||||
Unspecified = 0x00, /**< The tag type is unspecified. */
|
|
||||||
Id3v1Tag = 0x01, /**< The tag is a TagParser::Id3v1Tag. */
|
|
||||||
Id3v2Tag = 0x02, /**< The tag is a TagParser::Id3v2Tag. */
|
|
||||||
Mp4Tag = 0x04, /**< The tag is a TagParser::Mp4Tag. */
|
|
||||||
MatroskaTag = 0x08, /**< The tag is a TagParser::MatroskaTag. */
|
|
||||||
VorbisComment = 0x10, /**< The tag is a TagParser::VorbisComment. */
|
|
||||||
OggVorbisComment = 0x20 /**< The tag is a TagParser::OggVorbisComment. */
|
|
||||||
};
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Specifies the field.
|
* \brief Specifies the field.
|
||||||
*
|
*
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#ifndef TAG_PARSER_TAG_TYPE_H
|
||||||
|
#define TAG_PARSER_TAG_TYPE_H
|
||||||
|
|
||||||
|
namespace TagParser {
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Specifies the tag type.
|
||||||
|
*
|
||||||
|
* \sa Tag::type()
|
||||||
|
*/
|
||||||
|
enum class TagType : unsigned int {
|
||||||
|
Unspecified = 0x00, /**< The tag type is unspecified. */
|
||||||
|
Id3v1Tag = 0x01, /**< The tag is a TagParser::Id3v1Tag. */
|
||||||
|
Id3v2Tag = 0x02, /**< The tag is a TagParser::Id3v2Tag. */
|
||||||
|
Mp4Tag = 0x04, /**< The tag is a TagParser::Mp4Tag. */
|
||||||
|
MatroskaTag = 0x08, /**< The tag is a TagParser::MatroskaTag. */
|
||||||
|
VorbisComment = 0x10, /**< The tag is a TagParser::VorbisComment. */
|
||||||
|
OggVorbisComment = 0x20 /**< The tag is a TagParser::OggVorbisComment. */
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace TagParser
|
||||||
|
|
||||||
|
#endif // TAG_PARSER_TAG_TYPE_H
|
Loading…
Reference in New Issue