cellular/telephonysettings/inc/psetcalldivertingdualaffectimpl.h
author hgs
Wed, 21 Jul 2010 18:26:52 +0300
changeset 33 8d5d7fcf9b59
permissions -rw-r--r--
201027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2008-2008 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Divert dual activation.
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
#ifndef CPSETCALLDIVERTINGDUALAFFECTIMPL_H
hgs
parents:
diff changeset
    20
#define CPSETCALLDIVERTINGDUALAFFECTIMPL_H
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
//  INCLUDES
hgs
parents:
diff changeset
    23
#include <e32base.h>
hgs
parents:
diff changeset
    24
#include <psetcalldiverting.h> 
hgs
parents:
diff changeset
    25
#include <mmretrieve.h>
hgs
parents:
diff changeset
    26
#include <ctsydomaincrkeys.h>
hgs
parents:
diff changeset
    27
#include "msssettingsobserver.h" 
hgs
parents:
diff changeset
    28
#include "nwdefs.h"             
hgs
parents:
diff changeset
    29
#include "psetconstants.h" 
hgs
parents:
diff changeset
    30
#include "psetcalldivertingbase.h" 
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
// CLASS DECLARATION
hgs
parents:
diff changeset
    33
class CPsetSAObserver;
hgs
parents:
diff changeset
    34
class CDesC16ArrayFlat;
hgs
parents:
diff changeset
    35
class RSSSettings;
hgs
parents:
diff changeset
    36
class MPsetDivertObserver;
hgs
parents:
diff changeset
    37
class MPsetRequestObserver;
hgs
parents:
diff changeset
    38
class RVmbxNumber;
hgs
parents:
diff changeset
    39
class CRepository;
hgs
parents:
diff changeset
    40
class TCallDivertNotifySetting;
hgs
parents:
diff changeset
    41
class MCallDiverting;
hgs
parents:
diff changeset
    42
class CPSetSubscriberIdCheck;
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
/**
hgs
parents:
diff changeset
    45
 * CPSetCallDivertingDualAffectImpl implements divert functionality which assumes
hgs
parents:
diff changeset
    46
 * that network makes always dual activation if device gives param EAllTeleAndBearer
hgs
parents:
diff changeset
    47
 * and used SIM supports feature.
hgs
parents:
diff changeset
    48
 *
hgs
parents:
diff changeset
    49
 *  @lib phonesettings
hgs
parents:
diff changeset
    50
 *  @since S60 v5.1
hgs
parents:
diff changeset
    51
 */
hgs
parents:
diff changeset
    52
NONSHARABLE_CLASS(CPSetCallDivertingDualAffectImpl) : public CPSetCallDivertingBase
hgs
parents:
diff changeset
    53
    {
hgs
parents:
diff changeset
    54
    public: // Constructors and destructors.
hgs
parents:
diff changeset
    55
hgs
parents:
diff changeset
    56
        /**
hgs
parents:
diff changeset
    57
        * Two-phased constructor.
hgs
parents:
diff changeset
    58
        *
hgs
parents:
diff changeset
    59
        * @return new instance of the class.
hgs
parents:
diff changeset
    60
        */
hgs
parents:
diff changeset
    61
        static CPSetCallDivertingDualAffectImpl* NewL(
hgs
parents:
diff changeset
    62
                MPsetDivertObserver& aObserver, 
hgs
parents:
diff changeset
    63
                RMobilePhone& aPhone,
hgs
parents:
diff changeset
    64
                CPsetCallDiverting* aDivert );
hgs
parents:
diff changeset
    65
hgs
parents:
diff changeset
    66
        /**
hgs
parents:
diff changeset
    67
        * Destructor.
hgs
parents:
diff changeset
    68
        */
hgs
parents:
diff changeset
    69
        ~CPSetCallDivertingDualAffectImpl();
hgs
parents:
diff changeset
    70
hgs
parents:
diff changeset
    71
    public: // From base class.
hgs
parents:
diff changeset
    72
hgs
parents:
diff changeset
    73
        /**
hgs
parents:
diff changeset
    74
        * @see MCallDiverting.
hgs
parents:
diff changeset
    75
        */ 
hgs
parents:
diff changeset
    76
        void SetDivertingL( const TCallDivertSetting& aDivert,  
hgs
parents:
diff changeset
    77
                            TBasicServiceGroups aBsc );
hgs
parents:
diff changeset
    78
        
hgs
parents:
diff changeset
    79
    public: //from base class CActive
hgs
parents:
diff changeset
    80
hgs
parents:
diff changeset
    81
        void RunL();
hgs
parents:
diff changeset
    82
        
hgs
parents:
diff changeset
    83
        void DoCancel();
hgs
parents:
diff changeset
    84
        
hgs
parents:
diff changeset
    85
        TInt RunError( TInt aError );
hgs
parents:
diff changeset
    86
            
hgs
parents:
diff changeset
    87
    protected:
hgs
parents:
diff changeset
    88
        
hgs
parents:
diff changeset
    89
        /**
hgs
parents:
diff changeset
    90
        * C++ constructor.
hgs
parents:
diff changeset
    91
        */
hgs
parents:
diff changeset
    92
        CPSetCallDivertingDualAffectImpl( RMobilePhone& aPhone, CPsetCallDiverting* aDivert );
hgs
parents:
diff changeset
    93
hgs
parents:
diff changeset
    94
        /**
hgs
parents:
diff changeset
    95
        * Symbian OS constructor.
hgs
parents:
diff changeset
    96
        */
hgs
parents:
diff changeset
    97
        void ConstructL( MPsetDivertObserver& aObserver );
hgs
parents:
diff changeset
    98
        
hgs
parents:
diff changeset
    99
    private:
hgs
parents:
diff changeset
   100
        
hgs
parents:
diff changeset
   101
        void HandleSANotificationL( 
hgs
parents:
diff changeset
   102
                TBool aVmbxDivert, 
hgs
parents:
diff changeset
   103
                TDivertingStatus& aCfStatus );
hgs
parents:
diff changeset
   104
        
hgs
parents:
diff changeset
   105
        void SetCurrentDivertInformation( 
hgs
parents:
diff changeset
   106
                TUnconditionalCFStatus& aStatus, 
hgs
parents:
diff changeset
   107
                const TBool aDivertChanged );
hgs
parents:
diff changeset
   108
        
hgs
parents:
diff changeset
   109
        TBool SetVoiceDivert( 
hgs
parents:
diff changeset
   110
                const TCallDivertSetting& aDivert,
hgs
parents:
diff changeset
   111
                const TBasicServiceGroups /*aBsc*/ );
hgs
parents:
diff changeset
   112
        
hgs
parents:
diff changeset
   113
        TSelectedLine GetSAAls();
hgs
parents:
diff changeset
   114
        
hgs
parents:
diff changeset
   115
    private:
hgs
parents:
diff changeset
   116
        
hgs
parents:
diff changeset
   117
        CPSetSubscriberIdCheck* iIdCheck;
hgs
parents:
diff changeset
   118
    };
hgs
parents:
diff changeset
   119
hgs
parents:
diff changeset
   120
#endif      // CPSETCALLDIVERTINGDUALAFFECTIMPL_H 
hgs
parents:
diff changeset
   121
hgs
parents:
diff changeset
   122
// End of File