mpdata/tsrc/unittest_mpcollectiondatamodel/stub/src/mpmpxcollectiondata.cpp
changeset 55 f3930dda3342
parent 51 560ce2306a17
equal deleted inserted replaced
51:560ce2306a17 55:f3930dda3342
   107     : QObject(parent),
   107     : QObject(parent),
   108       mContext(ECollectionContextUnknown),
   108       mContext(ECollectionContextUnknown),
   109       mCount(0),
   109       mCount(0),
   110       mItemDataReturn(true),
   110       mItemDataReturn(true),
   111       mCollectionTitleReturn(true)
   111       mCollectionTitleReturn(true)
       
   112  
   112 {
   113 {
   113     gInitCounter++;
   114     gInitCounter++;
   114 }
   115 }
   115 
   116 
   116 /*!
   117 /*!
   195 /*!
   196 /*!
   196  Stub function.
   197  Stub function.
   197  */
   198  */
   198 bool MpMpxCollectionData::hasItemProperty( int index, MpMpxCollectionData:: DataProperty type ) const
   199 bool MpMpxCollectionData::hasItemProperty( int index, MpMpxCollectionData:: DataProperty type ) const
   199 {
   200 {
   200 
   201     TX_ENTRY
       
   202     Q_UNUSED(type);
       
   203     if (index == 2){
       
   204     return true;
       
   205     }
       
   206     else {
       
   207     return false;
       
   208     }
       
   209     
   201 }
   210 }
   202 
   211 
   203 /*!
   212 /*!
   204  Stub function.
   213  Stub function.
   205  */
   214  */
   256 
   265 
   257 /*!
   266 /*!
   258  Stub function.
   267  Stub function.
   259  */
   268  */
   260 QList<int> MpMpxCollectionData::songIndex( int songUniqueId )
   269 QList<int> MpMpxCollectionData::songIndex( int songUniqueId )
   261     {
   270 {
       
   271     QHash<int, int> iList;
       
   272     iList.insertMulti(1,3);
       
   273     iList.insertMulti(1,2);
       
   274     iList.insertMulti(4,6);
       
   275     iList.insertMulti(1,1);
       
   276     return iList.values(songUniqueId);
   262     
   277     
   263     }
   278 }
   264 
   279 
   265 /*!
   280 /*!
   266  Stub function.
   281  Stub function.
   267  */
   282  */
   268 void MpMpxCollectionData::setCorruptValue(QModelIndex index, bool tBone )
   283 void MpMpxCollectionData::setCorruptValue(QModelIndex index, bool tBone )
   269     {
   284 {
   270     
   285     Q_UNUSED(tBone);
   271     }
   286     mCorruptedIndex.append(index.row());
   272 
   287 }
   273 /*!
   288 
   274  Stub function.
       
   275  */
       
   276 void MpMpxCollectionData::setReloadAlbumContent( bool reloadAlbum )
       
   277     {
       
   278     
       
   279     }
       
   280