imstutils/imconnectionprovider/tsrc/imconnectionprovider_test/src/stubs/s_ximpcontextstateevent.cpp
branchRCL_3
changeset 22 3104fc151679
parent 21 2b7283837edb
child 23 9a48e301e94b
equal deleted inserted replaced
21:2b7283837edb 22: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_ximpcontextstateevent.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 #include "s_ximpcontextstateevent.h"
       
    19 
       
    20 
       
    21 TInt32 gMXIMPContextStateEventStubInterfaceId = 0;
       
    22 
       
    23 const MXIMPContextState& MXIMPContextStateEventStub::ContextState() const
       
    24     {
       
    25     MXIMPContextState* state;
       
    26     return *state;
       
    27     }
       
    28 
       
    29 const MXIMPStatus* MXIMPContextStateEventStub::StateChangeReason() const
       
    30     {
       
    31     MXIMPStatus* status;
       
    32     return status;
       
    33     }
       
    34 
       
    35 const TAny* MXIMPContextStateEventStub::GetInterface(
       
    36                     TInt32 aInterfaceId,
       
    37                     TIfGetOps aOps ) const
       
    38     {
       
    39     return this;
       
    40     }
       
    41 
       
    42 TAny* MXIMPContextStateEventStub::GetInterface(
       
    43                     TInt32 aInterfaceId,
       
    44                     TIfGetOps aOps )
       
    45     {
       
    46     return NULL;
       
    47     }
       
    48 
       
    49 TInt32 MXIMPContextStateEventStub::GetInterfaceId() const
       
    50     {
       
    51     return gMXIMPContextStateEventStubInterfaceId;
       
    52     }