diff -r 560ce2306a17 -r f3930dda3342 mpdata/tsrc/unittest_mpmpxcollectiondata/src/unittest_helper.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mpdata/tsrc/unittest_mpmpxcollectiondata/src/unittest_helper.cpp Fri Sep 03 19:58:01 2010 -0500 @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Unit test helper for TestHelper +* +*/ + +#include "unittest_helper.h" + + +TestHelper::TestHelper(QObject *parent) + : QAbstractListModel(parent) +{ +} + +TestHelper::~TestHelper() +{ +} + +/*! + Dummy function to satisfy QAbstractListModel inheritance. + */ +int TestHelper::rowCount( const QModelIndex &parent ) const +{ + Q_UNUSED(parent); + return 0; +} + +/*! + Dummy function to satisfy QAbstractListModel inheritance. + */ +QVariant TestHelper::data(const QModelIndex &index, int role) const +{ + Q_UNUSED(index); + Q_UNUSED(role); + return QVariant(); +} + +/*! + Slot to be called when album art for the \a index needs to be updated. + */ +QModelIndex TestHelper::indexFor(int index) +{ + return QAbstractItemModel::createIndex(index, 0); +} + +// End of file