controlpanelplugins/aboutplugin/src/cpaboutplugin.cpp
changeset 39 5aa7c7ec6b8e
equal deleted inserted replaced
37:cb294e641644 39:5aa7c7ec6b8e
       
     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 #include "cpaboutplugin.h"
       
    18 #include "cpaboutview.h"
       
    19 #include <cpsettingformentryitemdataimpl.h>
       
    20 
       
    21 /*!
       
    22   \class CpAboutPlugin
       
    23 */
       
    24 
       
    25 /*!
       
    26     Constructor
       
    27 */
       
    28 CpAboutPlugin::CpAboutPlugin()
       
    29 {
       
    30 }
       
    31 
       
    32 /*!
       
    33     Destructor
       
    34 */
       
    35 CpAboutPlugin::~CpAboutPlugin()
       
    36 {
       
    37 }
       
    38 
       
    39 /*!
       
    40     Creates setting form item data
       
    41 */
       
    42 QList<CpSettingFormItemData*> CpAboutPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
       
    43 {
       
    44     const QString aboutIconName = "qtg_large_info";
       
    45     return QList<CpSettingFormItemData*>() 
       
    46             << new CpSettingFormEntryItemDataImpl<CpAboutView>(
       
    47 			   itemDataHelper,
       
    48 			   hbTrId("txt_cp_list_about"), 
       
    49 			   QString(), // shows two liner in list
       
    50 			   HbIcon(aboutIconName));
       
    51 }
       
    52 
       
    53 Q_EXPORT_PLUGIN2(cpaboutplugin, CpAboutPlugin);