securitysettings/eapqtdialogs/src/eapfastcreatemasterkeyquerydialog.cpp
author hgs
Mon, 23 Aug 2010 13:36:11 +0300
changeset 44 22d80358905b
parent 36 c98682f98478
child 49 43351a4f2da3
permissions -rw-r--r--
201033
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
36
hgs
parents: 34
diff changeset
    14
* Description: EAP-FAST Create Master Key Query Dialog implementation
34
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
/*
44
hgs
parents: 36
diff changeset
    19
* %version: 6 %
34
hgs
parents:
diff changeset
    20
*/
hgs
parents:
diff changeset
    21
36
hgs
parents: 34
diff changeset
    22
// System includes
34
hgs
parents:
diff changeset
    23
#include <HbLineEdit>
hgs
parents:
diff changeset
    24
#include <HbAction>
hgs
parents:
diff changeset
    25
#include <HbMessageBox>
hgs
parents:
diff changeset
    26
#include <HbTranslator>
hgs
parents:
diff changeset
    27
#include <eapqtvalidator.h>
hgs
parents:
diff changeset
    28
#include <eapqtexpandedeaptype.h>
hgs
parents:
diff changeset
    29
#include <eapqtconfiginterface.h>
hgs
parents:
diff changeset
    30
#include <eapqtconfig.h>
36
hgs
parents: 34
diff changeset
    31
hgs
parents: 34
diff changeset
    32
// User includes
34
hgs
parents:
diff changeset
    33
#include "eapfastcreatemasterkeyquerydialog.h"
hgs
parents:
diff changeset
    34
#include "OstTraceDefinitions.h"
hgs
parents:
diff changeset
    35
#ifdef OST_TRACE_COMPILER_IN_USE
44
hgs
parents: 36
diff changeset
    36
#include "eapfastcreatemasterkeyquerydialogTraces.h"
34
hgs
parents:
diff changeset
    37
#endif
hgs
parents:
diff changeset
    38
36
hgs
parents: 34
diff changeset
    39
/*!
hgs
parents: 34
diff changeset
    40
 * \class EapFastCreateMasterKeyQueryDialog
hgs
parents: 34
diff changeset
    41
 * \brief Implements EAP-FAST Create Master Key Query Dialog. 
hgs
parents: 34
diff changeset
    42
 */
34
hgs
parents:
diff changeset
    43
36
hgs
parents: 34
diff changeset
    44
// External function prototypes
hgs
parents: 34
diff changeset
    45
hgs
parents: 34
diff changeset
    46
// Local constants
hgs
parents: 34
diff changeset
    47
 
hgs
parents: 34
diff changeset
    48
// ======== LOCAL FUNCTIONS ========
hgs
parents: 34
diff changeset
    49
hgs
parents: 34
diff changeset
    50
// ======== MEMBER FUNCTIONS ========
hgs
parents: 34
diff changeset
    51
hgs
parents: 34
diff changeset
    52
/*!
hgs
parents: 34
diff changeset
    53
 * Constructor.
hgs
parents: 34
diff changeset
    54
 * 
hgs
parents: 34
diff changeset
    55
 * @param [in]  parameters Parameters for the Constructor.
34
hgs
parents:
diff changeset
    56
 */
hgs
parents:
diff changeset
    57
EapFastCreateMasterKeyQueryDialog::EapFastCreateMasterKeyQueryDialog(const QVariantMap &parameters) 
hgs
parents:
diff changeset
    58
 :mEdit1(NULL), 
hgs
parents:
diff changeset
    59
  mEdit2(NULL), 
hgs
parents:
diff changeset
    60
  mPwdValidator(NULL),
hgs
parents:
diff changeset
    61
  mTranslator(new HbTranslator("eapprompts")),
hgs
parents:
diff changeset
    62
  mErrMsgTranslator(new HbTranslator("cpdestinationplugin")),
hgs
parents:
diff changeset
    63
  mClose(false),
hgs
parents:
diff changeset
    64
  mOkActionPressed(false)
