cellular/telephonysettings/inc/psetcalldivertingbasicimpl.h
author hgs
Mon, 23 Aug 2010 15:50:31 +0300
changeset 42 35488577e233
parent 33 8d5d7fcf9b59
permissions -rw-r--r--
201033
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 basic implementation.
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 CPSETCALLDIVERTINGBASICIMPL_H
hgs
parents:
diff changeset
    20
#define CPSETCALLDIVERTINGBASICIMPL_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
hgs
parents:
diff changeset
    42
/**
hgs
parents:
diff changeset
    43
 * CPSetCallDivertingBasicImpl implements basic divert funcationality.
hgs
parents:
diff changeset
    44
 *
hgs
parents:
diff changeset
    45
 *  @lib phonesettings
hgs
parents:
diff changeset
    46
 *  @since S60 v5.1
hgs
parents:
diff changeset
    47
 */
hgs
parents:
diff changeset
    48
NONSHARABLE_CLASS(CPSetCallDivertingBasicImpl) : public CPSetCallDivertingBase
hgs
parents:
diff changeset
    49
    {
hgs
parents:
diff changeset
    50
    public: // Constructors and destructors.
hgs
parents:
diff changeset
    51
hgs
parents:
diff changeset
    52
        /**
hgs
parents:
diff changeset
    53
        * Two-phased constructor.
hgs
parents:
diff changeset
    54
        *
hgs
parents:
diff changeset
    55
        * @return new instance of the class.
hgs
parents:
diff changeset
    56
        */
hgs
parents:
diff changeset
    57
        static CPSetCallDivertingBasicImpl* NewL(
hgs
parents:
diff changeset
    58
                MPsetDivertObserver& aObserver, 
hgs
parents:
diff changeset
    59
                RMobilePhone& aPhone,
hgs
parents:
diff changeset
    60
                CPsetCallDiverting* aDivert );
hgs
parents:
diff changeset
    61
hgs
parents:
diff changeset
    62
        /**
hgs
parents:
diff changeset
    63
        * Destructor.
hgs
parents:
diff changeset
    64
        */
hgs
parents:
diff changeset
    65
        ~CPSetCallDivertingBasicImpl();
hgs
parents:
diff changeset
    66
hgs
parents:
diff changeset
    67
    public: // From base class.
hgs
parents:
diff changeset
    68
        
hgs
parents:
diff changeset
    69
        /**
hgs
parents:
diff changeset
    70
        * @see MCallDiverting.
hgs
parents:
diff changeset
    71
        */ 
hgs
parents:
diff changeset
    72
        void SetDivertingL( const TCallDivertSetting& aDivert,  
hgs
parents:
diff changeset
    73
                            TBasicServiceGroups aBsc );        
hgs
parents:
diff changeset
    74
hgs
parents:
diff changeset
    75
    public: //from base class CActive
hgs
parents:
diff changeset
    76
hgs
parents:
diff changeset
    77
        void RunL();
hgs
parents:
diff changeset
    78
        
hgs
parents:
diff changeset
    79
        void DoCancel();
hgs
parents:
diff changeset
    80
        
hgs
parents:
diff changeset
    81
        TInt RunError( TInt aError );
hgs
parents:
diff changeset
    82
            
hgs
parents:
diff changeset
    83
    protected:
hgs
parents:
diff changeset
    84
        
hgs
parents:
diff changeset
    85
        /**
hgs
parents:
diff changeset
    86
        * C++ constructor.
hgs
parents:
diff changeset
    87
        */
hgs
parents:
diff changeset
    88
        CPSetCallDivertingBasicImpl( RMobilePhone& aPhone, CPsetCallDiverting* aDivert );
hgs
parents:
diff changeset
    89
hgs
parents:
diff changeset
    90
        /**
hgs
parents:
diff changeset
    91
        * Symbian OS constructor.
hgs
parents:
diff changeset
    92
        */
hgs
parents:
diff changeset
    93
        void ConstructL( MPsetDivertObserver& aObserver );
hgs
parents:
diff changeset
    94
    
hgs
parents:
diff changeset
    95
    private:
hgs
parents:
diff changeset
    96
        
hgs
parents:
diff changeset
    97
        void HandleSANotificationL( 
hgs
parents:
diff changeset
    98
            TBool aVmbxDivert, TDivertingStatus& aCfStatus );
hgs
parents:
diff changeset
    99
        
hgs
parents:
diff changeset
   100
        TBool SetVoiceDivert( const TCallDivertSetting& aDivert,
hgs
parents:
diff changeset
   101
            const TBasicServiceGroups aBsc );
hgs
parents:
diff changeset
   102
        
hgs
parents:
diff changeset
   103
        TSelectedLine GetSAAls();
hgs
parents:
diff changeset
   104
        
hgs
parents:
diff changeset
   105
    private:
hgs
parents:
diff changeset
   106
        // Memorize requested service group
hgs
parents:
diff changeset
   107
        TServiceGroup iRequestedServiceGroup;
hgs
parents:
diff changeset
   108
    };
hgs
parents:
diff changeset
   109
hgs
parents:
diff changeset
   110
#endif      // CPSETCALLDIVERTINGBASICIMPL_H 
hgs
parents:
diff changeset
   111
hgs
parents:
diff changeset
   112
// End of File