presencesettingsui/src/psuigspluginsettingviewcontainer.cpp
branchRCL_3
changeset 11 b4758b4b2d20
parent 0 c8caa15ef882
child 31 2580314736af
equal deleted inserted replaced
10:96b99892dd80 11:b4758b4b2d20
    30 #include "psuisipxdmsettingitem.h"
    30 #include "psuisipxdmsettingitem.h"
    31 #include "psuiintegersettingitem.h"
    31 #include "psuiintegersettingitem.h"
    32 #include "psuigsplugin.h"
    32 #include "psuigsplugin.h"
    33 #include "psuigspluginids.hrh"
    33 #include "psuigspluginids.hrh"
    34 #include <csxhelp/pre.hlp.hrh>
    34 #include <csxhelp/pre.hlp.hrh>
       
    35 #include <AknTextSettingPage.h>
       
    36 
    35 
    37 
    36 // ========================= MEMBER FUNCTIONS ================================
    38 // ========================= MEMBER FUNCTIONS ================================
    37 
    39 
    38 // ---------------------------------------------------------------------------
    40 // ---------------------------------------------------------------------------
    39 // CPSUIGSPluginSettingViewContainer::CPSUIGSPluginSettingViewContainer()
    41 // CPSUIGSPluginSettingViewContainer::CPSUIGSPluginSettingViewContainer()
   109                 aSettingId, settingSet.iPublicationInt );
   111                 aSettingId, settingSet.iPublicationInt );
   110             break;
   112             break;
   111         case EPSUIMaxSubscriptionsId:
   113         case EPSUIMaxSubscriptionsId:
   112             settingItem = new (ELeave) CPSUIIntegerSettingItem(
   114             settingItem = new (ELeave) CPSUIIntegerSettingItem(
   113                 aSettingId, settingSet.iMaxSubscriptions );
   115                 aSettingId, settingSet.iMaxSubscriptions );
       
   116             settingItem->SetSettingPageFlags(
       
   117                     CAknIntegerSettingPage::EEmptyValueAllowed);// Empty input allowed      
   114             break;
   118             break;
   115         case EPSUIMaxContactsInListId:
   119         case EPSUIMaxContactsInListId:
   116             settingItem = new (ELeave) CPSUIIntegerSettingItem( 
   120             settingItem = new (ELeave) CPSUIIntegerSettingItem( 
   117                 aSettingId, settingSet.iMaxContactsInList );
   121                 aSettingId, settingSet.iMaxContactsInList );
       
   122             settingItem->SetSettingPageFlags(
       
   123                     CAknIntegerSettingPage::EEmptyValueAllowed);// Empty input allowed      
   118             break;
   124             break;
   119         case EPSUIDomainSyntaxId:
   125         case EPSUIDomainSyntaxId:
   120             settingItem = new (ELeave) CAknTextSettingItem( 
   126             settingItem = new (ELeave) CAknTextSettingItem( 
   121                 aSettingId, settingSet.iDomainSyntax );
   127                 aSettingId, settingSet.iDomainSyntax );
   122             break;            
   128             break;            
   138     {
   144     {
   139     CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu );
   145     CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu );
   140 
   146 
   141     // update setting to setting-object
   147     // update setting to setting-object
   142     (*SettingItemArray())[aIndex]->StoreL();
   148     (*SettingItemArray())[aIndex]->StoreL();
       
   149     (*SettingItemArray())[aIndex]->UpdateListBoxTextL();
       
   150     ListBox()->DrawNow();
   143     
   151     
   144     if ( EPSUIServerNameId == aIndex )
   152     if ( EPSUIServerNameId == aIndex )
   145         {
   153         {
   146         UpdateTitleL();
   154         UpdateTitleL();
   147         }
   155         }