hgs
parents:
diff changeset
    65
{
hgs
parents:
diff changeset
    66
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_EAPFASTCREATEMASTERKEYQUERYDIALOG_ENTRY );
hgs
parents:
diff changeset
    67
    qDebug("EapFastCreateMasterKeyQueryDialog::EapFastCreateMasterKeyQueryDialog ENTER");
hgs
parents:
diff changeset
    68
       
hgs
parents:
diff changeset
    69
    createDialog(parameters);
hgs
parents:
diff changeset
    70
        
hgs
parents:
diff changeset
    71
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_EAPFASTCREATEMASTERKEYQUERYDIALOG_EXIT );
hgs
parents:
diff changeset
    72
    qDebug("EapFastCreateMasterKeyQueryDialog::EapFastCreateMasterKeyQueryDialog EXIT");
hgs
parents:
diff changeset
    73
}
hgs
parents:
diff changeset
    74
    
36
hgs
parents: 34
diff changeset
    75
/*!
34
hgs
parents:
diff changeset
    76
 * The construction of the dialog
36
hgs
parents: 34
diff changeset
    77
 *
hgs
parents: 34
diff changeset
    78
 * @param [in] parameters Parameters for the Construction of the dialog.
34
hgs
parents:
diff changeset
    79
 */ 
hgs
parents:
diff changeset
    80
void EapFastCreateMasterKeyQueryDialog::createDialog(const QVariantMap &parameters )
hgs
parents:
diff changeset
    81
{
hgs
parents:
diff changeset
    82
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_CREATEDIALOG_ENTRY );
hgs
parents:
diff changeset
    83
    qDebug("EapFastCreateMasterKeyQueryDialog::createDialog ENTER");
hgs
parents:
diff changeset
    84
    
hgs
parents:
diff changeset
    85
    Q_UNUSED(parameters)
hgs
parents:
diff changeset
    86
    
hgs
parents:
diff changeset
    87
    QString labelText1(hbTrId("txt_occ_dialog_create_password_for_encrypted_pac_s"));
hgs
parents:
diff changeset
    88
    QString labelText2(hbTrId("txt_occ_dialog_verify_password"));
hgs
parents:
diff changeset
    89
        
hgs
parents:
diff changeset
    90
    //Set the dialog to be on the screen until user reacts
hgs
parents:
diff changeset
    91
    //by pressing any of the Action buttons
hgs
parents:
diff changeset
    92
    this->setModal(true);
hgs
parents:
diff changeset
    93
    this->setTimeout(HbPopup::NoTimeout);
hgs
parents:
diff changeset
    94
    this->setDismissPolicy(HbPopup::NoDismiss);    
hgs
parents:
diff changeset
    95
    this->setAdditionalRowVisible(true);
hgs
parents:
diff changeset
    96
    
hgs
parents:
diff changeset
    97
    this->setPromptText(labelText1, 0);   
hgs
parents:
diff changeset
    98
    mEdit1 = this->lineEdit(0);
hgs
parents:
diff changeset
    99
    mEdit1->setEchoMode(HbLineEdit::Password);
hgs
parents:
diff changeset
   100
    
hgs
parents:
diff changeset
   101
    this->setPromptText(labelText2, 1);   
hgs
parents:
diff changeset
   102
    mEdit2 = this->lineEdit(1);        
hgs
parents:
diff changeset
   103
    mEdit2->setEchoMode(HbLineEdit::Password);
hgs
parents:
diff changeset
   104
    
hgs
parents:
diff changeset
   105
    EapQtConfigInterface eap_config_if;
hgs
parents:
diff changeset
   106
    
hgs
parents:
diff changeset
   107
    mPwdValidator.reset( eap_config_if.validatorPacStore(
hgs
parents:
diff changeset
   108
                EapQtPacStoreConfig::PacStorePassword) ); 
hgs
parents:
diff changeset
   109
    Q_ASSERT( mPwdValidator.isNull() == false );                
hgs
parents:
diff changeset
   110
                     
