mpdata/tsrc/unittest_mpcollectiontbonelistdatamodel/stub/src/mpmpxcollectiondata.cpp
changeset 55 f3930dda3342
parent 47 4cc1412daed0
equal deleted inserted replaced
51:560ce2306a17 55:f3930dda3342
    97 }
    97 }
    98 
    98 
    99 /*!
    99 /*!
   100  Stub function.
   100  Stub function.
   101  */
   101  */
       
   102 bool MpMpxCollectionData::hasAlbumSongProperty( int index, MpMpxCollectionData:: DataProperty type )
       
   103 {
       
   104     TX_ENTRY
       
   105     Q_UNUSED(type);
       
   106     if (index == 2){
       
   107     mHasAlbumSongProperty = true;
       
   108     return true;
       
   109     }
       
   110     else {
       
   111     mHasAlbumSongProperty = false;
       
   112     return false;
       
   113     }
       
   114 }
       
   115 
       
   116 /*!
       
   117  Stub function.
       
   118  */
   102 int MpMpxCollectionData::albumSongIndex( int songUniqueId )
   119 int MpMpxCollectionData::albumSongIndex( int songUniqueId )
   103 {
   120 {
   104     Q_UNUSED(songUniqueId);
   121     if (songUniqueId == 0){
   105     return 0;
   122         return -1;
       
   123     }
       
   124     else {
       
   125         return songUniqueId;
       
   126     }
       
   127       
   106 }
   128 }
       
   129 
       
   130 /*!
       
   131  Stub function.
       
   132  */
       
   133 void MpMpxCollectionData::setCorruptValue(QModelIndex index, bool tBone )
       
   134 {
       
   135     Q_UNUSED(tBone);
       
   136     mCorruptedIndex.append(index.row());
       
   137 }
       
   138 
       
   139 /*!
       
   140  Stub function.
       
   141  */
       
   142 void MpMpxCollectionData::setReloadAlbumContent( bool reload )
       
   143 {
       
   144     mReloadAlbumContent = reload;
       
   145 }
       
   146