phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkpluginform/ut_networkpluginform.h
changeset 21 92ab7f8d0eab
child 30 ebdbd102c78a
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 #ifndef UT_NETWORKPLUGINFORM_H
       
    19 #define UT_NETWORKPLUGINFORM_H
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 #include <mockservice.h>
       
    23 #include <psetnetworkwrapper.h>
       
    24 
       
    25 class CpNetworkPluginForm;
       
    26 //class PSetNetworkWrapper;
       
    27 
       
    28 class UT_CpNetworkPluginForm : public QObject, MockService
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:    
       
    33     UT_CpNetworkPluginForm();
       
    34     ~UT_CpNetworkPluginForm();
       
    35     
       
    36     void updateNetworkSelectionMode(
       
    37         PSetNetworkWrapper::NetworkSelectionMode& mode);
       
    38     
       
    39 private slots:
       
    40 
       
    41     void init();
       
    42 
       
    43     void t_networkModeStateChanged();
       
    44     void t_operatorSelectionStateChanged();
       
    45     void t_networkAccessModeGot();
       
    46     
       
    47     void t_availableNetworksGot();
       
    48     void t_networkReqestFailed();
       
    49     void t_userCancel();
       
    50     void t_handleSearchingNetworks();
       
    51     void t_handleRequestingSelectedNetwork();
       
    52     void t_handleNetworkChanged();
       
    53 
       
    54     void cleanup();
       
    55     
       
    56     void t_memleak();
       
    57 private:
       
    58     CpNetworkPluginForm *m_networkPluginForm;
       
    59     PSetNetworkWrapper *m_networkWrapper;
       
    60     PSetNetworkWrapper::NetworkSelectionMode m_NetworkSelectionMode;
       
    61     int i;
       
    62 
       
    63 };
       
    64 
       
    65 #endif // UT_NETWORKPLUGINFORM_H