mpdata/tsrc/unittest_mpcollectiontbonelistdatamodel/stub/inc/mpmpxcollectiondata.h
--- a/mpdata/tsrc/unittest_mpcollectiontbonelistdatamodel/stub/inc/mpmpxcollectiondata.h Tue Aug 24 03:36:14 2010 -0500
+++ b/mpdata/tsrc/unittest_mpcollectiontbonelistdatamodel/stub/inc/mpmpxcollectiondata.h Fri Sep 03 19:58:01 2010 -0500
@@ -19,6 +19,7 @@
#define MPMPXCOLLECTIONDATA_H
#include <QObject>
+#include <QAbstractListModel>
#include "mpmpxcollectionviewdefs.h"
@@ -40,6 +41,11 @@
Rating,
AlbumArtUri
};
+
+ enum DataProperty {
+ Corrupted,
+ DrmExpired
+ };
// Test utility functions
static int getInitCounter();
@@ -52,17 +58,23 @@
int albumSongsCount() const;
int albumSongId( int index );
QString albumSongData( int index, MpMpxCollectionData::DataType type ) const;
+ bool hasAlbumSongProperty( int index, MpMpxCollectionData:: DataProperty type );
int albumSongIndex( int songUniqueId );
-
+ void setCorruptValue(QModelIndex index, bool tBone );
+ void setReloadAlbumContent( bool );
signals:
void contextChanged( TCollectionContext context );
void refreshAlbumSongs();
+ void dataChanged();
public:
int mAlbumSongCount;
bool mItemDataReturn;
+ bool mReloadAlbumContent;
+ bool mHasAlbumSongProperty;
+ QList<int> mCorruptedIndex;
};