securitysettings/eapqtdialogs/src/eapfastinstallpacquerydialog.cpp
changeset 49 43351a4f2da3
parent 44 22d80358905b
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    14 * Description: EAP-FAST Install PAC Query Dialog implementation
    14 * Description: EAP-FAST Install PAC Query Dialog implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 5 %
    19 * %version: 6 %
    20 */
    20 */
    21 
    21 
    22 // System includes
    22 // System includes
    23 #include <HbTranslator>
    23 #include <HbTranslator>
    24 #include <HbAction>
    24 #include <HbAction>
   112     
   112     
   113     //Add a new No button action 
   113     //Add a new No button action 
   114     HbAction* actionNo = new HbAction(hbTrId("txt_common_button_no"),this);
   114     HbAction* actionNo = new HbAction(hbTrId("txt_common_button_no"),this);
   115     this->addAction(actionNo);    
   115     this->addAction(actionNo);    
   116     
   116     
   117     //Disconnect action Yes from the default SLOT and connect to 
   117     //Connect to a SLOT owned by this class
   118     //a SLOT owned by this class    
       
   119     disconnect(actionYes, SIGNAL(triggered()),this, SLOT(close()));
       
   120     bool connected = connect(actionYes, SIGNAL(triggered()), this, SLOT(yesPressed()));
   118     bool connected = connect(actionYes, SIGNAL(triggered()), this, SLOT(yesPressed()));
   121     Q_ASSERT(connected == true);
   119     Q_ASSERT(connected == true);
   122     
   120     
   123     //Disconnect action No from the default SLOT and connect to 
   121     //Connect to a SLOT owned by this class  
   124     //a SLOT owned by this class  
       
   125     disconnect(actionNo, SIGNAL(triggered()),this, SLOT(close()));
       
   126     connected = connect(actionNo, SIGNAL(triggered()), this, SLOT(noPressed()));
   122     connected = connect(actionNo, SIGNAL(triggered()), this, SLOT(noPressed()));
   127     Q_ASSERT(connected == true);
   123     Q_ASSERT(connected == true);
   128         
   124         
   129     // Connect the about to close and hide signals, so that we are able to inform 
   125     // Connect the about to close and hide signals, so that we are able to inform 
   130     // the caller that the dialog was closed    
   126     // the caller that the dialog was closed