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