classicui_pub/setting_pages_api/tsrc/src/testsdksettingpagesblocksaknradiobuttonsettingpage.cpp
branchRCL_3
changeset 15 08e69e956a8c
parent 0 2f259fa3e83a
equal deleted inserted replaced
10:9f56a4e1b8ab 15:08e69e956a8c
   425     stream.Close();  
   425     stream.Close();  
   426     CleanupStack::PopAndDestroy( KFour );
   426     CleanupStack::PopAndDestroy( KFour );
   427     return KErrNone;
   427     return KErrNone;
   428     }
   428     }
   429 
   429 
       
   430 // -----------------------------------------------------------------------------
       
   431 // CTestSDKSettingPages::TestSettingpagesRadioButtonProcessCommandLL
       
   432 // -----------------------------------------------------------------------------
       
   433 //
       
   434 TInt CTestSDKSettingPages::TestSettingpagesRadioButtonProcessCommandLL( CStifItemParser& /*aItem*/ )
       
   435     { 
       
   436     CDesCArrayFlat* mArr = new( ELeave ) CDesCArrayFlat( KSize );
       
   437     CleanupStack::PushL( mArr );
       
   438 
       
   439     TBuf<KBufSize> tom( KTom );
       
   440     TBuf<KBufSize> jack( KJack );
       
   441     TBuf<KBufSize> mary( KMary );
       
   442     mArr->AppendL( tom );
       
   443     mArr->AppendL( jack );
       
   444     mArr->AppendL( mary );
       
   445     
       
   446     TInt optin( KZero );
       
   447     TBuf< KBufSize > buffer( KTestString );
       
   448     CTestRadioButtonSettingPage* dialog =
       
   449     new (ELeave) CTestRadioButtonSettingPage( &buffer, KOne, EAknCtPopupSettingList,
       
   450         R_EXAMPLE_EDITOR_CONTROL, R_EXAMPLE_SETTING_PAGE, optin, mArr );
       
   451     CleanupStack::PushL( dialog ); 
       
   452     
       
   453     dialog->ConstructL();
       
   454     CCoeEnv::Static()->AppUi()->AddToStackL( dialog );
       
   455     dialog->TestProcessCommandL( EAknSoftkeySelect );
       
   456     CCoeEnv::Static()->AppUi()->RemoveFromStack( dialog );  
       
   457     
       
   458     CleanupStack::PopAndDestroy( KTwo );
       
   459     return KErrNone;    
       
   460     }
       
   461 
   430 //End file
   462 //End file
   431 
   463 
   432 
   464