/*
* Copyright (c) 2008-2008 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: Divert dual activation.
*
*/
#ifndef CPSETCALLDIVERTINGDUALAFFECTIMPL_H
#define CPSETCALLDIVERTINGDUALAFFECTIMPL_H
// INCLUDES
#include <e32base.h>
#include <PsetCallDiverting.h>
#include <mmretrieve.h>
#include <ctsydomaincrkeys.h>
#include "MSSSettingsObserver.h"
#include "nwdefs.h"
#include "PsetConstants.h"
#include "PSetCallDivertingBase.h"
// CLASS DECLARATION
class CPsetSAObserver;
class CDesC16ArrayFlat;
class RSSSettings;
class MPsetDivertObserver;
class MPsetRequestObserver;
class RVmbxNumber;
class CRepository;
class TCallDivertNotifySetting;
class MCallDiverting;
class CPSetSubscriberIdCheck;
/**
* CPSetCallDivertingDualAffectImpl implements divert functionality which assumes
* that network makes always dual activation if device gives param EAllTeleAndBearer
* and used SIM supports feature.
*
* @lib phonesettings
* @since S60 v5.1
*/
NONSHARABLE_CLASS(CPSetCallDivertingDualAffectImpl) : public CPSetCallDivertingBase
{
public: // Constructors and destructors.
/**
* Two-phased constructor.
*
* @return new instance of the class.
*/
static CPSetCallDivertingDualAffectImpl* NewL(
MPsetDivertObserver& aObserver,
RMobilePhone& aPhone,
CPsetCallDiverting* aDivert );
/**
* Destructor.
*/
~CPSetCallDivertingDualAffectImpl();
public: // From base class.
/**
* @see MCallDiverting.
*/
void SetDivertingL( const TCallDivertSetting& aDivert,
TBasicServiceGroups aBsc );
public: //from base class CActive
void RunL();
void DoCancel();
TInt RunError( TInt aError );
protected:
/**
* C++ constructor.
*/
CPSetCallDivertingDualAffectImpl( RMobilePhone& aPhone, CPsetCallDiverting* aDivert );
/**
* Symbian OS constructor.
*/
void ConstructL( MPsetDivertObserver& aObserver );
private:
void HandleSANotificationL(
TBool aVmbxDivert,
TDivertingStatus& aCfStatus );
void SetCurrentDivertInformation(
TUnconditionalCFStatus& aStatus,
const TBool aDivertChanged );
TBool SetVoiceDivert(
const TCallDivertSetting& aDivert,
const TBasicServiceGroups /*aBsc*/ );
TSelectedLine GetSAAls();
private:
CPSetSubscriberIdCheck* iIdCheck;
};
#endif // CPSETCALLDIVERTINGDUALAFFECTIMPL_H
// End of File