hgs
parents:
diff changeset
   111
    mPwdValidator->updateEditor(mEdit1);
hgs
parents:
diff changeset
   112
    
hgs
parents:
diff changeset
   113
   
hgs
parents:
diff changeset
   114
    //Remove all default actions from the dialog  
hgs
parents:
diff changeset
   115
    QList<QAction*> action_list = this->actions();        
hgs
parents:
diff changeset
   116
    for ( int i = 0; i < action_list.count(); i++ ) {
hgs
parents:
diff changeset
   117
        this->removeAction(action_list.at(i));
hgs
parents:
diff changeset
   118
        } 
hgs
parents:
diff changeset
   119
    
hgs
parents:
diff changeset
   120
    //Add a new Ok button action 
hgs
parents:
diff changeset
   121
    HbAction* actionOk = new HbAction(hbTrId("txt_common_button_ok"),this); 
hgs
parents:
diff changeset
   122
    this->addAction(actionOk);
hgs
parents:
diff changeset
   123
    
hgs
parents:
diff changeset
   124
    //Add a new Cancel button action 
hgs
parents:
diff changeset
   125
    HbAction* actionCancel = new HbAction(hbTrId("txt_common_button_cancel"),this);
hgs
parents:
diff changeset
   126
    this->addAction(actionCancel);    
hgs
parents:
diff changeset
   127
    
hgs
parents:
diff changeset
   128
    //Disconnect action Ok from the default SLOT and connect to 
hgs
parents:
diff changeset
   129
    //a SLOT owned by this class    
hgs
parents:
diff changeset
   130
    disconnect(actionOk, SIGNAL(triggered()),this, SLOT(close()));
hgs
parents:
diff changeset
   131
    bool connected = connect(actionOk, SIGNAL(triggered()), this, SLOT(okPressed()));
hgs
parents:
diff changeset
   132
    Q_ASSERT(connected == true);
hgs
parents:
diff changeset
   133
    
hgs
parents:
diff changeset
   134
    //Disconnect action Cancel from the default SLOT and connect to 
hgs
parents:
diff changeset
   135
    //a SLOT owned by this class  
hgs
parents:
diff changeset
   136
    disconnect(actionCancel, SIGNAL(triggered()),this, SLOT(close()));
hgs
parents:
diff changeset
   137
    connected = connect(actionCancel, SIGNAL(triggered()), this, SLOT(cancelPressed()));
hgs
parents:
diff changeset
   138
    Q_ASSERT(connected == true);
hgs
parents:
diff changeset
   139
    
hgs
parents:
diff changeset
   140
    // Connect the about to close and hide signals, so that we are able to inform 
hgs
parents:
diff changeset
   141
    // the caller that the dialog was closed   
hgs
parents:
diff changeset
   142
    connected = connect(this, SIGNAL(aboutToClose()), this, SLOT(closingDialog()));
hgs
parents:
diff changeset
   143
    Q_ASSERT(connected == true);
hgs
parents:
diff changeset
   144
    connected = connect(this, SIGNAL(aboutToHide()), this, SLOT(closingDialog()));
hgs
parents:
diff changeset
   145
    Q_ASSERT(connected == true);
hgs
parents:
diff changeset
   146
   
hgs
parents:
diff changeset
   147
    OstTraceFunctionExit0( DUP1_EAPFASTCREATEMASTERKEYQUERYDIALOG_CREATEDIALOG_EXIT );
hgs
parents:
diff changeset
   148
    qDebug("EapFastCreateMasterKeyQueryDialog::createDialog EXIT");
hgs
parents:
diff changeset
   149
}
hgs
parents:
diff changeset
   150
36
hgs
parents: 34
diff changeset
   151
/*!
hgs
parents: 34
diff changeset
   152
 * Destructor.
34
hgs
parents:
diff changeset
   153
 */
hgs
parents:
diff changeset
   154
