bluetoothengine/btui/Ecom/src/BTUIBlockedDevicesView.cpp
branchRCL_3
changeset 6 6a29d5ad0713
parent 0 f63038272f30
child 14 f7fbeaeb166a
equal deleted inserted replaced
2:0b192a3a05a4 6:6a29d5ad0713
    34 #include "debug.h"
    34 #include "debug.h"
    35 #include "btui.h"
    35 #include "btui.h"
    36 
    36 
    37 #include <gstabhelper.h>
    37 #include <gstabhelper.h>
    38 #include <btui.mbg>						// Tab icon for General Setting
    38 #include <btui.mbg>						// Tab icon for General Setting
       
    39 #include <bluetoothuiutil.h>
    39 #include "BTUIMainView.h" 				// base View.
    40 #include "BTUIMainView.h" 				// base View.
       
    41 
    40 // ---------------------------------------------------------
    42 // ---------------------------------------------------------
    41 // CBTUIBlockedDevicesView::ConstructL
    43 // CBTUIBlockedDevicesView::ConstructL
    42 // Symbian 2nd phase constructor can leave.
    44 // Symbian 2nd phase constructor can leave.
    43 // ---------------------------------------------------------
    45 // ---------------------------------------------------------
    44 //
    46 //
   175         		break;
   177         		break;
   176         	        	
   178         	        	
   177         	TBTDevice device;
   179         	TBTDevice device;
   178             device.iIndex = bItemIndex;
   180             device.iIndex = bItemIndex;
   179         	iModel->GetDevice(device);
   181         	iModel->GetDevice(device);
   180         	        	
   182         	
       
   183         	RBuf s;
       
   184         	CleanupClosePushL( s );
       
   185         	BluetoothUiUtil::LoadResourceAndSubstringL(
       
   186         	        s, R_BT_WARN_ERASE_BLOCKED, device.iName, 0);
       
   187         	
   181         	CAknQueryDialog* dialog = CAknQueryDialog::NewL(CAknQueryDialog::EConfirmationTone);
   188         	CAknQueryDialog* dialog = CAknQueryDialog::NewL(CAknQueryDialog::EConfirmationTone);
   182         	HBufC* s = StringLoader::LoadLC(R_BT_WARN_ERASE_BLOCKED,device.iName);
   189 			TInt keypress = dialog->ExecuteLD(R_BT_GENERIC_QUERY, s);
   183 			TInt keypress = dialog->ExecuteLD(R_BT_GENERIC_QUERY, *s);
   190 
   184 
   191 			CleanupStack::PopAndDestroy(&s);
   185 			CleanupStack::PopAndDestroy(s);
       
   186 
   192 
   187 			if(keypress)  // User has accepted the dialog
   193 			if(keypress)  // User has accepted the dialog
   188 			    {
   194 			    {
   189         		device.iOperation = EOpUnblock;
   195         		device.iOperation = EOpUnblock;
   190                	iModel->ChangeDevice(device);
   196                	iModel->ChangeDevice(device);