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