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