cellular/telephonysettings/xqbindings/psetwrapper/tsrc/mocks/mock_cvoicemailbox.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 
       
    18 #include <QDebug>
       
    19 #include <smcmockclassincludes.h>
       
    20 #include <cvoicemailbox.h>
       
    21 #include <cvoicemailboxentry.h>
       
    22 #include <mvoicemailboxobserver.h>
       
    23 
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // TVoiceMailboxParams::TVoiceMailboxParams
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 TVoiceMailboxParams::TVoiceMailboxParams(  )
       
    32     {
       
    33     
       
    34     }
       
    35 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // TVoiceMailboxParams::Version
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 TInt TVoiceMailboxParams::Version(  )
       
    42     {
       
    43     SMC_MOCK_METHOD0( TInt )
       
    44     }
       
    45 
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // TVoiceMailboxParams::TVoiceMailboxParams
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 TVoiceMailboxParams::TVoiceMailboxParams( 
       
    52         const CVoiceMailboxEntry & aEntry )
       
    53     {
       
    54     
       
    55     }
       
    56 
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // CVoiceMailbox::CVoiceMailbox
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 CVoiceMailbox::CVoiceMailbox(  )
       
    63     //:
       
    64     //CBase( /**/ )
       
    65     {
       
    66     
       
    67     }
       
    68 
       
    69 
       
    70 // -----------------------------------------------------------------------------
       
    71 // CVoiceMailbox::ConstructL
       
    72 // -----------------------------------------------------------------------------
       
    73 //
       
    74 void CVoiceMailbox::ConstructL(  )
       
    75     {
       
    76     
       
    77     }
       
    78 
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CVoiceMailbox::NewL
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 CVoiceMailbox * CVoiceMailbox::NewL(  )
       
    85     {
       
    86     SMC_MOCK_NEWL0( CVoiceMailbox * )
       
    87 
       
    88     CVoiceMailbox* self = new( ELeave ) CVoiceMailbox;
       
    89     CleanupStack::PushL( self );
       
    90     //self->ConstructL()
       
    91     CleanupStack::Pop( self );
       
    92     return self;
       
    93     }
       
    94 
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CVoiceMailbox::NewLC
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 CVoiceMailbox * CVoiceMailbox::NewLC(  )
       
   101     {
       
   102     SMC_MOCK_NEWLC0( CVoiceMailbox * )
       
   103 
       
   104     CVoiceMailbox* self = new( ELeave ) CVoiceMailbox;
       
   105     CleanupStack::PushL( self );
       
   106     //self->ConstructL()
       
   107     return self;
       
   108     }
       
   109 
       
   110 
       
   111 // -----------------------------------------------------------------------------
       
   112 // CVoiceMailbox::~CVoiceMailbox
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 CVoiceMailbox::~CVoiceMailbox(  )
       
   116     {
       
   117     
       
   118     }
       
   119 
       
   120 
       
   121 // -----------------------------------------------------------------------------
       
   122 // CVoiceMailbox::GetStoredEntry
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 TInt CVoiceMailbox::GetStoredEntry( 
       
   126         const TVoiceMailboxParams & aParams,
       
   127         CVoiceMailboxEntry * & aEntry ) const
       
   128     {
       
   129 
       
   130     CVoiceMailboxEntry* vmbxEntry = NULL;
       
   131     vmbxEntry = CVoiceMailboxEntry::NewL();
       
   132     vmbxEntry->SetServiceId( KVmbxServiceVoice );
       
   133     vmbxEntry->SetVoiceMailboxType( EVmbxVoice );
       
   134     vmbxEntry->SetVmbxAlsLineType( EVmbxAlsLine1 );
       
   135     aEntry = vmbxEntry;
       
   136     SMC_MOCK_METHOD2( TInt, const TVoiceMailboxParams &, aParams, 
       
   137         CVoiceMailboxEntry *, aEntry )
       
   138     }
       
   139 
       
   140 
       
   141 // -----------------------------------------------------------------------------
       
   142 // CVoiceMailbox::SaveEntry
       
   143 // -----------------------------------------------------------------------------
       
   144 //
       
   145 TInt CVoiceMailbox::SaveEntry( 
       
   146         const CVoiceMailboxEntry & aEntry )
       
   147     {
       
   148     SMC_MOCK_METHOD1( TInt, const CVoiceMailboxEntry &, aEntry )
       
   149     }
       
   150 
       
   151 
       
   152 // -----------------------------------------------------------------------------
       
   153 // CVoiceMailbox::QueryNewEntry
       
   154 // -----------------------------------------------------------------------------
       
   155 //
       
   156 TInt CVoiceMailbox::QueryNewEntry( 
       
   157         const TVoiceMailboxParams & aParams,
       
   158         CVoiceMailboxEntry * & aEntry )
       
   159     {
       
   160     SMC_MOCK_METHOD2( TInt, const TVoiceMailboxParams &, aParams, 
       
   161         CVoiceMailboxEntry *, aEntry )
       
   162     }
       
   163 
       
   164 
       
   165 // -----------------------------------------------------------------------------
       
   166 // CVoiceMailbox::QueryChangeEntry
       
   167 // -----------------------------------------------------------------------------
       
   168 //
       
   169 TInt CVoiceMailbox::QueryChangeEntry( 
       
   170         const TVoiceMailboxParams & aParams,
       
   171         CVoiceMailboxEntry * & aEntry )
       
   172     {
       
   173     SMC_MOCK_METHOD2( TInt, const TVoiceMailboxParams &, aParams, 
       
   174         CVoiceMailboxEntry *, aEntry )
       
   175     }
       
   176 
       
   177 
       
   178 // -----------------------------------------------------------------------------
       
   179 // CVoiceMailbox::QueryVmbxType
       
   180 // -----------------------------------------------------------------------------
       
   181 //
       
   182 TInt CVoiceMailbox::QueryVmbxType( 
       
   183         TVoiceMailboxParams & aParams )
       
   184     {
       
   185     SMC_MOCK_METHOD1( TInt, TVoiceMailboxParams &, aParams )
       
   186     }
       
   187 
       
   188 
       
   189 // -----------------------------------------------------------------------------
       
   190 // CVoiceMailbox::NotifyVmbxNumberChangeL
       
   191 // -----------------------------------------------------------------------------
       
   192 //
       
   193 void CVoiceMailbox::NotifyVmbxNumberChangeL( 
       
   194         MVoiceMailboxObserver & aObserver,
       
   195         const TBool aNotifyOnActiveLineOnly )
       
   196     {
       
   197     SMC_MOCK_METHOD2( void, MVoiceMailboxObserver &, aObserver, 
       
   198         const TBool, aNotifyOnActiveLineOnly )
       
   199     }
       
   200 
       
   201 
       
   202 // -----------------------------------------------------------------------------
       
   203 // CVoiceMailbox::NotifyVmbxNumberChangeCancel
       
   204 // -----------------------------------------------------------------------------
       
   205 //
       
   206 void CVoiceMailbox::NotifyVmbxNumberChangeCancel(  )
       
   207     {
       
   208     SMC_MOCK_METHOD0( void )
       
   209     }
       
   210 
       
   211 
       
   212 // -----------------------------------------------------------------------------
       
   213 // CVoiceMailbox::CheckConfiguration
       
   214 // -----------------------------------------------------------------------------
       
   215 //
       
   216 TBool CVoiceMailbox::CheckConfiguration( 
       
   217         const TVoiceMailboxParams & aParams,
       
   218         const TInt aFlags )
       
   219     {
       
   220     SMC_MOCK_METHOD2( TBool, const TVoiceMailboxParams &, aParams, 
       
   221         const TInt, aFlags )
       
   222     }
       
   223 
       
   224 
       
   225 // -----------------------------------------------------------------------------
       
   226 // CVoiceMailbox::GetServiceIds
       
   227 // -----------------------------------------------------------------------------
       
   228 //
       
   229 TInt CVoiceMailbox::GetServiceIds( 
       
   230         RIdArray & aProfileIds ) const
       
   231     {
       
   232     SMC_MOCK_METHOD1( TInt, RIdArray &, aProfileIds )
       
   233     }
       
   234 
       
   235 
       
   236 // -----------------------------------------------------------------------------
       
   237 // CVoiceMailbox::SaveProvisionedEntry
       
   238 // -----------------------------------------------------------------------------
       
   239 //
       
   240 TInt CVoiceMailbox::SaveProvisionedEntry( 
       
   241         const CVoiceMailboxEntry & aEntry )
       
   242     {
       
   243     SMC_MOCK_METHOD1( TInt, const CVoiceMailboxEntry &, aEntry )
       
   244     }
       
   245 
       
   246