phoneengine/engineinfo/src/cpeengineinfoimpl.cpp
changeset 45 6b911d05207e
parent 37 ba76fc04e6c2
child 46 bc5a64e5bc3c
equal deleted inserted replaced
37:ba76fc04e6c2 45:6b911d05207e
    55     iBasicInfo.iDtmfString = KNullDesC;
    55     iBasicInfo.iDtmfString = KNullDesC;
    56     iBasicInfo.iErrorInfo.iErrorCode = ECCPErrorNone;
    56     iBasicInfo.iErrorInfo.iErrorCode = ECCPErrorNone;
    57     iBasicInfo.iErrorInfo.iCallId = KPECallIdNotUsed;
    57     iBasicInfo.iErrorInfo.iCallId = KPECallIdNotUsed;
    58     iBasicInfo.iProfileId = ECCPErrorNotFound;
    58     iBasicInfo.iProfileId = ECCPErrorNotFound;
    59     iBasicInfo.iProfileName = KNullDesC;
    59     iBasicInfo.iProfileName = KNullDesC;
    60     iBasicInfo.iPhoneIdentityParameters.iManufacturer = KNullDesC;
       
    61     iBasicInfo.iPhoneIdentityParameters.iModel = KNullDesC;
       
    62     iBasicInfo.iPhoneIdentityParameters.iRevision = KNullDesC;
       
    63     iBasicInfo.iPhoneIdentityParameters.iSerialNumber = KNullDesC;
       
    64     iBasicInfo.iLastCallDuration = KPENumberInitValue;
    60     iBasicInfo.iLastCallDuration = KPENumberInitValue;
    65     iBasicInfo.iVMBXNumbers.iVMBXL1 = KNullDesC;
    61     iBasicInfo.iVMBXNumbers.iVMBXL1 = KNullDesC;
    66     iBasicInfo.iVMBXNumbers.iVMBXL2 = KNullDesC;
    62     iBasicInfo.iVMBXNumbers.iVMBXL2 = KNullDesC;
    67     iBasicInfo.iRingingType = EProfileRingingTypeRinging;
    63     iBasicInfo.iRingingType = EProfileRingingTypeRinging;
    68     iBasicInfo.iTextToSpeech = EFalse;
    64     iBasicInfo.iTextToSpeech = EFalse;
    69     iBasicInfo.iPhoneNumberIsServiceCode = EFalse;
    65     iBasicInfo.iPhoneNumberIsServiceCode = EFalse;
    70     iBasicInfo.iTwoDigitSupportStatus = EFalse;
    66     iBasicInfo.iTwoDigitSupportStatus = EFalse;
    71     iBasicInfo.iLifeTimeData.iHours = 0;
       
    72     iBasicInfo.iLifeTimeData.iMinutes = 0;
       
    73 
    67 
    74     iBasicInfo.iNetworkRegistrationStatus = ENWStatusRegistrationUnknown;
    68     iBasicInfo.iNetworkRegistrationStatus = ENWStatusRegistrationUnknown;
    75 
    69 
    76     iCallCommandInfo.iIdRestrict = RMobileCall::EIdRestrictDefault;
    70     iCallCommandInfo.iIdRestrict = RMobileCall::EIdRestrictDefault;
    77     iCallCommandInfo.iEmergencyNumber = KNullDesC;
    71     iCallCommandInfo.iEmergencyNumber = KNullDesC;
   566     {
   560     {
   567     return iBasicInfo.iKeypadVolume;
   561     return iBasicInfo.iKeypadVolume;
   568     }
   562     }
   569 
   563 
   570 // -----------------------------------------------------------------------------
   564 // -----------------------------------------------------------------------------
   571 // CPEEngineInfoImpl::LifeTimerData
       
   572 // Gets lifetimerdata from the TPEBasicInfo structure.
       
   573 // (other items were commented in a header).
       
   574 // -----------------------------------------------------------------------------
       
   575 //
       
   576 const TPELifeTimeData& CPEEngineInfoImpl::LifeTimerData() const
       
   577     {
       
   578     return iBasicInfo.iLifeTimeData;
       
   579     }
       
   580 
       
   581 // -----------------------------------------------------------------------------
       
   582 // CPEEngineInfoImpl::LoggingIndicator
   565 // CPEEngineInfoImpl::LoggingIndicator
   583 // Get logging indicator from TPECallInfo.
   566 // Get logging indicator from TPECallInfo.
   584 // (other items were commented in a header).
   567 // (other items were commented in a header).
   585 // -----------------------------------------------------------------------------
   568 // -----------------------------------------------------------------------------
   586 //
   569 //
   624 // -----------------------------------------------------------------------------
   607 // -----------------------------------------------------------------------------
   625 //
   608 //
   626 const TBool& CPEEngineInfoImpl::PersonalToneStatus() const
   609 const TBool& CPEEngineInfoImpl::PersonalToneStatus() const
   627     {
   610     {
   628     return iBasicInfo.iPersonalToneStatus;
   611     return iBasicInfo.iPersonalToneStatus;
   629     }
       
   630 
       
   631 // -----------------------------------------------------------------------------
       
   632 // CPEEngineInfoImpl::PhoneIdentityParameters
       
   633 // Gets the phone identity parameters from the TPEBasicInfo structure
       
   634 // -----------------------------------------------------------------------------
       
   635 //
       
   636 const TPEPhoneIdentityParameters& CPEEngineInfoImpl::PhoneIdentityParameters() const
       
   637     {
       
   638     return iBasicInfo.iPhoneIdentityParameters;
       
   639     }
   612     }
   640 
   613 
   641 // -----------------------------------------------------------------------------
   614 // -----------------------------------------------------------------------------
   642 // CPEEngineInfoImpl::PhoneNumber
   615 // CPEEngineInfoImpl::PhoneNumber
   643 // Return the phone number from the TPECallCommandInfo structure.
   616 // Return the phone number from the TPECallCommandInfo structure.
  1338     {
  1311     {
  1339     iBasicInfo.iKeypadVolume = aKeypadVolume; 
  1312     iBasicInfo.iKeypadVolume = aKeypadVolume; 
  1340     }
  1313     }
  1341 
  1314 
  1342 // -----------------------------------------------------------------------------
  1315 // -----------------------------------------------------------------------------
  1343 // CPEEngineInfoImpl::SetLifeTimerData
       
  1344 // Sets lifetimer data of the phone to TPELifeTimeData-structure
       
  1345 // -----------------------------------------------------------------------------
       
  1346 //
       
  1347 void CPEEngineInfoImpl::SetLifeTimerData( 
       
  1348         TCCPLifeTimeDataPckg& aPckg )
       
  1349     {
       
  1350     iBasicInfo.iLifeTimeData.iHours = aPckg().iHours;
       
  1351     iBasicInfo.iLifeTimeData.iMinutes = aPckg().iMinutes;
       
  1352     }
       
  1353 
       
  1354 // -----------------------------------------------------------------------------
       
  1355 // CPEEngineInfoImpl::SetNetworkRegistrationStatus
  1316 // CPEEngineInfoImpl::SetNetworkRegistrationStatus
  1356 // Sets network registration status to TPEBasicInfo-structure
  1317 // Sets network registration status to TPEBasicInfo-structure
  1357 // -----------------------------------------------------------------------------
  1318 // -----------------------------------------------------------------------------
  1358 //
  1319 //
  1359 void CPEEngineInfoImpl::SetNetworkRegistrationStatus(
  1320 void CPEEngineInfoImpl::SetNetworkRegistrationStatus(
  1377     {
  1338     {
  1378     iBasicInfo.iPersonalToneStatus = aPersonalToneStatus; 
  1339     iBasicInfo.iPersonalToneStatus = aPersonalToneStatus; 
  1379     }
  1340     }
  1380 
  1341 
  1381 // -----------------------------------------------------------------------------
  1342 // -----------------------------------------------------------------------------
  1382 // CPEEngineInfoImpl::SetPhoneIdentityParameters
       
  1383 // Sets phone number to TPECallCommandInfo-structure
       
  1384 // -----------------------------------------------------------------------------
       
  1385 //
       
  1386 void CPEEngineInfoImpl::SetPhoneIdentityParameters(
       
  1387         const TPEPhoneIdentityParameters& aPhoneIdentityParameters ) 
       
  1388     { 
       
  1389     iBasicInfo.iPhoneIdentityParameters = aPhoneIdentityParameters; 
       
  1390     }
       
  1391 
       
  1392 // -----------------------------------------------------------------------------
       
  1393 // CPEEngineInfoImpl::SetPhoneNumberIsServiceCode
  1343 // CPEEngineInfoImpl::SetPhoneNumberIsServiceCode
  1394 // Sets phone number parsing result
  1344 // Sets phone number parsing result
  1395 // -----------------------------------------------------------------------------
  1345 // -----------------------------------------------------------------------------
  1396 //
  1346 //
  1397 void CPEEngineInfoImpl::SetPhoneNumberIsServiceCode( 
  1347 void CPEEngineInfoImpl::SetPhoneNumberIsServiceCode( 
  2548 // -----------------------------------------------------------------------------
  2498 // -----------------------------------------------------------------------------
  2549 // CPEEngineInfoImpl::SetRemoteColpNumber
  2499 // CPEEngineInfoImpl::SetRemoteColpNumber
  2550 // -----------------------------------------------------------------------------
  2500 // -----------------------------------------------------------------------------
  2551 //
  2501 //
  2552 void CPEEngineInfoImpl::SetRemoteColpNumber(
  2502 void CPEEngineInfoImpl::SetRemoteColpNumber(
  2553     TPEPhoneNumber& aColpNumber, 
  2503     const TPEPhoneNumber& aColpNumber, 
  2554     const TInt aCallId )
  2504     const TInt aCallId )
  2555     {
  2505     {
  2556     return ( *iRemoteInfo )[ aCallId ]->SetColpNumber( aColpNumber );
  2506     return ( *iRemoteInfo )[ aCallId ]->SetColpNumber( aColpNumber );
  2557     }
  2507     }
  2558 
  2508 
  2639     {
  2589     {
  2640     TEFLOGSTRING2( KTAINT, "ContactId: %d", iContactId );
  2590     TEFLOGSTRING2( KTAINT, "ContactId: %d", iContactId );
  2641     return iContactId;      
  2591     return iContactId;      
  2642     }
  2592     }
  2643 
  2593 
       
  2594 // -----------------------------------------------------------------------------
       
  2595 // CPEEngineInfoImpl::SetProtocolError
       
  2596 // Sets the protocol spesific error code to TPEErrorInfo
       
  2597 // -----------------------------------------------------------------------------
       
  2598 //
       
  2599 void CPEEngineInfoImpl::SetProtocolError( TInt aError )
       
  2600     {
       
  2601     iBasicInfo.iErrorInfo.iProtocolSpesificErrorCode = aError;
       
  2602     }
       
  2603 
  2644 // End of File
  2604 // End of File