sipplugins/sippsipsettingsui/src/SIPSettIntegerSetPage.cpp
branchRCL_3
changeset 12 a7d1e54a7332
parent 0 307788aac0a8
child 19 b5e99d8877c7
equal deleted inserted replaced
11:8517a9ac4a23 12:a7d1e54a7332
    25 #include    "SIPSettIntegerSetPage.h"
    25 #include    "SIPSettIntegerSetPage.h"
    26 #include    "tsipsettingsdata.h"
    26 #include    "tsipsettingsdata.h"
    27 #include    "gssippluginlogger.h"
    27 #include    "gssippluginlogger.h"
    28 
    28 
    29 _LIT( NULLString,"" );
    29 _LIT( NULLString,"" );
    30 _LIT16( ZeroString,"-1" );
       
    31 // ============================ MEMBER FUNCTIONS ===============================
    30 // ============================ MEMBER FUNCTIONS ===============================
    32 
    31 
    33 // -----------------------------------------------------------------------------
    32 // -----------------------------------------------------------------------------
    34 // CSIPSettIntegerSetPage::CSIPSettIntegerSetPage
    33 // CSIPSettIntegerSetPage::CSIPSettIntegerSetPage
    35 // C++ default constructor can NOT contain any code, that
    34 // C++ default constructor can NOT contain any code, that
    70         RestoreOriginalSettingL();
    69         RestoreOriginalSettingL();
    71         return ETrue;
    70         return ETrue;
    72         }
    71         }
    73        TextControl()->GetText( intText );
    72        TextControl()->GetText( intText );
    74        lex.Assign( intText.Ptr() );
    73        lex.Assign( intText.Ptr() );
    75        lex.Val( value );
    74        lex.Val( value );   	   
    76        if( value >= 0 && value <= 65535 || intText == NULLString )
    75        if( intText == NULLString )
    77     	   {
    76 	       {
    78            if( intText == NULLString )
    77            TextControl()->SetTextL(&NULLString);
    79     	       {
    78 	       }
    80                TextControl()->SetTextL(&ZeroString);
    79        UpdateSettingL();  
    81     	       }
       
    82            UpdateSettingL();  
       
    83             
    80             
    84            // Everything OK, save setting and exit page
    81        // Everything OK, save setting and exit page
    85            AcceptSettingL();	   
    82        AcceptSettingL();	   
    86     	   ret = ETrue;
    83 	   ret = ETrue;
    87     	   }
    84     	   
    88        else
    85       
    89     	   {
       
    90     	   ret = EFalse;
       
    91     	   }
       
    92         
    86         
    93         return ret;    
    87         return ret;    
    94     }
    88     }
    95 // -----------------------------------------------------------------------------
    89 // -----------------------------------------------------------------------------
    96 // CSIPSettIntegerSetPage::DynamicInitL
    90 // CSIPSettIntegerSetPage::DynamicInitL