mediasettings/videosettingsplugin/tsrc/testaccesspointentry/stub/src/cpsettingformentryitemdata.cpp
changeset 46 adbe7d5ba2f5
child 67 72c709219fcd
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:   CpSettingFormEntryItemData stub
       
    15 * 
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "cpsettingformentryitemdata.h"
       
    20 
       
    21 // ---------------------------------------------------------------------------
       
    22 // CpSettingFormEntryItemData
       
    23 // ---------------------------------------------------------------------------
       
    24 //
       
    25 CpSettingFormEntryItemData::CpSettingFormEntryItemData(
       
    26     EntryItemType type,
       
    27     CpItemDataHelper &itemDataHelper,
       
    28     const QString &text,
       
    29     const QString &description,
       
    30     const QString &iconName,
       
    31     const HbDataFormModelItem *parent) :
       
    32     mText(text),
       
    33     mDescription(description)
       
    34 {
       
    35     Q_UNUSED(type);
       
    36     Q_UNUSED(itemDataHelper);
       
    37     Q_UNUSED(iconName);
       
    38     Q_UNUSED(parent);
       
    39 }
       
    40 
       
    41 // ---------------------------------------------------------------------------
       
    42 // CpSettingFormEntryItemData
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 CpSettingFormEntryItemData::~CpSettingFormEntryItemData()
       
    46 {
       
    47 }
       
    48 
       
    49 // ---------------------------------------------------------------------------
       
    50 // text
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 QString CpSettingFormEntryItemData::text() const
       
    54 {
       
    55     return mText;
       
    56 }
       
    57 
       
    58 // ---------------------------------------------------------------------------
       
    59 // setText
       
    60 // ---------------------------------------------------------------------------
       
    61 //
       
    62 void CpSettingFormEntryItemData::setText(const QString &text)
       
    63 {
       
    64     mText = text;
       
    65 }
       
    66 
       
    67 // ---------------------------------------------------------------------------
       
    68 // description
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 QString CpSettingFormEntryItemData::description() const
       
    72 {
       
    73     return mDescription;
       
    74 }
       
    75 
       
    76 // ---------------------------------------------------------------------------
       
    77 // setDescription
       
    78 // ---------------------------------------------------------------------------
       
    79 //
       
    80 void CpSettingFormEntryItemData::setDescription(const QString &description)
       
    81 {
       
    82     mDescription = description;
       
    83 }
       
    84 
       
    85 // ---------------------------------------------------------------------------
       
    86 // callCreateSettingView
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 CpBaseSettingView* CpSettingFormEntryItemData::callCreateSettingView() const
       
    90 {
       
    91     return createSettingView();
       
    92 }