diff -r 2b7283837edb -r 3104fc151679 instantmessagesalert/tsrc/testinstantmsgalert/src/stubs/s_presencebuddyinfo2.h --- a/instantmessagesalert/tsrc/testinstantmsgalert/src/stubs/s_presencebuddyinfo2.h Thu Aug 19 09:41:53 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -/* -* s_presencebuddyinfo2.h :Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: s_presencebuddyinfo2.h -* -*/ -#ifndef MPRESENCEBUDDYINFO2STUB_H -#define MPRESENCEBUDDYINFO2STUB_H - -#include - -class MPresenceBuddyInfo2Stub : public MPresenceBuddyInfo2, - public CBase - { -public: - static MPresenceBuddyInfo2Stub* NewStubL(); - - void SetIdentityL( const TDesC& aBuddyId ); - - TPtrC BuddyId( ) const ; - - void SetAvailabilityL( - TAvailabilityValues aAvailability, - const TDesC& aAvailabilityText ) ; - - TAvailabilityValues Availability( ) ; - - TPtrC AvailabilityText( ); - - - void SetAvatarL( const TDesC8& aAvatar ) ; - - TPtrC8 Avatar( ) ; - - void SetStatusMessageL( - const TDesC& aStatusMessage ) ; - - TPtrC StatusMessage( ) ; - - void SetAnyFieldL( - const TDesC16& aKey, - const TDesC8& aValue ) ; - - TPtrC8 GetAnyField( - const TDesC16& aKey ); - - void GetFieldKeysL( - CDesCArrayFlat& aKeys ) ; - - void RemoveField(const TDesC& aKey ); - - TBool EqualsIdentity( - const MPresenceBuddyInfo2& aOtherInstance ) const ; - - void ExternalizeL( RWriteStream& aStream ) const ; - - void InternalizeL( RReadStream& aStream ) ; - ~MPresenceBuddyInfo2Stub() - { - iIds.ResetAndDestroy(); - iIds.Close(); - iValues.ResetAndDestroy(); - iValues.Close(); - } - -private: - RPointerArray iIds; - RPointerArray iValues; - }; - - - -#endif //MPRESENCEBUDDYINFO2STUB_H - - -