cellular/telephonysettings/xqbindings/psetwrapper/tsrc/mocks/mock_psetcallbarring.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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 <smcmockclassincludes.h>
       
    18 #include <etelmm.h>
       
    19 #include <rsssettings.h> 
       
    20 #include <PsetCallBarring.h>
       
    21 #include <mpsetrequestobs.h>
       
    22 
       
    23 // ============================ MEMBER FUNCTIONS ===============================
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CPsetCallBarring::CPsetCallBarring
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CPsetCallBarring::CPsetCallBarring( 
       
    30         RMobilePhone & aPhone )
       
    31     :
       
    32 	CActive(EPriorityStandard),
       
    33 	iPhone(aPhone)
       
    34     {
       
    35     
       
    36     }
       
    37 
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // CPsetCallBarring::ConstructL
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 void CPsetCallBarring::ConstructL( 
       
    44         MPsetBarringObserver & /*aObserver*/ )
       
    45     {
       
    46     
       
    47     }
       
    48 
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CPsetCallBarring::NewL
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CPsetCallBarring * CPsetCallBarring::NewL( 
       
    55         MPsetBarringObserver & aObserver,
       
    56         RMobilePhone & aPhone )
       
    57     {
       
    58     SMC_MOCK_NEWL2( CPsetCallBarring *, MPsetBarringObserver &, aObserver, 
       
    59         RMobilePhone &, aPhone )
       
    60 
       
    61     CPsetCallBarring* self = new( ELeave ) CPsetCallBarring(aPhone);
       
    62     CleanupStack::PushL( self );
       
    63     //self->ConstructL()
       
    64     CleanupStack::Pop( self );
       
    65     return self;
       
    66     }
       
    67 
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // CPsetCallBarring::~CPsetCallBarring
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 CPsetCallBarring::~CPsetCallBarring(  )
       
    74     {
       
    75     
       
    76     }
       
    77 
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // CPsetCallBarring::SetBarringL
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 void CPsetCallBarring::SetBarringL( 
       
    84         const TCallBarringSetting & aBarring,
       
    85         TBasicServiceGroups aBsc )
       
    86     {
       
    87     SMC_MOCK_METHOD2( void, const TCallBarringSetting &, aBarring, 
       
    88         TBasicServiceGroups, aBsc )
       
    89     }
       
    90 
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // CPsetCallBarring::GetBarringStatusL
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 void CPsetCallBarring::GetBarringStatusL( 
       
    97         const TServiceGroup aGroup,
       
    98         const TBarringProgram aMode )
       
    99     {
       
   100     SMC_MOCK_METHOD2( void, const TServiceGroup, aGroup, 
       
   101         const TBarringProgram, aMode )
       
   102     }
       
   103 
       
   104 
       
   105 // -----------------------------------------------------------------------------
       
   106 // CPsetCallBarring::CancelCurrentRequest
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 TInt CPsetCallBarring::CancelCurrentRequest(  )
       
   110     {
       
   111     SMC_MOCK_METHOD0( TInt )
       
   112     }
       
   113 
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // CPsetCallBarring::PhoneSettingChanged
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 void CPsetCallBarring::PhoneSettingChanged( 
       
   120         TSSSettingsSetting aSetting,
       
   121         TInt aNewValue )
       
   122     {
       
   123     SMC_MOCK_METHOD2( void, TSSSettingsSetting, aSetting, 
       
   124         TInt, aNewValue )
       
   125     }
       
   126 
       
   127 
       
   128 // -----------------------------------------------------------------------------
       
   129 // CPsetCallBarring::ChangePasswordL
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 void CPsetCallBarring::ChangePasswordL( 
       
   133         RMobilePhone::TMobilePhonePasswordChangeV2 & aPwds,
       
   134         TBool aIsBarringPassword )
       
   135     {
       
   136     SMC_MOCK_METHOD2( void, RMobilePhone::TMobilePhonePasswordChangeV2 &, aPwds, 
       
   137         TBool, aIsBarringPassword )
       
   138     }
       
   139 
       
   140 
       
   141 // -----------------------------------------------------------------------------
       
   142 // CPsetCallBarring::ChangePasswordL
       
   143 // -----------------------------------------------------------------------------
       
   144 //
       
   145 void CPsetCallBarring::ChangePasswordL( 
       
   146         RMobilePhone::TMobilePhonePasswordChangeV2 & aPwds )
       
   147     {
       
   148     SMC_MOCK_METHOD1( void, RMobilePhone::TMobilePhonePasswordChangeV2 &, aPwds )
       
   149     }
       
   150 
       
   151 
       
   152 // -----------------------------------------------------------------------------
       
   153 // CPsetCallBarring::SetRequestObserver
       
   154 // -----------------------------------------------------------------------------
       
   155 //
       
   156 void CPsetCallBarring::SetRequestObserver( 
       
   157         MPsetRequestObserver * aObs )
       
   158     {
       
   159     SMC_MOCK_METHOD1( void, MPsetRequestObserver *, aObs )
       
   160     }
       
   161 
       
   162 
       
   163 // ---------------------------------------------------------------------------
       
   164 // CPsetCallBarring::DoCancel
       
   165 // ---------------------------------------------------------------------------
       
   166 //
       
   167 void CPsetCallBarring::DoCancel()
       
   168     {    
       
   169 
       
   170     }
       
   171 // ---------------------------------------------------------------------------
       
   172 // CPsetCallBarring::RunL
       
   173 
       
   174 // ---------------------------------------------------------------------------
       
   175 //
       
   176 void CPsetCallBarring::RunL()
       
   177     {
       
   178     }