controlpanel/tsrc/unit/testplugin/src/cppersonalizationplugin.cpp
branchRCL_3
changeset 25 7e0eff37aedb
parent 24 8ee96d21d9bf
child 26 e78c61e77b1a
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
     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:  
       
    15  *
       
    16  */
       
    17 
       
    18 #include "cppersonalizationplugin.h"
       
    19 #include <cpitemdatahelper.h>
       
    20 #include <cpsettingformitemdata.h>
       
    21 #include <cpbasesettingview.h>
       
    22 
       
    23 CpPersonalizationPlugin::CpPersonalizationPlugin()
       
    24 {
       
    25 }
       
    26 
       
    27 CpPersonalizationPlugin::~CpPersonalizationPlugin()
       
    28 {
       
    29 }
       
    30 
       
    31 QList<CpSettingFormItemData*> CpPersonalizationPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
       
    32 {
       
    33     CpSettingFormItemData *itemData = new CpSettingFormItemData();
       
    34 
       
    35     return QList<CpSettingFormItemData*>() << itemData;
       
    36 }
       
    37 
       
    38 CpBaseSettingView *CpPersonalizationPlugin::createSettingView(const QVariant &hint) const
       
    39 {
       
    40     if (hint.toString().compare("profile_view",Qt::CaseInsensitive) == 0) {
       
    41         return new CpBaseSettingView;
       
    42     }
       
    43     return 0;
       
    44 }
       
    45 
       
    46 Q_EXPORT_PLUGIN2(cppersonalizationplugin, CpPersonalizationPlugin);
       
    47 
       
    48