calendarui/calenplugins/calensettingsplugin/src/calensettingsplugin.cpp
changeset 18 c198609911f9
equal deleted inserted replaced
0:f979ecb2b13e 18:c198609911f9
       
     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 <cpsettingformentryitemdataimpl.h>
       
    19 
       
    20 #include "calensettingsplugin.h"
       
    21 #include "calendarsettingsview.h"
       
    22 #include <cpitemdatahelper.h>
       
    23 
       
    24 
       
    25 CalenSettingsPlugin::CalenSettingsPlugin()
       
    26 {
       
    27 }
       
    28 
       
    29 CalenSettingsPlugin::~CalenSettingsPlugin()
       
    30 {
       
    31 }
       
    32 
       
    33 int CalenSettingsPlugin::uid() const
       
    34 {
       
    35 	// TODO: get a uid and replace it.
       
    36     return 0x20029F7F;
       
    37 }
       
    38 
       
    39 CpSettingFormItemData *CalenSettingsPlugin::createSettingFormItemData(CpItemDataHelper& itemDataHelper) const
       
    40 {
       
    41     //CpItemDataHelper* pHelper = new CpItemDataHelper();
       
    42 	
       
    43 	// For now dummyicon
       
    44     HbIcon* icon = new HbIcon();
       
    45     return new CpSettingFormEntryItemDataImpl<CalendarSettingsView>(itemDataHelper, QString("Calendar application"),
       
    46                                           QString("Calendar settings plugin"), *icon);
       
    47 }
       
    48 
       
    49 Q_EXPORT_PLUGIN2(CalenSettingsPlugin, CalenSettingsPlugin)