phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpnetworkplugingroup.cpp
changeset 27 2f8f8080a020
parent 22 6bb1b21d2484
child 28 4820f90afff1
child 30 ebdbd102c78a
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
     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 <QDebug>
       
    18 #include <smcmockclassincludes.h>
       
    19 #include "cpnetworkplugingroup.h"
       
    20 
       
    21 // ============================ MEMBER FUNCTIONS ===============================
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // CpNetworkPluginGroup::CpNetworkPluginGroup
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 CpNetworkPluginGroup::CpNetworkPluginGroup( 
       
    28         CpItemDataHelper & helper )
       
    29     :
       
    30     m_helper(helper)
       
    31     {
       
    32     
       
    33     }
       
    34 
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CpNetworkPluginGroup::~CpNetworkPluginGroup
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 CpNetworkPluginGroup::~CpNetworkPluginGroup(  )
       
    41     {
       
    42     
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CpNetworkPluginGroup::networkModeStateChanged
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 void CpNetworkPluginGroup::networkModeStateChanged( 
       
    51         int index )
       
    52     {
       
    53     SMC_MOCK_METHOD1( void, int, index )
       
    54     }
       
    55 
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // CpNetworkPluginGroup::operatorSelectionStateChanged
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 void CpNetworkPluginGroup::operatorSelectionStateChanged( 
       
    62         int index )
       
    63     {
       
    64     SMC_MOCK_METHOD1( void, int, index )
       
    65     }
       
    66 
       
    67 
       
    68 // -----------------------------------------------------------------------------
       
    69 // CpNetworkPluginGroup::networkAccessModeGot
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 void CpNetworkPluginGroup::networkAccessModeGot( 
       
    73         int mode )
       
    74     {
       
    75     SMC_MOCK_METHOD1( void, int, mode )
       
    76     }
       
    77 
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // CpNetworkPluginGroup::availableNetworksGot
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 void CpNetworkPluginGroup::availableNetworksGot( 
       
    84         QList<PSetNetworkWrapper::NetworkInfo *> & m_networkInfoList )
       
    85     {
       
    86     SMC_MOCK_METHOD1( void, QList<PSetNetworkWrapper::NetworkInfo *> &, m_networkInfoList )
       
    87     }
       
    88 
       
    89 
       
    90 // -----------------------------------------------------------------------------
       
    91 // CpNetworkPluginGroup::networkReqestFailed
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 void CpNetworkPluginGroup::networkReqestFailed( 
       
    95         PSetNetworkWrapper::ErrorCode error,
       
    96         PSetNetworkWrapper::RequestType type )
       
    97     {
       
    98     SMC_MOCK_METHOD2( void, PSetNetworkWrapper::ErrorCode, error, 
       
    99         PSetNetworkWrapper::RequestType, type )
       
   100     }
       
   101 
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // CpNetworkPluginGroup::userCancel
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 void CpNetworkPluginGroup::userCancel(  )
       
   108     {
       
   109     SMC_MOCK_METHOD0( void )
       
   110     }
       
   111 
       
   112 
       
   113 // -----------------------------------------------------------------------------
       
   114 // CpNetworkPluginGroup::handleSearchingNetworks
       
   115 // -----------------------------------------------------------------------------
       
   116 //
       
   117 void CpNetworkPluginGroup::handleSearchingNetworks( 
       
   118         PSetNetworkWrapper::RequestType & type )
       
   119     {
       
   120     SMC_MOCK_METHOD1( void, PSetNetworkWrapper::RequestType &, type )
       
   121     }
       
   122 
       
   123 
       
   124 // -----------------------------------------------------------------------------
       
   125 // CpNetworkPluginGroup::handleRequestingSelectedNetwork
       
   126 // -----------------------------------------------------------------------------
       
   127 //
       
   128 void CpNetworkPluginGroup::handleRequestingSelectedNetwork( 
       
   129         bool ongoing )
       
   130     {
       
   131     SMC_MOCK_METHOD1( void, bool, ongoing )
       
   132     }
       
   133 
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // CpNetworkPluginGroup::handleNetworkChanged
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 void CpNetworkPluginGroup::handleNetworkChanged( 
       
   140         PSetNetworkWrapper::NetworkInfo & currentInfo,
       
   141         PSetNetworkWrapper::RegistrationStatus & status )
       
   142     {
       
   143     SMC_MOCK_METHOD2( void, PSetNetworkWrapper::NetworkInfo &, currentInfo, 
       
   144         PSetNetworkWrapper::RegistrationStatus &, status )
       
   145     }
       
   146 
       
   147