phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetnetworkhandler.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     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 <networkhandlingproxy.h>
       
    20 #include <cnwsession.h>
       
    21 #include "infowidgetnetworkhandler.h"
       
    22 
       
    23 // ============================ MEMBER FUNCTIONS ===============================
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // InfoWidgetNetworkHandler::InfoWidgetNetworkHandler
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 InfoWidgetNetworkHandler::InfoWidgetNetworkHandler( 
       
    30         QObject * parent )
       
    31     : 
       
    32     QObject(parent), 
       
    33     m_nwSession(0)
       
    34     {
       
    35     
       
    36     }
       
    37 
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 InfoWidgetNetworkHandler::~InfoWidgetNetworkHandler(  )
       
    44     {
       
    45     
       
    46     }
       
    47 
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // InfoWidgetNetworkHandler::serviceProviderName
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 QString InfoWidgetNetworkHandler::serviceProviderName(  ) const
       
    54     {
       
    55     SMC_MOCK_METHOD0( QString )
       
    56     }
       
    57 
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 bool InfoWidgetNetworkHandler::serviceProviderNameDisplayRequired(  ) const
       
    64     {
       
    65     SMC_MOCK_METHOD0( bool )
       
    66     }
       
    67 
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // InfoWidgetNetworkHandler::homeZoneTextTag
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 QString InfoWidgetNetworkHandler::homeZoneTextTag(  ) const
       
    74     {
       
    75     SMC_MOCK_METHOD0( QString )
       
    76     }
       
    77 
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // InfoWidgetNetworkHandler::homeZoneIndicatorType
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 int InfoWidgetNetworkHandler::homeZoneIndicatorType(  ) const
       
    84     {
       
    85     SMC_MOCK_METHOD0( int )
       
    86     }
       
    87 
       
    88 
       
    89 // -----------------------------------------------------------------------------
       
    90 // InfoWidgetNetworkHandler::mcnName
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 QString InfoWidgetNetworkHandler::mcnName(  ) const
       
    94     {
       
    95     SMC_MOCK_METHOD0( QString )
       
    96     }
       
    97 
       
    98 
       
    99 // -----------------------------------------------------------------------------
       
   100 // InfoWidgetNetworkHandler::mcnIndicatorType
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 int InfoWidgetNetworkHandler::mcnIndicatorType(  ) const
       
   104     {
       
   105     SMC_MOCK_METHOD0( int )
       
   106     }
       
   107     
       
   108 // -----------------------------------------------------------------------------
       
   109 // InfoWidgetNetworkHandler::networkRegistrationStatus
       
   110 // -----------------------------------------------------------------------------
       
   111 //
       
   112 int InfoWidgetNetworkHandler::networkRegistrationStatus(  ) const
       
   113     {
       
   114     SMC_MOCK_METHOD0( int )
       
   115     }
       
   116 
       
   117 
       
   118 // -----------------------------------------------------------------------------
       
   119 // InfoWidgetNetworkHandler::isOnline
       
   120 // -----------------------------------------------------------------------------
       
   121 //
       
   122 bool InfoWidgetNetworkHandler::isOnline(  ) const
       
   123     {
       
   124     SMC_MOCK_METHOD0( bool )
       
   125     }
       
   126 
       
   127 
       
   128 // -----------------------------------------------------------------------------
       
   129 // InfoWidgetNetworkHandler::logCurrentInfo
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 void InfoWidgetNetworkHandler::logCurrentInfo(  )
       
   133     {
       
   134     SMC_MOCK_METHOD0( void )
       
   135     }
       
   136 
       
   137 
       
   138 // -----------------------------------------------------------------------------
       
   139 // InfoWidgetNetworkHandler::HandleNetworkMessage
       
   140 // -----------------------------------------------------------------------------
       
   141 //
       
   142 void InfoWidgetNetworkHandler::HandleNetworkMessage( 
       
   143         const TNWMessages aMessage )
       
   144     {
       
   145     SMC_MOCK_METHOD1( void, const TNWMessages, aMessage )
       
   146     }
       
   147 
       
   148 
       
   149 // -----------------------------------------------------------------------------
       
   150 // InfoWidgetNetworkHandler::HandleNetworkError
       
   151 // -----------------------------------------------------------------------------
       
   152 //
       
   153 void InfoWidgetNetworkHandler::HandleNetworkError( 
       
   154         const TNWOperation aOperation,
       
   155         TInt aErrorCode )
       
   156     {
       
   157     SMC_MOCK_METHOD2( void, const TNWOperation, aOperation, 
       
   158         TInt, aErrorCode )
       
   159     }
       
   160 
       
   161 
       
   162 // -----------------------------------------------------------------------------
       
   163 // InfoWidgetNetworkHandler::suspend
       
   164 // -----------------------------------------------------------------------------
       
   165 //
       
   166 void InfoWidgetNetworkHandler::suspend(  )
       
   167     {
       
   168     SMC_MOCK_METHOD0( void )
       
   169     }
       
   170 
       
   171 
       
   172 // -----------------------------------------------------------------------------
       
   173 // InfoWidgetNetworkHandler::resume
       
   174 // -----------------------------------------------------------------------------
       
   175 //
       
   176 void InfoWidgetNetworkHandler::resume(  )
       
   177     {
       
   178     SMC_MOCK_METHOD0( void )
       
   179     }
       
   180 
       
   181 
       
   182 // -----------------------------------------------------------------------------
       
   183 // InfoWidgetNetworkHandler::enableMcn
       
   184 // -----------------------------------------------------------------------------
       
   185 //
       
   186 void InfoWidgetNetworkHandler::enableMcn(  )
       
   187     {
       
   188     SMC_MOCK_METHOD0( void )
       
   189     }
       
   190 
       
   191 
       
   192 // -----------------------------------------------------------------------------
       
   193 // InfoWidgetNetworkHandler::disableMcn
       
   194 // -----------------------------------------------------------------------------
       
   195 //
       
   196 void InfoWidgetNetworkHandler::disableMcn(  )
       
   197     {
       
   198     SMC_MOCK_METHOD0( void )
       
   199     }
       
   200 
       
   201 
       
   202 // -----------------------------------------------------------------------------
       
   203 // InfoWidgetNetworkHandler::writeMcnDisplayState
       
   204 // -----------------------------------------------------------------------------
       
   205 //
       
   206 void InfoWidgetNetworkHandler::writeMcnDisplayState( 
       
   207         bool enabled )
       
   208     {
       
   209     SMC_MOCK_METHOD1( void, bool, enabled )
       
   210     }
       
   211 
       
   212 
       
   213 // -----------------------------------------------------------------------------
       
   214 // InfoWidgetNetworkHandler::readMcnDisplayState
       
   215 // -----------------------------------------------------------------------------
       
   216 //
       
   217 bool InfoWidgetNetworkHandler::readMcnDisplayState(  )
       
   218     {
       
   219     SMC_MOCK_METHOD0( bool )
       
   220     }
       
   221 
       
   222 
       
   223 
       
   224