phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugin.cpp
changeset 37 ba76fc04e6c2
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     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 "cpcallsplugin.h"
       
    18 #include "cpcallsplugingroup.h"
       
    19 #include "cppluginlogging.h"
       
    20 #include <cpsettingformentryitemdataimpl.h>
       
    21 #include <QtDebug>
       
    22 
       
    23 /*!
       
    24     Constructor of CpCallsPlugin.
       
    25  */
       
    26 CpCallsPlugin::CpCallsPlugin() : QObject(0)
       
    27 {
       
    28     // Install plugin specific msg handler
       
    29     INSTALL_TRACE_MSG_HANDLER;
       
    30     
       
    31     DPRINT;
       
    32 }
       
    33 
       
    34 /*!
       
    35     Destructor of CpCallsPlugin.
       
    36  */
       
    37 CpCallsPlugin::~CpCallsPlugin()
       
    38 {
       
    39     DPRINT;
       
    40     
       
    41     // Uninstall plugin specific msg handler
       
    42     UNINSTALL_TRACE_MSG_HANDLER;
       
    43 }
       
    44 
       
    45 /*!
       
    46     CpCallsPlugin::createSettingFormItemData.
       
    47  */
       
    48 QList<CpSettingFormItemData*> CpCallsPlugin::createSettingFormItemData(
       
    49         CpItemDataHelper &itemDataHelper) const
       
    50 {
       
    51     DPRINT;
       
    52     QList<CpSettingFormItemData*> ret;
       
    53     ret.append(new CpCallsPluginGroup(itemDataHelper));
       
    54     return ret;
       
    55 }
       
    56 
       
    57 Q_EXPORT_PLUGIN2(cpcallsplugin, CpCallsPlugin);
       
    58