uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_presencegrantrequestinfo.cpp
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     1 /*
       
     2 * s_presencegrantrequestinfo.cpp 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_presencegrantrequestinfo.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 #include "s_presencegrantrequestinfo.h"
       
    19 #include "s_ximpidentity.h"
       
    20 
       
    21 extern MyMXIMPIdentityStub gMXIMPIdentity; // already defined in MPresentityPresenceEventStub
       
    22 
       
    23 
       
    24 MPresenceGrantRequestInfo* MPresenceGrantRequestInfoStub::NewL()
       
    25     {
       
    26     MPresenceGrantRequestInfo*   self = new (ELeave) MPresenceGrantRequestInfoStub;
       
    27     return self;
       
    28     }
       
    29 const MXIMPIdentity& MPresenceGrantRequestInfoStub::RequestorId() const
       
    30     {
       
    31     gMXIMPIdentity.SetIdentityL(_L("identity"));
       
    32     return gMXIMPIdentity;
       
    33     }
       
    34 
       
    35 const TDesC16& MPresenceGrantRequestInfoStub::RequestorDisplayName() const
       
    36     {
       
    37     return KNullDesC();
       
    38     }
       
    39 
       
    40 void MPresenceGrantRequestInfoStub::SetRequestorIdL( MXIMPIdentity* /*aIdentity*/ )
       
    41     {   
       
    42     }   
       
    43 
       
    44 void MPresenceGrantRequestInfoStub::SetRequestorDisplayNameL( const TDesC16& /*aDisplayName*/ )
       
    45     {   
       
    46     }
       
    47 
       
    48 const TAny* MPresenceGrantRequestInfoStub::GetInterface(
       
    49                     TInt32 /*aInterfaceId*/,
       
    50                     TIfGetOps /*aOps*/ ) const
       
    51     {
       
    52     return this;
       
    53     }
       
    54 
       
    55 TAny* MPresenceGrantRequestInfoStub::GetInterface(
       
    56                     TInt32 /*aInterfaceId*/,
       
    57                     TIfGetOps /*aOps*/ )
       
    58     {
       
    59     return NULL;
       
    60     }
       
    61 
       
    62 TInt32 MPresenceGrantRequestInfoStub::GetInterfaceId() const
       
    63     {
       
    64     return 0;
       
    65     }
       
    66