uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_presencebuddyinfolist.cpp
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * s_presencebuddyinfolist.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_presencebuddyinfolist.cpp
       
    15 *
       
    16 */
       
    17 #include "s_presencebuddyinfolist.h"
       
    18 
       
    19 
       
    20 MPresenceBuddyInfoListStub* MPresenceBuddyInfoListStub::NewStubL()
       
    21     {
       
    22     return new ( ELeave ) MPresenceBuddyInfoListStub();
       
    23     }
       
    24 
       
    25  
       
    26 RPointerArray<MPresenceBuddyInfo>& MPresenceBuddyInfoListStub::GetObjectCollection()
       
    27     {
       
    28     //RPointerArray<MPresenceBuddyInfo> array;
       
    29     return iBuddyInfo ; // *gPresenceArry;
       
    30     }
       
    31 
       
    32 TPtrC MPresenceBuddyInfoListStub::ServiceName() const
       
    33     {
       
    34     TPtrC ptr;
       
    35     return ptr;
       
    36     }
       
    37 
       
    38 TInt MPresenceBuddyInfoListStub::Count() const
       
    39     {
       
    40     return iBuddyInfo.Count();
       
    41     }
       
    42 
       
    43 TInt MPresenceBuddyInfoListStub::AddOrReplace(
       
    44     MPresenceBuddyInfo* aBuddyPresenceInfo)
       
    45     {
       
    46     iBuddyInfo.Append( aBuddyPresenceInfo );
       
    47     return KErrNone;      
       
    48     }
       
    49 
       
    50 TInt MPresenceBuddyInfoListStub::FindAndRemove(
       
    51     const MXIMPIdentity& /*aIdentity*/)
       
    52     {
       
    53     return KErrNone;
       
    54     }
       
    55 
       
    56 MPresenceBuddyInfo* MPresenceBuddyInfoListStub::FindAndGet(
       
    57     const MXIMPIdentity& /*aIdentity*/) const
       
    58     {
       
    59     MPresenceBuddyInfo* info = NULL;
       
    60     return info;
       
    61     }
       
    62 
       
    63 
       
    64 const TAny* MPresenceBuddyInfoListStub::GetInterface(
       
    65                     TInt32 /*aInterfaceId*/,
       
    66                     TIfGetOps /*aOps*/ ) const
       
    67     {
       
    68     return NULL;
       
    69     }
       
    70 
       
    71 TAny* MPresenceBuddyInfoListStub::GetInterface(
       
    72                     TInt32 /*aInterfaceId*/,
       
    73                     TIfGetOps /*aOps*/ )
       
    74     {
       
    75     return NULL;
       
    76     }
       
    77 
       
    78 TInt32 MPresenceBuddyInfoListStub::GetInterfaceId() const
       
    79     {
       
    80     return 0;
       
    81     }
       
    82 
       
    83 
       
    84 
       
    85