sipplugins/sippsipsettingsui/src/sipsettlistsipprofsetitemlist.cpp
branchRCL_3
changeset 20 0dcb073356a5
parent 19 b5e99d8877c7
--- a/sipplugins/sippsipsettingsui/src/sipsettlistsipprofsetitemlist.cpp	Tue Aug 31 15:32:57 2010 +0300
+++ b/sipplugins/sippsipsettingsui/src/sipsettlistsipprofsetitemlist.cpp	Wed Sep 01 12:27:36 2010 +0100
@@ -266,7 +266,8 @@
             }
         else if ( currentIndex == EGSItemServiceProfile ||
             currentIndex == EGSItemCompression ||
-            currentIndex == EGSItemSecurity )
+            currentIndex == EGSItemSecurity ||
+            currentIndex == EGSItemRegistration )   
             {
             SetNextSettingItemL( currentIndex );
             aListBox->ActivateL();    
@@ -535,6 +536,21 @@
             iSecurity->LoadL();
             iSecurity->UpdateListBoxTextL();        
             break;
+            
+        case EGSItemRegistration:       
+        	iRegistration->StoreL();
+            if ( iProfileData.iRegistrationMode == EGSWhenNeeded )
+                {
+                iProfileData.iRegistrationMode = EGSAlwaysOn;
+                }
+            else
+                {
+                iProfileData.iRegistrationMode = EGSWhenNeeded;
+                }
+            iRegistration->LoadL();
+            iRegistration->UpdateListBoxTextL();        
+            break;
+            
         default:                    // Other setting items are not supported.
             User::Leave( KErrNotSupported );
             break;