const ID3v2::Header *tagHeader;
ByteVector elementID;
- uint startTime;
- uint endTime;
- uint startOffset;
- uint endOffset;
+ TagLib::uint startTime;
+ TagLib::uint endTime;
+ TagLib::uint startOffset;
+ TagLib::uint endOffset;
FrameListMap embeddedFrameListMap;
FrameList embeddedFrameList;
};
setData(data);
}
-ChapterFrame::ChapterFrame(const ByteVector &eID, const uint &sT, const uint &eT,
- const uint &sO, const uint &eO, const FrameList &eF) :
+ChapterFrame::ChapterFrame(const ByteVector &eID, const TagLib::uint &sT, const TagLib::uint &eT,
+ const TagLib::uint &sO, const TagLib::uint &eO, const FrameList &eF) :
ID3v2::Frame("CHAP")
{
d = new ChapterFramePrivate;
return d->elementID;
}
-uint ChapterFrame::startTime() const
+TagLib::uint ChapterFrame::startTime() const
{
return d->startTime;
}
-uint ChapterFrame::endTime() const
+TagLib::uint ChapterFrame::endTime() const
{
return d->endTime;
}
-uint ChapterFrame::startOffset() const
+TagLib::uint ChapterFrame::startOffset() const
{
return d->startOffset;
}
-uint ChapterFrame::endOffset() const
+TagLib::uint ChapterFrame::endOffset() const
{
return d->endOffset;
}
d->elementID.append(char(0));
}
-void ChapterFrame::setStartTime(const uint &sT)
+void ChapterFrame::setStartTime(const TagLib::uint &sT)
{
d->startTime = sT;
}
-void ChapterFrame::setEndTime(const uint &eT)
+void ChapterFrame::setEndTime(const TagLib::uint &eT)
{
d->endTime = eT;
}
-void ChapterFrame::setStartOffset(const uint &sO)
+void ChapterFrame::setStartOffset(const TagLib::uint &sO)
{
d->startOffset = sO;
}
-void ChapterFrame::setEndOffset(const uint &eO)
+void ChapterFrame::setEndOffset(const TagLib::uint &eO)
{
d->endOffset = eO;
}
void ChapterFrame::parseFields(const ByteVector &data)
{
- uint size = data.size();
+ TagLib::uint size = data.size();
if(size < 18) {
debug("A CHAP frame must contain at least 18 bytes (1 byte element ID "
"terminated by null and 4x4 bytes for start and end time and offset).");
return d->isOrdered;
}
-uint TableOfContentsFrame::entryCount() const
+TagLib::uint TableOfContentsFrame::entryCount() const
{
return d->childElements.size();
}
void TableOfContentsFrame::parseFields(const ByteVector &data)
{
- uint size = data.size();
+ TagLib::uint size = data.size();
if(size < 6) {
debug("A CTOC frame must contain at least 6 bytes (1 byte element ID terminated by "
"null, 1 byte flags, 1 byte entry count and 1 byte child element ID terminated "
d->elementID.append(char(0));
d->isTopLevel = (data.at(pos) & 2) > 0;
d->isOrdered = (data.at(pos++) & 1) > 0;
- uint entryCount = data.at(pos++);
- for(uint i = 0; i < entryCount; i++)
+ TagLib::uint entryCount = data.at(pos++);
+ for(TagLib::uint i = 0; i < entryCount; i++)
{
ByteVector childElementID = readStringField(data, String::Latin1, &pos).data(String::Latin1);
childElementID.append(char(0));