phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_rsatservice.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 "rsatservice.h"
       
    20 
       
    21 class TSatIconInfo{
       
    22     
       
    23 };
       
    24 
       
    25 class RSatSession{
       
    26 
       
    27 };
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // RSatService::RSatService
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 RSatService::RSatService(  )
       
    36     //:
       
    37     //RSubSessionBase( /**/ )
       
    38     {
       
    39     
       
    40     }
       
    41 
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // RSatService::OpenL
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 void RSatService::OpenL( 
       
    48         const RSatSession & aSession )
       
    49     {
       
    50     SMC_MOCK_METHOD1( void, const RSatSession &, aSession )
       
    51     }
       
    52 
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // RSatService::Close
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 void RSatService::Close(  )
       
    59     {
       
    60     SMC_MOCK_METHOD0( void )
       
    61     }
       
    62 
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // RSatService::NotifySetupIdleModeTextChange
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 TInt RSatService::NotifySetupIdleModeTextChange( 
       
    69         TRequestStatus & aStatus )
       
    70     {
       
    71     SMC_MOCK_METHOD1( TInt, TRequestStatus &, aStatus )
       
    72     }
       
    73 
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // RSatService::NotifySetupIdleModeTextChangeCancel
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 void RSatService::NotifySetupIdleModeTextChangeCancel(  )
       
    80     {
       
    81     SMC_MOCK_METHOD0( void )
       
    82     }
       
    83 
       
    84 
       
    85 // -----------------------------------------------------------------------------
       
    86 // RSatService::GetSetupIdleModeTextL
       
    87 // -----------------------------------------------------------------------------
       
    88 //
       
    89 TBool RSatService::GetSetupIdleModeTextL( 
       
    90         HBufC * & aText,
       
    91         TSatIconQualifier & aIconQualifier,
       
    92         TUint8 & aRecordNumber )
       
    93     {
       
    94     aText = HBufC::NewL(15);
       
    95     SMC_MOCK_METHOD3( TBool, 
       
    96             HBufC* , aText,
       
    97             TSatIconQualifier &, aIconQualifier,
       
    98             TUint8 &, aRecordNumber )
       
    99     }
       
   100 
       
   101 
       
   102 // -----------------------------------------------------------------------------
       
   103 // RSatService::GetIconInfoL
       
   104 // -----------------------------------------------------------------------------
       
   105 //
       
   106 void RSatService::GetIconInfoL( 
       
   107         TUint8 aRecordNumber,
       
   108         RIconEf & aIconEf ) const
       
   109     {
       
   110     SMC_MOCK_METHOD2( void, TUint8, aRecordNumber, 
       
   111         RIconEf &, aIconEf )
       
   112     }
       
   113 
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // RSatService::GetIconL
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 CFbsBitmap * RSatService::GetIconL( 
       
   120         const TSatIconInfo & aIconInfo ) const
       
   121     {
       
   122     SMC_MOCK_METHOD1( CFbsBitmap *, const TSatIconInfo &, aIconInfo )
       
   123     }
       
   124 
       
   125 
       
   126 // -----------------------------------------------------------------------------
       
   127 // RSatService::SetIdleModeTextResponse
       
   128 // -----------------------------------------------------------------------------
       
   129 //
       
   130 void RSatService::SetIdleModeTextResponse( 
       
   131         const TSATIdleResult & aResult ) const
       
   132     {
       
   133     SMC_MOCK_METHOD1( void, const TSATIdleResult &, aResult )
       
   134     }
       
   135 
       
   136 
       
   137