uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_presencebuddyinfolist.h
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     1 /*
       
     2 * s_presencebuddyinfolist.h : 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.h
       
    15 *
       
    16 */
       
    17 #ifndef MXIMPFWBUDDYPRESENCEINFOLISTSTUB_H
       
    18 #define MXIMPFWBUDDYPRESENCEINFOLISTSTUB_H
       
    19 
       
    20 #include <presencebuddyinfolist.h>
       
    21 #include <presencebuddyinfo.h>
       
    22 
       
    23 class MPresenceBuddyInfoListStub : public MPresenceBuddyInfoList
       
    24     {
       
    25     public:
       
    26         static MPresenceBuddyInfoListStub* NewStubL();
       
    27         
       
    28         RPointerArray<MPresenceBuddyInfo>& GetObjectCollection();
       
    29         TPtrC ServiceName() const;
       
    30         TInt Count() const;
       
    31         TInt AddOrReplace(MPresenceBuddyInfo* aBuddyPresenceInfo);
       
    32         TInt FindAndRemove(const MXIMPIdentity& aIdentity);
       
    33         MPresenceBuddyInfo* FindAndGet(const MXIMPIdentity& aIdentity) const;
       
    34         
       
    35         const TAny* GetInterface(
       
    36                             TInt32 aInterfaceId,
       
    37                             TIfGetOps aOps ) const;
       
    38     
       
    39         TAny* GetInterface(
       
    40                             TInt32 aInterfaceId,
       
    41                             TIfGetOps aOps );
       
    42     
       
    43         TInt32 GetInterfaceId() const;
       
    44         
       
    45         ~MPresenceBuddyInfoListStub()
       
    46 	        {
       
    47 	        iBuddyInfo.ResetAndDestroy();	
       
    48 	        }
       
    49         
       
    50     private :
       
    51     
       
    52     		RPointerArray<MPresenceBuddyInfo> 	iBuddyInfo;
       
    53     };
       
    54 
       
    55 
       
    56 
       
    57 #endif //MXIMPFWBUDDYPRESENCEINFOLISTSTUB_H
       
    58 
       
    59 
       
    60