d->items["trkn"] = MP4::Item(value, 0);
}
+bool MP4::Tag::isEmpty() const
+{
+ return d->items.isEmpty();
+}
+
MP4::ItemListMap &
MP4::Tag::itemListMap()
{
void setYear(uint value);
void setTrack(uint value);
+ virtual bool isEmpty() const;
+
ItemListMap &itemListMap();
PropertyMap properties() const;
CPPUNIT_TEST(testPropertiesALAC);
CPPUNIT_TEST(testFreeForm);
CPPUNIT_TEST(testCheckValid);
+ CPPUNIT_TEST(testIsEmpty);
CPPUNIT_TEST(testUpdateStco);
CPPUNIT_TEST(testSaveExisingWhenIlstIsLast);
CPPUNIT_TEST(test64BitAtom);
CPPUNIT_ASSERT(f2.isValid());
}
+ void testIsEmpty()
+ {
+ MP4::Tag t1;
+ CPPUNIT_ASSERT(t1.isEmpty());
+ t1.setArtist("Foo");
+ CPPUNIT_ASSERT(!t1.isEmpty());
+
+ MP4::Tag t2;
+ t2.itemListMap()["foo"] = "bar";
+ CPPUNIT_ASSERT(!t2.isEmpty());
+ }
+
void testUpdateStco()
{
ScopedFileCopy copy("no-tags", ".3g2");