phoneapp/phoneuicontrol/src/cphonereconnectquery.cpp
changeset 21 92ab7f8d0eab
parent 0 5f000ab63145
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include <mcauireconnectqueryobserver.h>
    20 // <-- QT PHONE START -->
       
    21 //#include <mcauireconnectqueryobserver.h>
       
    22 // <-- QT PHONE END -->
    21 #include <mpeengineinfo.h>
    23 #include <mpeengineinfo.h>
    22 
    24 
    23 #include "cphonereconnectquery.h"
    25 #include "cphonereconnectquery.h"
    24 #include "phoneconstants.h"
    26 #include "phoneconstants.h"
    25 #include "phonelogger.h"
    27 #include "phonelogger.h"
    26 #include "phonerssbase.h"
    28 #include "phonerssbase.h"
    27 #include "cphonetimer.h"
    29 #include "cphonetimer.h"
    28 #include "cphonestatehandle.h"
    30 #include "cphonestatehandle.h"
    29 #include "tphonecmdparamboolean.h"
    31 #include "tphonecmdparamboolean.h"
    30 #include "tphonecmdparaminteger.h"
    32 #include "tphonecmdparaminteger.h"
    31 #include "tphonecmdparammessageeditor.h"
    33 // <-- QT PHONE START -->
    32 #include "tphonecmdparamreconnectquery.h"
    34 //#include "tphonecmdparammessageeditor.h"
       
    35 //#include "tphonecmdparamreconnectquery.h"
       
    36 // <-- QT PHONE END -->
    33 #include "cphonemainresourceresolver.h"
    37 #include "cphonemainresourceresolver.h"
    34 
    38 
    35 // ================= MEMBER FUNCTIONS =======================
    39 // ================= MEMBER FUNCTIONS =======================
    36 
    40 
    37 // -----------------------------------------------------------------------------
    41 // -----------------------------------------------------------------------------
   105 // -----------------------------------------------------------
   109 // -----------------------------------------------------------
   106 //
   110 //
   107 void CPhoneReconnectQuery::HandleTimeOutL()
   111 void CPhoneReconnectQuery::HandleTimeOutL()
   108     {
   112     {
   109     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneReconnectQuery::HandleTimeOutL( ) ");
   113     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneReconnectQuery::HandleTimeOutL( ) ");
   110 
   114 // <-- QT PHONE START -->
   111     TPhoneCmdParamReconnectQuery reconQueryParam( *this );
   115 /* TPhoneCmdParamReconnectQuery reconQueryParam( *this );
   112     // Recipient number to CallUIs reconnect query in case message selected
   116     // Recipient number to CallUIs reconnect query in case message selected
   113     TPtrC phoneNumber( CPhoneStateHandle::Instance()->StateMachine()->
   117     TPtrC phoneNumber( CPhoneStateHandle::Instance()->StateMachine()->
   114         PhoneEngineInfo()->PhoneNumber() );
   118         PhoneEngineInfo()->PhoneNumber() );
   115     reconQueryParam.SetPhoneNumber( phoneNumber );
   119     reconQueryParam.SetPhoneNumber( phoneNumber );
   116     reconQueryParam.SetIncludeVideoOption( iIncludeVideo );
   120     reconQueryParam.SetIncludeVideoOption( iIncludeVideo );
   117     // Display reconnect query
   121     // Display reconnect query
   118     CPhoneStateHandle::Instance()->ViewCommandHandle()->
   122     CPhoneStateHandle::Instance()->ViewCommandHandle()->
   119         ExecuteCommandL( EPhoneViewShowQuery, &reconQueryParam );
   123         ExecuteCommandL( EPhoneViewShowQuery, &reconQueryParam );
   120     iDisplayingQuery = ETrue;
   124     iDisplayingQuery = ETrue;*/
       
   125 // <-- QT PHONE END -->
       
   126 
   121     }
   127     }
   122 
   128 
   123 // -----------------------------------------------------------
   129 // -----------------------------------------------------------
   124 // CPhoneReconnectQuery::OptionSelected
   130 // CPhoneReconnectQuery::OptionSelected
   125 // -----------------------------------------------------------
   131 // -----------------------------------------------------------
   153 
   159 
   154         case ECallUiReconTypeMsg:
   160         case ECallUiReconTypeMsg:
   155             // CallUi launches message editor
   161             // CallUi launches message editor
   156             break;
   162             break;
   157 
   163 
   158 		default:
   164         default:
   159             // Do nothing
   165             // Do nothing
   160             break;
   166             break;
   161         }
   167         }
   162     }
   168     }
   163 
   169 
   170     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneReconnectQuery::ShowNumberEntryL( ) ");
   176     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneReconnectQuery::ShowNumberEntryL( ) ");
   171     // Show number entry
   177     // Show number entry
   172     TPhoneCmdParamBoolean booleanParam;
   178     TPhoneCmdParamBoolean booleanParam;
   173     booleanParam.SetBoolean( ETrue );
   179     booleanParam.SetBoolean( ETrue );
   174     CPhoneStateHandle::Instance()->ViewCommandHandle()->
   180     CPhoneStateHandle::Instance()->ViewCommandHandle()->
   175     	ExecuteCommandL( EPhoneViewSetNumberEntryVisible, &booleanParam );
   181         ExecuteCommandL( EPhoneViewSetNumberEntryVisible, &booleanParam );
   176 
   182 
   177     // Set Number Entry CBA
   183     // Set Number Entry CBA
   178     TPhoneCmdParamInteger integerParam;
   184     TPhoneCmdParamInteger integerParam;
   179     integerParam.SetInteger( CPhoneMainResourceResolver::Instance()->
   185     integerParam.SetInteger( CPhoneMainResourceResolver::Instance()->
   180         ResolveResourceID( EPhoneNumberAcqCBA ) );
   186         ResolveResourceID( EPhoneNumberAcqCBA ) );