coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfsview.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
child 64 75184094ace1
child 66 9af619316cbf
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     1 /*
       
     2  * Copyright (c) 2010 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:  Creates the settingForm for RFS plug-in where we can add setting item to the form later.
       
    15  *
       
    16  */
       
    17 
       
    18 #include "cprfsview.h"
       
    19 #include "cprfssettingsform.h"
       
    20 
       
    21 #include <cpbasesettingview.h>
       
    22 #include "cprfssettingsdataformcustomitem.h"
       
    23 
       
    24 CpRfsView::CpRfsView(QGraphicsItem *parent):
       
    25 CpBaseSettingView(0,parent)
       
    26 	{
       
    27     CpRfsSettingsForm* settingForm = new CpRfsSettingsForm(this);
       
    28         
       
    29     //custom prototype
       
    30     CpRfsSettingsDataFormCustomItem* customPrototype = new CpRfsSettingsDataFormCustomItem(settingForm);
       
    31     
       
    32     QList <HbAbstractViewItem*> protos = settingForm->itemPrototypes();
       
    33     protos.append(customPrototype);
       
    34     settingForm->setItemPrototypes(protos);    
       
    35     //function from hbview
       
    36     setWidget(settingForm);
       
    37     
       
    38 	}
       
    39 CpRfsView::~CpRfsView()
       
    40     {
       
    41     }