mediasettings/videosettingsplugin/tsrc/testgroup/stub/src/cpitemdatahelper.cpp
changeset 46 adbe7d5ba2f5
equal deleted inserted replaced
28:c48470be1ba7 46:adbe7d5ba2f5
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   CpItemDataHelper stub
       
    15 * 
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "cpitemdatahelper.h"
       
    20 
       
    21 // ---------------------------------------------------------------------------
       
    22 // CpItemDataHelper
       
    23 // ---------------------------------------------------------------------------
       
    24 //
       
    25 CpItemDataHelper::CpItemDataHelper()
       
    26 {
       
    27 }
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // CpItemDataHelper
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 CpItemDataHelper::~CpItemDataHelper()
       
    34 {
       
    35 }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // addConnection
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 void CpItemDataHelper::addConnection(HbDataFormModelItem *item,
       
    42     const char *signal,
       
    43     QObject *receiver,
       
    44     const char *method)
       
    45 {
       
    46     mConnections[item] = ConnectionHolder(signal, receiver, method);
       
    47 }
       
    48 
       
    49 // ---------------------------------------------------------------------------
       
    50 // connectToForm
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 void CpItemDataHelper::connectToForm(const char *signal,
       
    54     QObject *receiver,
       
    55     const char *method)
       
    56 {
       
    57     mFormConnection = ConnectionHolder(signal, receiver, method);
       
    58 }
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // widgetFromModelIndex
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 HbWidget* CpItemDataHelper::widgetFromModelIndex(const QModelIndex &index)
       
    65 {
       
    66     Q_UNUSED(index);
       
    67     return mWidgetReturnValue;
       
    68 }
       
    69 
       
    70 HbDataFormModelItem* CpItemDataHelper::modelItemFromModelIndex(const QModelIndex &index)
       
    71 {
       
    72     Q_UNUSED(index);
       
    73     return mModelItemReturnValue;
       
    74 }