EapFastCreateMasterKeyQueryDialog::~EapFastCreateMasterKeyQueryDialog()
hgs
parents:
diff changeset
   155
{
hgs
parents:
diff changeset
   156
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_DEAPFASTCREATEMASTERKEYQUERYDIALOG_ENTRY );
hgs
parents:
diff changeset
   157
    qDebug("EapFastCreateMasterKeyQueryDialog::~EapFastCreateMasterKeyQueryDialog");
hgs
parents:
diff changeset
   158
    
hgs
parents:
diff changeset
   159
    //The dialog widgets are deleted as the dialog is deleted
hgs
parents:
diff changeset
   160
    // mPwdValidator:   scoped pointer deleted automatically
hgs
parents:
diff changeset
   161
    
hgs
parents:
diff changeset
   162
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_DEAPFASTCREATEMASTERKEYQUERYDIALOG_EXIT );
hgs
parents:
diff changeset
   163
}
hgs
parents:
diff changeset
   164
36
hgs
parents: 34
diff changeset
   165
/*!
34
hgs
parents:
diff changeset
   166
 * Line edit validator
36
hgs
parents: 34
diff changeset
   167
 *
hgs
parents: 34
diff changeset
   168
 * @return true if content is valid.
34
hgs
parents:
diff changeset
   169
 */
hgs
parents:
diff changeset
   170
bool EapFastCreateMasterKeyQueryDialog::validate() const
hgs
parents:
diff changeset
   171
{
hgs
parents:
diff changeset
   172
    qDebug("EapFastCreateMasterKeyQueryDialog::validate");
hgs
parents:
diff changeset
   173
    
hgs
parents:
diff changeset
   174
    bool valid = false;
hgs
parents:
diff changeset
   175
    
hgs
parents:
diff changeset
   176
    if ( mPwdValidator->validate(mEdit1->text())== EapQtValidator::StatusOk &&
hgs
parents:
diff changeset
   177
        mEdit1->text() == mEdit2->text()) {
hgs
parents:
diff changeset
   178
        qDebug("EapFastCreateMasterKeyQueryDialog::validate: ret val: TRUE");
hgs
parents:
diff changeset
   179
        valid = true;
hgs
parents:
diff changeset
   180
    }
hgs
parents:
diff changeset
   181
    return valid;
hgs
parents:
diff changeset
   182
}
hgs
parents:
diff changeset
   183
36
hgs
parents: 34
diff changeset
   184
/*!
34
hgs
parents:
diff changeset
   185
 * Function is called when the Ok Action button is pressed
hgs
parents:
diff changeset
   186
 */
hgs
parents:
diff changeset
   187
void EapFastCreateMasterKeyQueryDialog::okPressed()
hgs
parents:
diff changeset
   188
{
hgs
parents:
diff changeset
   189
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_FIRSTBUTTONPRESSED_ENTRY );
hgs
parents:
diff changeset
   190
    qDebug("EapFastCreateMasterKeyQueryDialog::okPressed ENTER");
hgs
parents:
diff changeset
   191
    
hgs
parents:
diff changeset
   192
    if ( validate() == true ) {
hgs
parents:
diff changeset
   193
         
hgs
parents:
diff changeset
   194
            QVariantMap data;
hgs
parents:
diff changeset
   195
       
hgs
parents:
diff changeset
   196
            data["password"] = mEdit1->text();
hgs
parents:
diff changeset
   197
      
hgs
parents:
diff changeset
   198
            qDebug("EapFastCreateMasterKeyQueryDialog::okPressed: emit deviceDialogData");
hgs
parents:
diff changeset
   199
    
hgs
parents:
diff changeset
   200
            emit deviceDialogData(data); 
hgs
parents:
diff changeset
   201
            closeDeviceDialog(true);
hgs
parents:
diff changeset
   202
        }
hgs
parents:
diff changeset
   203
    else {
hgs
parents:
diff changeset
   204
        HbMessageBox *box = 
hgs
parents:
diff changeset
   205
            new HbMessageBox(hbTrId("txt_occ_info_passwords_do_not_match_try_again"),
hgs
parents:
diff changeset
   206
            HbMessageBox::MessageTypeInformation);
hgs
parents:
diff changeset
   207
        box->setAttribute(Qt::WA_DeleteOnClose);
hgs
parents:
diff changeset
   208
        box->open();       
hgs
parents:
diff changeset
   209
        }
