phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpplugincommon.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 27 2f8f8080a020
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     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 )
       
    62     }
       
    63 
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CpSettingsWrapper::readVtVideoSending
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 int CpSettingsWrapper::readVtVideoSending(  )
       
    70     {
       
    71     SMC_MOCK_METHOD0( int )
       
    72     }
       
    73 
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CpSettingsWrapper::writeVtVideoSending
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 int CpSettingsWrapper::writeVtVideoSending( 
       
    80         int value )
       
    81     {
       
    82     SMC_MOCK_METHOD1( int, int, value )
    61     }
    83     }
    62 
    84 
    63 
    85 
    64 // -----------------------------------------------------------------------------
    86 // -----------------------------------------------------------------------------
    65 // CpSettingsWrapper::readSoftRejectText
    87 // CpSettingsWrapper::readSoftRejectText
    73     if(i==0){
    95     if(i==0){
    74         text = "Soittelen myöhemmin...";
    96         text = "Soittelen myöhemmin...";
    75         userDefined = true;
    97         userDefined = true;
    76         i=1;
    98         i=1;
    77     }
    99     }
    78     SMC_MOCK_METHOD2( void, QString &, text, bool, userDefined )
   100     SMC_MOCK_METHOD2( void, QString &, text,
       
   101         bool &, userDefined )
    79     }
   102     }
    80 
   103 
    81 
   104 
    82 // -----------------------------------------------------------------------------
   105 // -----------------------------------------------------------------------------
    83 // CpSettingsWrapper::writeSoftRejectText
   106 // CpSettingsWrapper::writeSoftRejectText
    84 // -----------------------------------------------------------------------------
   107 // -----------------------------------------------------------------------------
    85 //
   108 //
    86 int CpSettingsWrapper::writeSoftRejectText( 
   109 int CpSettingsWrapper::writeSoftRejectText( 
    87         const QString & text, bool userDefined )
   110         const QString & text,
    88     {
   111         bool userDefined )
    89     SMC_MOCK_METHOD2( int, const QString &, text, bool, userDefined )
   112     {
       
   113     SMC_MOCK_METHOD2( int, const QString &, text, 
       
   114         bool, userDefined )
    90     }
   115     }
    91 
   116 
    92 
   117 
    93 // -----------------------------------------------------------------------------
   118 // -----------------------------------------------------------------------------
    94 // CpSettingsWrapper::numberGroupingSupported
   119 // CpSettingsWrapper::numberGroupingSupported
   102 
   127 
   103 // -----------------------------------------------------------------------------
   128 // -----------------------------------------------------------------------------
   104 // CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled
   129 // CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled
   105 // -----------------------------------------------------------------------------
   130 // -----------------------------------------------------------------------------
   106 //
   131 //
   107 bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled()
   132 bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled(  )
   108 {
   133     {
   109     SMC_MOCK_METHOD0( bool )
   134     SMC_MOCK_METHOD0( bool )
   110 }
   135     }
       
   136 
   111 
   137 
   112 // -----------------------------------------------------------------------------
   138 // -----------------------------------------------------------------------------
   113 // CpSettingsWrapper::isPhoneOffline
   139 // CpSettingsWrapper::isPhoneOffline
   114 // -----------------------------------------------------------------------------
   140 // -----------------------------------------------------------------------------
   115 //
   141 //
   116 bool CpSettingsWrapper::isPhoneOffline() const
   142 bool CpSettingsWrapper::isPhoneOffline(  ) const
   117 {
   143     {
   118     SMC_MOCK_METHOD0( bool )
   144     SMC_MOCK_METHOD0( bool )
   119 }
   145     }
       
   146 
       
   147 
       
   148 // -----------------------------------------------------------------------------
       
   149 // CpSettingsWrapper::isOngoingCall
       
   150 // -----------------------------------------------------------------------------
       
   151 //
       
   152 bool CpSettingsWrapper::isOngoingCall(  ) const
       
   153     {
       
   154     SMC_MOCK_METHOD0( bool )
       
   155     }
       
   156 
       
   157 
       
   158 // -----------------------------------------------------------------------------
       
   159 // CpSettingsWrapper::forbiddenIconSupported
       
   160 // -----------------------------------------------------------------------------
       
   161 //
       
   162 bool CpSettingsWrapper::forbiddenIconSupported(  ) const
       
   163     {
       
   164     SMC_MOCK_METHOD0( bool )
       
   165     }
   120 
   166 
   121 
   167 
   122 // -----------------------------------------------------------------------------
   168 // -----------------------------------------------------------------------------
   123 // Tools::voipSupported
   169 // Tools::voipSupported
   124 // -----------------------------------------------------------------------------
   170 // -----------------------------------------------------------------------------
   136 bool Tools::videoSupported(  )
   182 bool Tools::videoSupported(  )
   137     {
   183     {
   138     SMC_MOCK_METHOD0( bool )
   184     SMC_MOCK_METHOD0( bool )
   139     }
   185     }
   140 
   186 
       
   187 
   141 // -----------------------------------------------------------------------------
   188 // -----------------------------------------------------------------------------
   142 // Tools::errorCodeTextMapping
   189 // Tools::errorCodeTextMapping
   143 // -----------------------------------------------------------------------------
   190 // -----------------------------------------------------------------------------
   144 //
   191 //
   145 bool Tools::errorCodeTextMapping( const int errorcode, QString & errorText )
   192 bool Tools::errorCodeTextMapping( 
   146     {
   193         const int errorcode,
   147     SMC_MOCK_METHOD2( bool, int, errorcode, QString &, errorText )
   194         QString & errorText )
   148     }
   195     {
   149 	
   196     SMC_MOCK_METHOD2( bool, const int, errorcode, 
       
   197         QString &, errorText )
       
   198     }
       
   199 
       
   200