cellular/telephonysettings/src/PSetCallDivertingBasicImpl.cpp
changeset 13 e32024264ebb
parent 12 ae8abd0db65c
child 15 d7fc66ccd6fb
equal deleted inserted replaced
12:ae8abd0db65c 13:e32024264ebb
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include "PSetCallDivertingBasicImpl.h" 
    20 #include "psetcalldivertingbasicimpl.h" 
    21 
    21 
    22 #include <badesca.h>
    22 #include <badesca.h>
    23 #include <etelmm.h>           
    23 #include <etelmm.h>           
    24 #include <e32math.h>
    24 #include <e32math.h>
    25 // <-- QT PHONE START -->
       
    26 //#include <vmnumber.h>
       
    27 // <-- QT PHONE END-->
       
    28 #include <e32svr.h>
    25 #include <e32svr.h>
    29 #include <featmgr.h>
    26 #include <featmgr.h>
    30 #include <centralrepository.h>
    27 #include <centralrepository.h>
    31 #include <settingsinternalcrkeys.h> 
    28 #include <settingsinternalcrkeys.h> 
    32 
    29 
    33 #include "psetcalldiverting.h" 
    30 #include "psetcalldiverting.h" 
    34 #include "psetcontainer.h" 
    31 #include "psetcontainer.h" 
    35 #include "mpsetdivertobs.h" 
    32 #include "mpsetdivertobs.h" 
    36 #include "PsetTelephony.h" 
    33 #include "psettelephony.h" 
    37 #include "PSetPanic.h" 
    34 #include "psetpanic.h" 
    38 #include "mpsetrequestobs.h" 
    35 #include "mpsetrequestobs.h" 
    39 #include "PSetUtility.h" 
    36 #include "psetutility.h" 
    40 #include "PhoneSettingsLogger.h" 
    37 #include "phonesettingslogger.h" 
    41 #include "psetsaobserver.h" 
    38 #include "psetsaobserver.h" 
    42 
    39 
    43 //  LOCAL CONSTANTS AND MACROS
    40 //  LOCAL CONSTANTS AND MACROS
    44 _LIT( KPSetIntNbr, "+" );
    41 _LIT( KPSetIntNbr, "+" );
    45 _LIT( KPSNameOfClass, "CPSetCallDivertingBasicImpl" );
    42 _LIT( KPSNameOfClass, "CPSetCallDivertingBasicImpl" );
   203        case EPSetChangeDivert:
   200        case EPSetChangeDivert:
   204            {
   201            {
   205            __PHSLOGSTRING("[PHS]--> CPSetCallDivertingBasicImpl::RunL: EPSetChangeDivert" );
   202            __PHSLOGSTRING("[PHS]--> CPSetCallDivertingBasicImpl::RunL: EPSetChangeDivert" );
   206            //Notify Observer            
   203            //Notify Observer            
   207            iDivertStatus.iStatus = PSetUtility::GetChangeInfoStatus( iChangeInfo.iAction );
   204            iDivertStatus.iStatus = PSetUtility::GetChangeInfoStatus( iChangeInfo.iAction );
   208 // <-- QT PHONE START -->
       
   209            iDivertStatus.iNumber = iChangeInfo.iNumber.iTelNumber;
   205            iDivertStatus.iNumber = iChangeInfo.iNumber.iTelNumber;
   210            iDivertStatus.iCondition = PSetUtility::GetDivertReason(iReason);
   206            iDivertStatus.iCondition = PSetUtility::GetDivertReason(iReason);
   211            iDivertStatus.iNoReplyTimer = iChangeInfo.iTimeout;
   207            iDivertStatus.iNoReplyTimer = iChangeInfo.iTimeout;
   212 // <-- QT PHONE END -->
       
   213             // Check is done because of VOIP notification functionality(PSetNotesUI).
   208             // Check is done because of VOIP notification functionality(PSetNotesUI).
   214            if ( iVoiceDivert && !iVideoDivert )
   209            if ( iVoiceDivert && !iVideoDivert )
   215                {
   210                {
   216                iDivertStatus.iServiceGroup = EServiceGroupVoice;
   211                iDivertStatus.iServiceGroup = EServiceGroupVoice;
   217                }
   212                }