hgs
parents:
diff changeset
   210
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_FIRSTBUTTONPRESSED_EXIT );
hgs
parents:
diff changeset
   211
    qDebug("EapFastCreateMasterKeyQueryDialog::okPressed EXIT");
hgs
parents:
diff changeset
   212
}
hgs
parents:
diff changeset
   213
36
hgs
parents: 34
diff changeset
   214
/*!
34
hgs
parents:
diff changeset
   215
 * Function is called when the Cancel Action button is pressed
hgs
parents:
diff changeset
   216
 */
hgs
parents:
diff changeset
   217
void EapFastCreateMasterKeyQueryDialog::cancelPressed()
hgs
parents:
diff changeset
   218
{
hgs
parents:
diff changeset
   219
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_CANCELPRESSED_ENTRY );
hgs
parents:
diff changeset
   220
    qDebug("EapFastCreateMasterKeyQueryDialog::cancelPressed ENTER");
hgs
parents:
diff changeset
   221
    
hgs
parents:
diff changeset
   222
    if (!mClose) {
hgs
parents:
diff changeset
   223
        mClose = true;
hgs
parents:
diff changeset
   224
        closeDeviceDialog(true);
hgs
parents:
diff changeset
   225
    }   
hgs
parents:
diff changeset
   226
    qDebug("EapFastCreateMasterKeyQueryDialog::cancelPressed EXIT");
hgs
parents:
diff changeset
   227
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_CANCELPRESSED_EXIT );
hgs
parents:
diff changeset
   228
}
hgs
parents:
diff changeset
   229
36
hgs
parents: 34
diff changeset
   230
/*!
34
hgs
parents:
diff changeset
   231
 * Function is called when the dialog is about to close
hgs
parents:
diff changeset
   232
 */
hgs
parents:
diff changeset
   233
void EapFastCreateMasterKeyQueryDialog::closingDialog()
hgs
parents:
diff changeset
   234
{
hgs
parents:
diff changeset
   235
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_CLOSINGDIALOG_ENTRY );
hgs
parents:
diff changeset
   236
    qDebug("EapFastCreateMasterKeyQueryDialog::closingDialog ENTER");
hgs
parents:
diff changeset
   237
 
hgs
parents:
diff changeset
   238
    qDebug("EapFastCreateMasterKeyQueryDialog::closingDialog EXIT");
hgs
parents:
diff changeset
   239
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_CLOSINGDIALOG_EXIT );
hgs
parents:
diff changeset
   240
}
hgs
parents:
diff changeset
   241
36
hgs
parents: 34
diff changeset
   242
/*!
hgs
parents: 34
diff changeset
   243
 * Device dialog parameters to be set while dialog is displayed.
hgs
parents: 34
diff changeset
   244
 * Not supported. 
hgs
parents: 34
diff changeset
   245
 *
hgs
parents: 34
diff changeset
   246
 * @param [in] parameters NOT USED
hgs
parents: 34
diff changeset
   247
 * @return true always.
hgs
parents: 34
diff changeset
   248
 */  
34
hgs
parents:
diff changeset
   249
bool EapFastCreateMasterKeyQueryDialog::setDeviceDialogParameters
hgs
parents:
diff changeset
   250
                (const QVariantMap &parameters)
hgs
parents:
diff changeset
   251
{
hgs
parents:
diff changeset
   252
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_SETDEVICEDIALOGPARAMETERS_ENTRY );
hgs
parents:
diff changeset
   253
    
hgs
parents:
diff changeset
   254
    Q_UNUSED(parameters)
hgs
parents:
diff changeset
   255
    // changing the dialog after presenting it is not supported.
hgs
parents:
diff changeset
   256
    
