videocollection/tsrc/stubs/src/videolistdatamodel.cpp
changeset 59 a76e86df7ccd
parent 52 e3cecb93e76a
equal deleted inserted replaced
52:e3cecb93e76a 59:a76e86df7ccd
    23 QMap<int, QVariant> VideoListDataModelData::mData;
    23 QMap<int, QVariant> VideoListDataModelData::mData;
    24 QModelIndex VideoListDataModelData::mLastIndex;
    24 QModelIndex VideoListDataModelData::mLastIndex;
    25 int VideoListDataModelData::mDataAccessCount = 0;
    25 int VideoListDataModelData::mDataAccessCount = 0;
    26 int VideoListDataModelData::mRowCount = 0;
    26 int VideoListDataModelData::mRowCount = 0;
    27 int VideoListDataModelData::mRowCountDecrement = 0;
    27 int VideoListDataModelData::mRowCountDecrement = 0;
       
    28 TMPXItemId VideoListDataModelData::mItemId = TMPXItemId::InvalidId();
       
    29 
       
    30 
    28 
    31 
    29 VideoListDataModel::VideoListDataModel(QObject *parent) :
    32 VideoListDataModel::VideoListDataModel(QObject *parent) :
    30     QAbstractItemModel(parent),
    33     QAbstractItemModel(parent),
    31     d_ptr(0), 
    34     d_ptr(0), 
    32     mCollectionClient(0),
    35     mCollectionClient(0),
    83 void VideoListDataModel::disconnectSignals()
    86 void VideoListDataModel::disconnectSignals()
    84 {
    87 {
    85     // not stubbed
    88     // not stubbed
    86 }
    89 }
    87 
    90 
    88 TMPXItemId VideoListDataModel::mediaIdAtIndex(int index) const
    91 const TMPXItemId& VideoListDataModel::mediaIdAtIndex(const int &index) const
    89 {
    92 {
    90     Q_UNUSED(index);
    93     Q_UNUSED(index);
    91     // not stubbed
    94     // not stubbed
    92     return TMPXItemId();
    95     return VideoListDataModelData::mItemId;
    93 }
    96 }
    94 
    97 
    95 QString VideoListDataModel::mediaFilePathForId(TMPXItemId mediaId) const
    98 QString VideoListDataModel::mediaFilePathForId(const TMPXItemId &mediaId) const
    96 {
    99 {
    97     Q_UNUSED(mediaId);
   100     Q_UNUSED(mediaId);
    98     // not stubbed
   101     // not stubbed
    99     return QString();
   102     return QString();
   100 }
   103 }
   122         itemData.insert(Qt::BackgroundRole, data(index, Qt::BackgroundRole)); 
   125         itemData.insert(Qt::BackgroundRole, data(index, Qt::BackgroundRole)); 
   123     }
   126     }
   124     return itemData;
   127     return itemData;
   125 }
   128 }
   126 
   129 
   127 QString VideoListDataModel::prepareDetailRow(int index) const
   130 QString VideoListDataModel::prepareDetailRow(int &index) const
   128 {
   131 {
   129     Q_UNUSED(index);
   132     Q_UNUSED(index);
   130     
   133     
   131     // not stubbed
   134     // not stubbed
   132     return QString();
   135     return QString();
   133 }
   136 }
   134 
   137 
   135 QString VideoListDataModel::prepareSizeString(int index) const
   138 QString VideoListDataModel::prepareSizeString(int &index) const
   136 {
   139 {
   137     Q_UNUSED(index);
   140     Q_UNUSED(index);
   138     
   141     
   139     // not stubbed
   142     // not stubbed
   140     return QString();
   143     return QString();
   192     
   195     
   193     // not stubbed
   196     // not stubbed
   194     return false;
   197     return false;
   195 }
   198 }
   196 
   199 
   197 void VideoListDataModel::setAlbumInUse(TMPXItemId albumId)
   200 void VideoListDataModel::setAlbumInUse(const TMPXItemId &albumId)
   198 {
   201 {
   199     Q_UNUSED(albumId);
   202     Q_UNUSED(albumId);
   200     
   203     
   201     // not stubbed
   204     // not stubbed
   202 }
   205 }
   203 
   206 
   204 void VideoListDataModel::deleteStartingFailsSlot(QList<TMPXItemId> ids)
   207 void VideoListDataModel::deleteStartingFailsSlot(QList<TMPXItemId>& ids)
   205 {
   208 {
   206     Q_UNUSED(ids);
   209     Q_UNUSED(ids);
   207     
   210     
   208     // not stubbed
   211     // not stubbed
   209 }
   212 }