/** Copyright (c) 2007 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: presence_avalability text**/#ifndef __AVABILITYTEXT_H#define __AVABILITYTEXT_H//availability text to be used with MPresenceBuddyInfo2::EBusy.//changed status values to sync with icons ids available in the branddata_LIT(KAwayState,"away");_LIT(KOnPhoneState,"onmobile");_LIT(KDndState,"dnd");//availability text to be used with MPresenceBuddyInfo2::EUnknownAvailability._LIT(KInvisibleState,"offline");//Extension key-value to be used with MPresenceBuddyInfo2.//Extension Keys_LIT(KExtensionKey,"ExtensionKey");//Extension Values._LIT8(KPendingRequestExtensionValue,"pending");_LIT8(KBlockedExtensionValue,"block");_LIT8(KServiceExtensionValue,"ServiceOut");_LIT8(KCallForwardExtensionValue,"CallForward");/*=========================Example For BUSY States =============================MPresenceBuddyInfo2* buddyPresInfo = MPresenceBuddyInfo2::NewLC();//This will set presence status as On phonebuddyPresInfo->SetAvailabilityL( MPresenceBuddyInfo2::EBusy,KOnPhoneState); //This will set presence status as AwaybuddyPresInfo->SetAvailabilityL( MPresenceBuddyInfo2::EBusy,KAwayState); //This will set presence status as do not disturebuddyPresInfo->SetAvailabilityL( MPresenceBuddyInfo2::EBusy,KDndState); NOTE:: if TDesC& aAvailabilityText(second arg) is other then mentioned and TAvailabilityValues aAvailability is MPresenceBuddyInfo2::EBusy then presence will be BUSY.==============================================================================*//*=========================Example For INVISIBLE State===========================MPresenceBuddyInfo2* buddyPresInfo = MPresenceBuddyInfo2::NewLC();//This will set presence status as Invisible.buddyPresInfo->SetAvailabilityL( MPresenceBuddyInfo2::EUnknownAvailability,KInvisibleState); NOTE:: if TDesC& aAvailabilityText(second arg) is other then mentioned and TAvailabilityValues aAvailability is MPresenceBuddyInfo2::EUnknownAvailability then presence will be UNKNOWN.==============================================================================*//*=========================Example For BLOCKED And PENDING State=================MPresenceBuddyInfo2* buddyPresInfo = MPresenceBuddyInfo2::NewLC();//This will set presence status as pendingbuddyPresInfo->SetAnyFieldL( KExtensionKey, KPendingRequestExtensionValue ); //This will set presence status as blockedbuddyPresInfo->SetAnyFieldL( KExtensionKey, KBlockedExtensionValue );NOTE:: if TDesC8& aValue(second arg) is other then mentioned then the(blocked)and pending states will not be shownprovided the prnding and blocked state are not required at the smae time.==============================================================================*//*=========================Example For ServiceOut And CallForward State=================MPresenceBuddyInfo2* buddyPresInfo = MPresenceBuddyInfo2::NewLC();//This will set presence status as CallForwardbuddyPresInfo->SetAnyFieldL( KExtensionKey, KCallForwardExtensionValue ); //This will set presence status as ServiceOutbuddyPresInfo->SetAnyFieldL( KExtensionKey, KServiceOutExtensionValue );NOTE:: if TDesC8& aValue(second arg) is other then mentioned then the(blocked)and pending states will not be shownprovided the prnding and blocked state are not required at the smae time.==============================================================================*/#endif //__AVABILITYTEXT_H// End of File