hgs
parents:
diff changeset
   257
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_SETDEVICEDIALOGPARAMETERS_EXIT );
hgs
parents:
diff changeset
   258
    return true;
hgs
parents:
diff changeset
   259
}
hgs
parents:
diff changeset
   260
36
hgs
parents: 34
diff changeset
   261
/*!
hgs
parents: 34
diff changeset
   262
 * Not supported
hgs
parents: 34
diff changeset
   263
 *
hgs
parents: 34
diff changeset
   264
 * @return 0 always returned.
34
hgs
parents:
diff changeset
   265
 */
hgs
parents:
diff changeset
   266
int EapFastCreateMasterKeyQueryDialog::deviceDialogError() const
hgs
parents:
diff changeset
   267
{
hgs
parents:
diff changeset
   268
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_DEVICEDIALOGERROR_ENTRY );
hgs
parents:
diff changeset
   269
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_DEVICEDIALOGERROR_EXIT);
hgs
parents:
diff changeset
   270
    return 0;
hgs
parents:
diff changeset
   271
}
hgs
parents:
diff changeset
   272
36
hgs
parents: 34
diff changeset
   273
/*!
34
hgs
parents:
diff changeset
   274
 * Dialog is closed and the signal about closing is emitted
36
hgs
parents: 34
diff changeset
   275
 *
hgs
parents: 34
diff changeset
   276
 * @param [in] byClient indicates when the user closes the dialog
34
hgs
parents:
diff changeset
   277
 */
hgs
parents:
diff changeset
   278
void EapFastCreateMasterKeyQueryDialog::closeDeviceDialog(bool byClient)
hgs
parents:
diff changeset
   279
{   
hgs
parents:
diff changeset
   280
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_CLOSEDEVICEDIALOG_ENTRY );
hgs
parents:
diff changeset
   281
    qDebug("EapFastCreateMasterKeyQueryDialog::closeDeviceDialog ENTER");
hgs
parents:
diff changeset
   282
        
hgs
parents:
diff changeset
   283
    //If the user closes the dialog, then the deviceDialogClosed is emitted
hgs
parents:
diff changeset
   284
    if ( byClient == true )
hgs
parents:
diff changeset
   285
        {
hgs
parents:
diff changeset
   286
        qDebug("EapFastCreateMasterKeyQueryDialog::closeDeviceDialog: emit deviceDialogClosed");
hgs
parents:
diff changeset
   287
        emit deviceDialogClosed();
hgs
parents:
diff changeset
   288
        }
hgs
parents:
diff changeset
   289
    
hgs
parents:
diff changeset
   290
    qDebug("EapFastCreateMasterKeyQueryDialog::closeDeviceDialog EXIT");
hgs
parents:
diff changeset
   291
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_CLOSEDEVICEDIALOG_EXIT );
hgs
parents:
diff changeset
   292
}
hgs
parents:
diff changeset
   293
36
hgs
parents: 34
diff changeset
   294
/*!
34
hgs
parents:
diff changeset
   295
 * This dialog widget is returned to the caller
36
hgs
parents: 34
diff changeset
   296
 *
hgs
parents: 34
diff changeset
   297
 * @return this dialog widget
34
hgs
parents:
diff changeset
   298
 */
hgs
parents:
diff changeset
   299
HbPopup *EapFastCreateMasterKeyQueryDialog::deviceDialogWidget() const
hgs
parents:
diff changeset
   300
{
hgs
parents:
diff changeset
   301
    OstTraceFunctionEntry0( EAPFASTCREATEMASTERKEYQUERYDIALOG_DEVICEDIALOGWIDGET_ENTRY );
hgs
parents:
diff changeset
   302
    OstTraceFunctionExit0( EAPFASTCREATEMASTERKEYQUERYDIALOG_DEVICEDIALOGWIDGET_EXIT );
hgs
parents:
diff changeset
   303
    
hgs
parents:
diff changeset
   304
    return const_cast<EapFastCreateMasterKeyQueryDialog*>(this);
hgs
parents:
diff changeset
   305
}
hgs
parents:
diff changeset
   306