uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_presencepublishing.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_presencepublishing.cpp
       
    15 *
       
    16 */
       
    17 #include "s_presencepublishing.h"
       
    18 
       
    19 TXIMPRequestId gMPresencePublishingStubId;
       
    20 TInt gPublishOwnPresenceLeaves = KErrNone;
       
    21 
       
    22 TXIMPRequestId MPresencePublishingStub::SubscribeOwnPresenceL( const MPresenceInfoFilter& /*aPif*/ )
       
    23     {
       
    24     return gMPresencePublishingStubId;
       
    25     }
       
    26 
       
    27 TXIMPRequestId MPresencePublishingStub::UnsubscribeOwnPresenceL()
       
    28     {
       
    29     return gMPresencePublishingStubId;
       
    30     }
       
    31 
       
    32 TXIMPRequestId MPresencePublishingStub::PublishOwnPresenceL( const MPresenceInfo& /*aPresence*/ )
       
    33     {   
       
    34     User::LeaveIfError( gPublishOwnPresenceLeaves ); 
       
    35         
       
    36     return gMPresencePublishingStubId;
       
    37     }
       
    38 
       
    39 TXIMPRequestId MPresencePublishingStub::SubscribePresenceWatcherListL()
       
    40     {
       
    41     return gMPresencePublishingStubId;
       
    42     }
       
    43 
       
    44 TXIMPRequestId MPresencePublishingStub::UnsubscribePresenceWatcherListL()
       
    45     {
       
    46     return gMPresencePublishingStubId;
       
    47     }
       
    48 
       
    49 const TAny* MPresencePublishingStub::GetInterface(
       
    50                     TInt32 /*aInterfaceId*/,
       
    51                     TIfGetOps /*aOps*/ ) const
       
    52     {
       
    53     return NULL;
       
    54     }
       
    55 
       
    56 TAny* MPresencePublishingStub::GetInterface(
       
    57                     TInt32 /*aInterfaceId*/,
       
    58                     TIfGetOps /*aOps*/ )
       
    59     {
       
    60     return NULL;
       
    61     }
       
    62 
       
    63 TInt32 MPresencePublishingStub::GetInterfaceId() const
       
    64     {
       
    65     return 0;
       
    66     }