imstutils/imconnectionprovider/tsrc/imconnectionprovider_test/src/stubs/s_ximpsearchkeysevent.cpp
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     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_ximpsearchkeysevent.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "s_ximpsearchkeysevent.h"
       
    20 
       
    21 TInt32 gMXIMPSearchKeysEventStubInterfaceId = 0;
       
    22 
       
    23 
       
    24 TInt MSearchKeysEventStub::InfoCount()const
       
    25     {
       
    26     return KErrNone;
       
    27     }
       
    28     
       
    29 const MSearchKeyInfo& MSearchKeysEventStub::SearchKeyInfo( TInt /*aIndex*/ )const
       
    30     {
       
    31     MSearchKeyInfo* info;
       
    32     return *info;
       
    33     }
       
    34 
       
    35 
       
    36 const TAny* MSearchKeysEventStub::GetInterface(
       
    37                         TInt32 aInterfaceId,
       
    38                         TIfGetOps aOps ) const
       
    39     {
       
    40     return this;
       
    41     }
       
    42 
       
    43  TAny* MSearchKeysEventStub::GetInterface(
       
    44                         TInt32 aInterfaceId,
       
    45                         TIfGetOps aOps )
       
    46     {
       
    47     return NULL;
       
    48     }
       
    49 
       
    50 TInt32 MSearchKeysEventStub::GetInterfaceId() const
       
    51     {
       
    52     return gMXIMPSearchKeysEventStubInterfaceId;
       
    53     }