Commit 8a183b46 authored by Scott Wheeler's avatar Scott Wheeler

Restoring binary compatibility to the cache and adding a note for the

next time around when things do break.

svn path=/trunk/kdemultimedia/juk/; revision=241979
parent 95be6ba1
......@@ -15,6 +15,10 @@
* *
***************************************************************************/
#if 0 /// TODO: This should be included the next time that the cache format changes
#include <kdatastream.h>
#endif
#include "cachedtag.h"
#include "cache.h"
......@@ -180,8 +184,12 @@ bool CachedTag::current() const
QDataStream &CachedTag::read(QDataStream &s)
{
/// TODO: Use Q_UINT32 in place of all integers.
#if 0 /// TODO: This should be included the next time that the cache format changes
s >> m_tagExists
#else
s >> int(m_tagExists)
#endif
>> m_tagTrack
>> m_tagArtist
>> m_tagAlbum
......
......@@ -16,7 +16,9 @@
***************************************************************************/
#include <kdebug.h>
#if 0 /// TODO: This should be included the next time that the cache format changes
#include <kdatastream.h>
#endif
#include <qregexp.h>
#include "tag.h"
......@@ -98,8 +100,12 @@ int Tag::readSeconds(const KFileMetaInfo &metaInfo)
QDataStream &operator<<(QDataStream &s, const Tag &t)
{
/// TODO: Use Q_UINT32 in place of all integers.
#if 0 /// TODO: This should be included the next time that the cache format changes
s << t.hasTag()
#else
s << int(t.hasTag())
#endif
<< t.track()
<< t.artist()
<< t.album()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment