phonesettings/cpphonesettingsplugins/callsplugin/tsrc/ut_callsplugin/ut_callsplugin.cpp
changeset 21 92ab7f8d0eab
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     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 "ut_callsplugin.h"
       
    19 #include "qtestmains60.h"
       
    20 #define private public
       
    21 #include "cpcallsplugin.h"
       
    22 #include "cpitemdatahelper.h"
       
    23 
       
    24 Q_EXTERN_C const char * qt_plugin_query_verification_data();
       
    25 Q_EXTERN_C ::QObject *  qt_plugin_instance();
       
    26 /*!
       
    27   UT_CpCallsPlugin::UT_CpCallsPlugin
       
    28  */
       
    29 UT_CpCallsPlugin::UT_CpCallsPlugin() 
       
    30     : m_callsplugin(NULL)
       
    31 {
       
    32     const char * verificationData = qt_plugin_query_verification_data();
       
    33 }
       
    34 
       
    35 /*!
       
    36   UT_CpCallsPlugin::~UT_CpCallsPlugin
       
    37  */
       
    38 UT_CpCallsPlugin::~UT_CpCallsPlugin()
       
    39 {
       
    40     delete m_callsplugin;
       
    41 }
       
    42 
       
    43 /*!
       
    44   UT_CpCallsPlugin::init
       
    45  */
       
    46 void UT_CpCallsPlugin::init()
       
    47 {
       
    48     initialize();
       
    49 
       
    50     m_callsplugin = (CpCallsPlugin*)qt_plugin_instance();
       
    51 }
       
    52 
       
    53 
       
    54 
       
    55 void UT_CpCallsPlugin::t_createSettingFormItemData()
       
    56 {
       
    57     CpItemDataHelper itemDataHelper;
       
    58     CpCallsPlugin* p = (CpCallsPlugin*)qt_plugin_instance();
       
    59     CpSettingFormItemData *pSettingFormItemData = p->createSettingFormItemData(itemDataHelper);
       
    60 }
       
    61 
       
    62 
       
    63 /*!
       
    64   UT_CpCallsPlugin::cleanup
       
    65  */
       
    66 void UT_CpCallsPlugin::cleanup()
       
    67 {
       
    68     reset();
       
    69     
       
    70     delete m_callsplugin;
       
    71     m_callsplugin = NULL;
       
    72 }
       
    73 
       
    74 /*!
       
    75   UT_CpCallsPlugin::t_memleak
       
    76  */
       
    77 void UT_CpCallsPlugin::t_memleak()
       
    78 {
       
    79     
       
    80 }
       
    81 
       
    82 QTEST_MAIN_S60(UT_CpCallsPlugin)