cellular/telephonysettings/src/PSetUtility.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include "psetutility.h" 
    21 #include "PSetUtility.h"
    22 #include <rsssettings.h> 
    22 #include <RSSSettings.h>
    23 #include "phonesettingslogger.h" 
    23 #include "PhoneSettingsLogger.h"
    24 
    24 
    25 // ============================ MEMBER FUNCTIONS ===============================
    25 // ============================ MEMBER FUNCTIONS ===============================
    26 
    26 
    27 // ---------------------------------------------------------------------------
    27 // ---------------------------------------------------------------------------
    28 // 
    28 // 
   310             return RMobilePhone::ECallForwardingUnspecified;
   310             return RMobilePhone::ECallForwardingUnspecified;
   311         }
   311         }
   312     }
   312     }
   313 
   313 
   314 // ---------------------------------------------------------------------------
   314 // ---------------------------------------------------------------------------
   315 // 
       
   316 // Returns divert reason
       
   317 // 
       
   318 // ---------------------------------------------------------------------------
       
   319 //
       
   320 TCallDivertingCondition PSetUtility::GetDivertReason(
       
   321     RMobilePhone::TMobilePhoneCFCondition aCondition )
       
   322     {
       
   323     switch ( aCondition )
       
   324         {
       
   325         /*****************************************************
       
   326         *    Series 60 Customer / ETel
       
   327         *    Series 60  ETel API
       
   328         *****************************************************/
       
   329         case RMobilePhone::ECallForwardingAllConditionalCases:
       
   330             return EDivertConditionAllConditionalCases;
       
   331         case RMobilePhone::ECallForwardingAllCases:
       
   332             return EDivertConditionAllCalls;
       
   333         case RMobilePhone::ECallForwardingUnconditional:
       
   334             return EDivertConditionUnconditional;
       
   335         case RMobilePhone::ECallForwardingBusy:
       
   336            return EDivertConditionBusy;
       
   337         case RMobilePhone::ECallForwardingNoReply:
       
   338             return EDivertConditionNoReply;
       
   339         case RMobilePhone::ECallForwardingNotReachable:
       
   340         default:
       
   341            return EDivertConditionNotReachable;
       
   342         }
       
   343     }
       
   344 
       
   345 // ---------------------------------------------------------------------------
       
   346 // Verify that ALS is really used.
   315 // Verify that ALS is really used.
   347 // ---------------------------------------------------------------------------
   316 // ---------------------------------------------------------------------------
   348 //
   317 //
   349 RMobilePhone::TMobileService PSetUtility::VerifyAltLineUseL()
   318 RMobilePhone::TMobileService PSetUtility::VerifyAltLineUseL()
   350     {
   319     {