diff -r c48470be1ba7 -r adbe7d5ba2f5 mediasettings/videosettingsplugin/tsrc/testgroup/stub/src/cpitemdatahelper.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mediasettings/videosettingsplugin/tsrc/testgroup/stub/src/cpitemdatahelper.cpp Wed Jun 23 18:14:16 2010 +0300 @@ -0,0 +1,74 @@ +/* +* 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: CpItemDataHelper stub +* +*/ + +// INCLUDE FILES +#include "cpitemdatahelper.h" + +// --------------------------------------------------------------------------- +// CpItemDataHelper +// --------------------------------------------------------------------------- +// +CpItemDataHelper::CpItemDataHelper() +{ +} + +// --------------------------------------------------------------------------- +// CpItemDataHelper +// --------------------------------------------------------------------------- +// +CpItemDataHelper::~CpItemDataHelper() +{ +} + +// --------------------------------------------------------------------------- +// addConnection +// --------------------------------------------------------------------------- +// +void CpItemDataHelper::addConnection(HbDataFormModelItem *item, + const char *signal, + QObject *receiver, + const char *method) +{ + mConnections[item] = ConnectionHolder(signal, receiver, method); +} + +// --------------------------------------------------------------------------- +// connectToForm +// --------------------------------------------------------------------------- +// +void CpItemDataHelper::connectToForm(const char *signal, + QObject *receiver, + const char *method) +{ + mFormConnection = ConnectionHolder(signal, receiver, method); +} + +// --------------------------------------------------------------------------- +// widgetFromModelIndex +// --------------------------------------------------------------------------- +// +HbWidget* CpItemDataHelper::widgetFromModelIndex(const QModelIndex &index) +{ + Q_UNUSED(index); + return mWidgetReturnValue; +} + +HbDataFormModelItem* CpItemDataHelper::modelItemFromModelIndex(const QModelIndex &index) +{ + Q_UNUSED(index); + return mModelItemReturnValue; +}