controlpanelplugins/themeplugin/src/cpthemeplugin.cpp
branchRCL_3
changeset 14 5f281e37a2f5
parent 13 90fe62538f66
equal deleted inserted replaced
13:90fe62538f66 14:5f281e37a2f5
     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 "cpthemeplugin.h"
       
    18 #include "cpthemepluginentryitemdata.h"
       
    19 
       
    20 /*!
       
    21     \class CpThemePlugin
       
    22     \brief CpThemePlugin is a control panel plugin that allows a user to view available themes and
       
    23            change the current theme of the phone.
       
    24 
       
    25 */
       
    26 
       
    27 /*!
       
    28     constructor.
       
    29 */
       
    30 CpThemePlugin::CpThemePlugin()
       
    31 {
       
    32 }
       
    33 
       
    34 /*!
       
    35     destructor.
       
    36 */
       
    37 CpThemePlugin::~CpThemePlugin()
       
    38 {
       
    39 }
       
    40 
       
    41 /*!
       
    42     create the control panel entry item data for Theme settins.
       
    43 */
       
    44 
       
    45 QList<CpSettingFormItemData*> CpThemePlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
       
    46 {
       
    47 
       
    48     //create a cpthemepluginentryitemdata with default values and return it.
       
    49     CpSettingFormEntryItemData *entryItem = new CpThemePluginEntryItemData(
       
    50         itemDataHelper,
       
    51         hbTrId("txt_cp_dblist_theme"),
       
    52         QString(),
       
    53         HbIcon());
       
    54         return QList<CpSettingFormItemData*>() << entryItem;
       
    55 }
       
    56 
       
    57 Q_EXPORT_PLUGIN2(cpthemeplugin, CpThemePlugin);
       
    58