uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_ximprequestcompleteevent.cpp
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     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: s_ximprequestcompleteevent.cpp
       
    15 *
       
    16 */
       
    17 #include "s_ximprequestcompleteevent.h"
       
    18 
       
    19 TInt32 gMXIMPRequestCompleteEventStubInterfaceId = 0;
       
    20 TXIMPRequestId gMXIMPRequestCompleteEventStubRequestId;
       
    21 TBool gRequestCompleteEventResultCodeKerrNotSupported = 0;
       
    22 MyXIMPStatusStub gXIMPStatus;
       
    23 
       
    24 const TXIMPRequestId& MXIMPRequestCompleteEventStub::RequestId() const
       
    25     {
       
    26     return gMXIMPRequestCompleteEventStubRequestId;
       
    27     }
       
    28 
       
    29 const MXIMPStatus& MXIMPRequestCompleteEventStub::CompletionResult() const
       
    30     {    
       
    31     if (gRequestCompleteEventResultCodeKerrNotSupported)
       
    32 	    {
       
    33 	    gXIMPStatus.SetResultCode(KErrNotSupported);
       
    34 	    return gXIMPStatus;	
       
    35 	    }    
       
    36     
       
    37     gXIMPStatus.SetResultCode(KErrNone);
       
    38     
       
    39     return gXIMPStatus;
       
    40     }
       
    41 
       
    42 const MXIMPBase* MXIMPRequestCompleteEventStub::LookupCompletionDataByType(
       
    43             TInt32 /*aInterfaceId*/ ) const
       
    44     {
       
    45     MXIMPBase* base = NULL;
       
    46     return base;
       
    47     }
       
    48 
       
    49 const TAny* MXIMPRequestCompleteEventStub::GetInterface(
       
    50                     TInt32 /*aInterfaceId*/,
       
    51                     TIfGetOps /*Ops*/ ) const
       
    52     {
       
    53     return this;
       
    54     }
       
    55 
       
    56 TAny* MXIMPRequestCompleteEventStub::GetInterface(
       
    57                     TInt32 /*aInterfaceId*/,
       
    58                     TIfGetOps /*aOps*/ )
       
    59     {
       
    60     return NULL;
       
    61     }
       
    62 
       
    63 TInt32 MXIMPRequestCompleteEventStub::GetInterfaceId() const
       
    64     {
       
    65     return gMXIMPRequestCompleteEventStubInterfaceId;
       
    66     }