phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpplugincommon.cpp
changeset 46 bc5a64e5bc3c
parent 45 6b911d05207e
child 51 f39ed5e045e0
child 65 2a5d4ab426d3
equal deleted inserted replaced
45:6b911d05207e 46:bc5a64e5bc3c
     1 /* 
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
    53 
    53 
    54 // -----------------------------------------------------------------------------
    54 // -----------------------------------------------------------------------------
    55 // CpSettingsWrapper::setShowCallDuration
    55 // CpSettingsWrapper::setShowCallDuration
    56 // -----------------------------------------------------------------------------
    56 // -----------------------------------------------------------------------------
    57 //
    57 //
    58 int CpSettingsWrapper::setShowCallDuration( bool value )
    58 int CpSettingsWrapper::setShowCallDuration( 
       
    59         bool value )
    59     {
    60     {
    60     SMC_MOCK_METHOD1( int, bool, value )
    61     SMC_MOCK_METHOD1( int, bool, value )
    61     }
    62     }
    62 
    63 
    63 
    64 
    94     if(i==0){
    95     if(i==0){
    95         text = "Soittelen myöhemmin...";
    96         text = "Soittelen myöhemmin...";
    96         userDefined = true;
    97         userDefined = true;
    97         i=1;
    98         i=1;
    98     }
    99     }
    99     SMC_MOCK_METHOD2( void, QString &, text, bool, userDefined )
   100     SMC_MOCK_METHOD2( void, QString &, text,
       
   101         bool &, userDefined )
   100     }
   102     }
   101 
   103 
   102 
   104 
   103 // -----------------------------------------------------------------------------
   105 // -----------------------------------------------------------------------------
   104 // CpSettingsWrapper::writeSoftRejectText
   106 // CpSettingsWrapper::writeSoftRejectText
   105 // -----------------------------------------------------------------------------
   107 // -----------------------------------------------------------------------------
   106 //
   108 //
   107 int CpSettingsWrapper::writeSoftRejectText( 
   109 int CpSettingsWrapper::writeSoftRejectText( 
   108         const QString & text, bool userDefined )
   110         const QString & text,
   109     {
   111         bool userDefined )
   110     SMC_MOCK_METHOD2( int, const QString &, text, bool, userDefined )
   112     {
       
   113     SMC_MOCK_METHOD2( int, const QString &, text, 
       
   114         bool, userDefined )
   111     }
   115     }
   112 
   116 
   113 
   117 
   114 // -----------------------------------------------------------------------------
   118 // -----------------------------------------------------------------------------
   115 // CpSettingsWrapper::numberGroupingSupported
   119 // CpSettingsWrapper::numberGroupingSupported
   123 
   127 
   124 // -----------------------------------------------------------------------------
   128 // -----------------------------------------------------------------------------
   125 // CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled
   129 // CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled
   126 // -----------------------------------------------------------------------------
   130 // -----------------------------------------------------------------------------
   127 //
   131 //
   128 bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled()
   132 bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled(  )
   129 {
   133     {
   130     SMC_MOCK_METHOD0( bool )
   134     SMC_MOCK_METHOD0( bool )
   131 }
   135     }
       
   136 
   132 
   137 
   133 // -----------------------------------------------------------------------------
   138 // -----------------------------------------------------------------------------
   134 // CpSettingsWrapper::isPhoneOffline
   139 // CpSettingsWrapper::isPhoneOffline
   135 // -----------------------------------------------------------------------------
   140 // -----------------------------------------------------------------------------
   136 //
   141 //
   137 bool CpSettingsWrapper::isPhoneOffline() const
   142 bool CpSettingsWrapper::isPhoneOffline(  ) const
   138 {
   143     {
   139     SMC_MOCK_METHOD0( bool )
   144     SMC_MOCK_METHOD0( bool )
   140 }
   145     }
       
   146 
   141 
   147 
   142 // -----------------------------------------------------------------------------
   148 // -----------------------------------------------------------------------------
   143 // CpSettingsWrapper::isOngoingCall
   149 // CpSettingsWrapper::isOngoingCall
   144 // -----------------------------------------------------------------------------
   150 // -----------------------------------------------------------------------------
   145 //
   151 //
   146 bool CpSettingsWrapper::isOngoingCall() const
   152 bool CpSettingsWrapper::isOngoingCall(  ) const
   147 {
   153     {
   148     SMC_MOCK_METHOD0( bool )
   154     SMC_MOCK_METHOD0( bool )
   149 }
   155     }
       
   156 
       
   157 
       
   158 // -----------------------------------------------------------------------------
       
   159 // CpSettingsWrapper::forbiddenIconSupported
       
   160 // -----------------------------------------------------------------------------
       
   161 //
       
   162 bool CpSettingsWrapper::forbiddenIconSupported(  ) const
       
   163     {
       
   164     SMC_MOCK_METHOD0( bool )
       
   165     }
       
   166 
   150 
   167 
   151 // -----------------------------------------------------------------------------
   168 // -----------------------------------------------------------------------------
   152 // Tools::voipSupported
   169 // Tools::voipSupported
   153 // -----------------------------------------------------------------------------
   170 // -----------------------------------------------------------------------------
   154 //
   171 //
   165 bool Tools::videoSupported(  )
   182 bool Tools::videoSupported(  )
   166     {
   183     {
   167     SMC_MOCK_METHOD0( bool )
   184     SMC_MOCK_METHOD0( bool )
   168     }
   185     }
   169 
   186 
       
   187 
   170 // -----------------------------------------------------------------------------
   188 // -----------------------------------------------------------------------------
   171 // Tools::errorCodeTextMapping
   189 // Tools::errorCodeTextMapping
   172 // -----------------------------------------------------------------------------
   190 // -----------------------------------------------------------------------------
   173 //
   191 //
   174 bool Tools::errorCodeTextMapping( const int errorcode, QString & errorText )
   192 bool Tools::errorCodeTextMapping( 
   175     {
   193         const int errorcode,
   176     SMC_MOCK_METHOD2( bool, int, errorcode, QString &, errorText )
   194         QString & errorText )
   177     }
   195     {
   178 	
   196     SMC_MOCK_METHOD2( bool, const int, errorcode, 
       
   197         QString &, errorText )
       
   198     }
       
   199 
       
   200