wlanutilities/eapwizard/src/eapwizardpageidentity.cpp
author hgs
Fri, 09 Jul 2010 10:38:19 +0300
changeset 43 72ebcbb64834
parent 39 7b3e49e4608a
child 49 fb81b597edf1
permissions -rw-r--r--
201027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39
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
 *
hgs
parents:
diff changeset
    14
 * Description: 
hgs
parents:
diff changeset
    15
 *   EAP Wizard Page: EAP Identity.
hgs
parents:
diff changeset
    16
 *
hgs
parents:
diff changeset
    17
 */
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
// System includes
hgs
parents:
diff changeset
    20
#include <HbDocumentLoader>
hgs
parents:
diff changeset
    21
#include <HbMainWindow>
hgs
parents:
diff changeset
    22
#include <HbWidget>
hgs
parents:
diff changeset
    23
#include <HbCheckBox>
hgs
parents:
diff changeset
    24
#include <HbLineEdit>
hgs
parents:
diff changeset
    25
#include <HbLabel>
hgs
parents:
diff changeset
    26
#include <HbEditorInterface>
hgs
parents:
diff changeset
    27
#include <HbParameterLengthLimiter>
hgs
parents:
diff changeset
    28
#include <eapqtexpandedeaptype.h>
hgs
parents:
diff changeset
    29
#include <eapqtpluginhandle.h>
hgs
parents:
diff changeset
    30
#include <eapqtplugininfo.h>
hgs
parents:
diff changeset
    31
#include <eapqtconfiginterface.h>
hgs
parents:
diff changeset
    32
#include <eapqtvalidator.h>
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
// User includes
hgs
parents:
diff changeset
    35
#include "wlanwizardhelper.h"
hgs
parents:
diff changeset
    36
#include "eapwizardpageidentity.h"
hgs
parents:
diff changeset
    37
#include "eapwizard_p.h"
43
hgs
parents: 39
diff changeset
    38
#include "OstTraceDefinitions.h"
hgs
parents: 39
diff changeset
    39
#ifdef OST_TRACE_COMPILER_IN_USE
hgs
parents: 39
diff changeset
    40
#include "eapwizardpageidentityTraces.h"
hgs
parents: 39
diff changeset
    41
#endif
hgs
parents: 39
diff changeset
    42
39
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
/*!
hgs
parents:
diff changeset
    45
   \class EapWizardPageIdentity
hgs
parents:
diff changeset
    46
   \brief Implements EAP wizard page: Identify for outer EAP type
hgs
parents:
diff changeset
    47
 */
hgs
parents:
diff changeset
    48
hgs
parents:
diff changeset
    49
// External function prototypes
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
// Local constants
hgs
parents:
diff changeset
    52
hgs
parents:
diff changeset
    53
// ======== LOCAL FUNCTIONS ========
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
// ======== MEMBER FUNCTIONS ========
hgs
parents:
diff changeset
    56
hgs
parents:
diff changeset
    57
hgs
parents:
diff changeset
    58
/*!
hgs
parents:
diff changeset
    59
   Constructor.
43
hgs
parents: 39
diff changeset
    60
39
hgs
parents:
diff changeset
    61
   @param [in] parent Pointer to EAP Wizard private implementation.
hgs
parents:
diff changeset
    62
 */
hgs
parents:
diff changeset
    63
EapWizardPageIdentity::EapWizardPageIdentity(EapWizardPrivate* parent) :
hgs
parents:
diff changeset
    64
    EapWizardPage(parent), 
hgs
parents:
diff changeset
    65
    mDocumentLoader(NULL), 
hgs
parents:
diff changeset
    66
    mValidatorRealm(NULL),
hgs
parents:
diff changeset
    67
    mValidatorUsername(NULL),
hgs
parents:
diff changeset
    68
    mWidget(NULL), 
hgs
parents:
diff changeset
    69
    mEditUsername(NULL), 
hgs
parents:
diff changeset
    70
    mEditRealm(NULL), 
hgs
parents:
diff changeset
    71
    mCheckUsername(NULL), 
hgs
parents:
diff changeset
    72
    mCheckRealm(NULL), 
hgs
parents:
diff changeset
    73
    mLabelRealm(NULL),
hgs
parents:
diff changeset
    74
    mLabelUsername(NULL)
hgs
parents:
diff changeset
    75
{
43
hgs
parents: 39
diff changeset
    76
    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_EAPWIZARDPAGEIDENTITY_ENTRY );
hgs
parents: 39
diff changeset
    77
    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_EAPWIZARDPAGEIDENTITY_EXIT );
39
hgs
parents:
diff changeset
    78
}
hgs
parents:
diff changeset
    79
hgs
parents:
diff changeset
    80
/*!
hgs
parents:
diff changeset
    81
   Destructor.
hgs
parents:
diff changeset
    82
 */
hgs
parents:
diff changeset
    83
EapWizardPageIdentity::~EapWizardPageIdentity()
hgs
parents:
diff changeset
    84
{
43
hgs
parents: 39
diff changeset
    85
    OstTraceFunctionEntry0( DUP1_EAPWIZARDPAGEIDENTITY_EAPWIZARDPAGEIDENTITY_ENTRY );
hgs
parents: 39
diff changeset
    86
    OstTraceFunctionExit0( DUP1_EAPWIZARDPAGEIDENTITY_EAPWIZARDPAGEIDENTITY_EXIT );
39
hgs
parents:
diff changeset
    87
}
hgs
parents:
diff changeset
    88
hgs
parents:
diff changeset
    89
/*!
hgs
parents:
diff changeset
    90
   See WlanWizardPage. 
hgs
parents:
diff changeset
    91
 */
hgs
parents:
diff changeset
    92
HbWidget* EapWizardPageIdentity::initializePage()
hgs
parents:
diff changeset
    93
{
43
hgs
parents: 39
diff changeset
    94
    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_INITIALIZEPAGE_ENTRY );
39
hgs
parents:
diff changeset
    95
    if (!mWidget) {
hgs
parents:
diff changeset
    96
        bool ok = true;
hgs
parents:
diff changeset
    97
        mDocumentLoader.reset(
hgs
parents:
diff changeset
    98
            new HbDocumentLoader(mWizard->wizardHelper()->mainWindow()));
hgs
parents:
diff changeset
    99
        mDocumentLoader->load(":/docml/occ_eap_wizard_03.docml", &ok);
hgs
parents:
diff changeset
   100
        Q_ASSERT(ok);
hgs
parents:
diff changeset
   101
hgs
parents:
diff changeset
   102
        loadDocmlSection(mWizard->wizardHelper()->mainWindow()->orientation());
43
hgs
parents: 39
diff changeset
   103
39
hgs
parents:
diff changeset
   104
        mWidget = qobject_cast<HbWidget*> (mDocumentLoader->findWidget("occ_eap_wizard_03"));
hgs
parents:
diff changeset
   105
        Q_ASSERT(mWidget);
hgs
parents:
diff changeset
   106
hgs
parents:
diff changeset
   107
        mEditUsername = qobject_cast<HbLineEdit*> (mDocumentLoader->findWidget("lineEditUsername"));
hgs
parents:
diff changeset
   108
        Q_ASSERT(mEditUsername);
hgs
parents:
diff changeset
   109
hgs
parents:
diff changeset
   110
        mEditRealm = qobject_cast<HbLineEdit*> (mDocumentLoader->findWidget("lineEditRealm"));
hgs
parents:
diff changeset
   111
        Q_ASSERT(mEditRealm);
hgs
parents:
diff changeset
   112
hgs
parents:
diff changeset
   113
        mCheckUsername = qobject_cast<HbCheckBox*> (mDocumentLoader->findWidget("setlabel_53_val"));
hgs
parents:
diff changeset
   114
        Q_ASSERT(mCheckUsername);
hgs
parents:
diff changeset
   115
hgs
parents:
diff changeset
   116
        mCheckRealm = qobject_cast<HbCheckBox*> (mDocumentLoader->findWidget("setlabel_54_val"));
hgs
parents:
diff changeset
   117
        Q_ASSERT(mCheckRealm);
43
hgs
parents: 39
diff changeset
   118
39
hgs
parents:
diff changeset
   119
        mLabelUsername = qobject_cast<HbLabel*> (mDocumentLoader->findWidget("setlabel_53"));
hgs
parents:
diff changeset
   120
        Q_ASSERT(mLabelUsername);
43
hgs
parents: 39
diff changeset
   121
39
hgs
parents:
diff changeset
   122
        mLabelRealm = qobject_cast<HbLabel*> (mDocumentLoader->findWidget("setlabel_54"));
hgs
parents:
diff changeset
   123
        Q_ASSERT(mLabelRealm);
43
hgs
parents: 39
diff changeset
   124
39
hgs
parents:
diff changeset
   125
        ok = connect(
hgs
parents:
diff changeset
   126
            mWizard->wizardHelper()->mainWindow(),
hgs
parents:
diff changeset
   127
            SIGNAL(orientationChanged(Qt::Orientation)), 
hgs
parents:
diff changeset
   128
            this, 
hgs
parents:
diff changeset
   129
            SLOT(loadDocmlSection(Qt::Orientation)));
hgs
parents:
diff changeset
   130
        Q_ASSERT(ok);
43
hgs
parents: 39
diff changeset
   131
39
hgs
parents:
diff changeset
   132
        ok = connect(
hgs
parents:
diff changeset
   133
            mEditUsername, SIGNAL(textChanged(const QString &)), 
hgs
parents:
diff changeset
   134
            this, SLOT(textChanged(const QString &)));
hgs
parents:
diff changeset
   135
        Q_ASSERT(ok);
43
hgs
parents: 39
diff changeset
   136
39
hgs
parents:
diff changeset
   137
        ok = connect(
hgs
parents:
diff changeset
   138
            mEditRealm, SIGNAL(textChanged(const QString &)),
hgs
parents:
diff changeset
   139
            this, SLOT(textChanged(const QString &)));
hgs
parents:
diff changeset
   140
        Q_ASSERT(ok);
43
hgs
parents: 39
diff changeset
   141
39
hgs
parents:
diff changeset
   142
        ok = connect(
hgs
parents:
diff changeset
   143
            mCheckUsername, SIGNAL(stateChanged(int)), 
hgs
parents:
diff changeset
   144
            this, SLOT(stateChanged(int)));
hgs
parents:
diff changeset
   145
        Q_ASSERT(ok);
43
hgs
parents: 39
diff changeset
   146
39
hgs
parents:
diff changeset
   147
        ok = connect(
hgs
parents:
diff changeset
   148
            mCheckRealm, SIGNAL(stateChanged(int)), 
hgs
parents:
diff changeset
   149
            this, SLOT(stateChanged(int)));
hgs
parents:
diff changeset
   150
        Q_ASSERT(ok);
hgs
parents:
diff changeset
   151
        // by default both checkboxes are checked
hgs
parents:
diff changeset
   152
    }
hgs
parents:
diff changeset
   153
    EapQtPluginHandle plugin((EapQtPluginHandle::Plugin)     
hgs
parents:
diff changeset
   154
        mWizard->configurations(EapWizardPrivate::OuterType).toInt() );
hgs
parents:
diff changeset
   155
hgs
parents:
diff changeset
   156
    mLabelUsername->setPlainText(
hgs
parents:
diff changeset
   157
        HbParameterLengthLimiter(
hgs
parents:
diff changeset
   158
            hbTrId("txt_occ_setlabel_user_name_for_1")).arg(
hgs
parents:
diff changeset
   159
                mWizard->eapTypeToString(plugin.pluginId())));
43
hgs
parents: 39
diff changeset
   160
39
hgs
parents:
diff changeset
   161
    // Configure editors properties
hgs
parents:
diff changeset
   162
    mValidatorUsername.reset( 
hgs
parents:
diff changeset
   163
        mWizard->eapConfigurationInterface()->validatorEap(
hgs
parents:
diff changeset
   164
            plugin.type(), 
hgs
parents:
diff changeset
   165
            EapQtConfig::Username) );
hgs
parents:
diff changeset
   166
    Q_ASSERT(mValidatorUsername.data());
hgs
parents:
diff changeset
   167
    mValidatorUsername->updateEditor(mEditUsername);
hgs
parents:
diff changeset
   168
hgs
parents:
diff changeset
   169
    mValidatorRealm.reset( 
hgs
parents:
diff changeset
   170
        mWizard->eapConfigurationInterface()->validatorEap(
hgs
parents:
diff changeset
   171
            plugin.type(), 
hgs
parents:
diff changeset
   172
            EapQtConfig::Realm) );
hgs
parents:
diff changeset
   173
    Q_ASSERT(mValidatorRealm.data());
hgs
parents:
diff changeset
   174
    mValidatorRealm->updateEditor(mEditRealm);
hgs
parents:
diff changeset
   175
43
hgs
parents: 39
diff changeset
   176
    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_INITIALIZEPAGE_EXIT );
39
hgs
parents:
diff changeset
   177
    return mWidget;
hgs
parents:
diff changeset
   178
}
hgs
parents:
diff changeset
   179
hgs
parents:
diff changeset
   180
/*!
hgs
parents:
diff changeset
   181
   Loads the required orientation of docml.
43
hgs
parents: 39
diff changeset
   182
39
hgs
parents:
diff changeset
   183
   @param [in] orientation Orientation to be loaded. 
hgs
parents:
diff changeset
   184
 */
hgs
parents:
diff changeset
   185
void EapWizardPageIdentity::loadDocmlSection(Qt::Orientation orientation)
hgs
parents:
diff changeset
   186
{
43
hgs
parents: 39
diff changeset
   187
    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_LOADDOCMLSECTION_ENTRY );
39
hgs
parents:
diff changeset
   188
    EapWizardPage::loadDocmlSection(
hgs
parents:
diff changeset
   189
        mDocumentLoader.data(),
hgs
parents:
diff changeset
   190
        orientation,
hgs
parents:
diff changeset
   191
        ":/docml/occ_eap_wizard_03.docml",
hgs
parents:
diff changeset
   192
        "portrait_section",
hgs
parents:
diff changeset
   193
        "landscape_section");
43
hgs
parents: 39
diff changeset
   194
    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_LOADDOCMLSECTION_EXIT );
39
hgs
parents:
diff changeset
   195
}
hgs
parents:
diff changeset
   196
hgs
parents:
diff changeset
   197
/*!
hgs
parents:
diff changeset
   198
   See WlanWizardPage.
43
hgs
parents: 39
diff changeset
   199
39
hgs
parents:
diff changeset
   200
   @return next wizard page:
hgs
parents:
diff changeset
   201
   - WlanWizardPage::PageProcessSettings: For EAP-TLS 
hgs
parents:
diff changeset
   202
   - EapWizardPage::PageInnerTypeEapTtls: For EAP-TTLS
hgs
parents:
diff changeset
   203
   - EapWizardPage::PageInnerTypePeap: For PEAP
hgs
parents:
diff changeset
   204
 */
hgs
parents:
diff changeset
   205
int EapWizardPageIdentity::nextId() const
hgs
parents:
diff changeset
   206
{
43
hgs
parents: 39
diff changeset
   207
    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_NEXTID_ENTRY );
39
hgs
parents:
diff changeset
   208
    int id = WlanWizardPage::PageNone;
hgs
parents:
diff changeset
   209
    bool ok;
hgs
parents:
diff changeset
   210
    int type = mWizard->configurations(EapWizardPrivate::OuterType).toInt(&ok);
hgs
parents:
diff changeset
   211
    Q_ASSERT(ok);
hgs
parents:
diff changeset
   212
hgs
parents:
diff changeset
   213
    switch (type) {
hgs
parents:
diff changeset
   214
    case EapQtPluginHandle::PluginEapTls:
hgs
parents:
diff changeset
   215
        id = WlanWizardPage::PageProcessSettings;
hgs
parents:
diff changeset
   216
        break;
43
hgs
parents: 39
diff changeset
   217
39
hgs
parents:
diff changeset
   218
    case EapQtPluginHandle::PluginEapTtls:
hgs
parents:
diff changeset
   219
        id = EapWizardPage::PageInnerTypeEapTtls;
hgs
parents:
diff changeset
   220
        break;
43
hgs
parents: 39
diff changeset
   221
39
hgs
parents:
diff changeset
   222
    case EapQtPluginHandle::PluginPeap:
hgs
parents:
diff changeset
   223
        id = EapWizardPage::PageInnerTypePeap;
hgs
parents:
diff changeset
   224
        break;
hgs
parents:
diff changeset
   225
    }
hgs
parents:
diff changeset
   226
hgs
parents:
diff changeset
   227
    mWizard->setConfigurations(EapWizardPrivate::TunnelUsernameAutomatic,
hgs
parents:
diff changeset
   228
        mCheckUsername->isChecked());
43
hgs
parents: 39
diff changeset
   229
39
hgs
parents:
diff changeset
   230
    mWizard->setConfigurations(
hgs
parents:
diff changeset
   231
        EapWizardPrivate::TunnelUsername, mEditUsername->text());
43
hgs
parents: 39
diff changeset
   232
39
hgs
parents:
diff changeset
   233
    mWizard->setConfigurations(
hgs
parents:
diff changeset
   234
        EapWizardPrivate::TunnelRealmAutomatic, mCheckRealm->isChecked());
43
hgs
parents: 39
diff changeset
   235
39
hgs
parents:
diff changeset
   236
    mWizard->setConfigurations(EapWizardPrivate::TunnelRealm, mEditRealm->text());
hgs
parents:
diff changeset
   237
43
hgs
parents: 39
diff changeset
   238
    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_NEXTID_EXIT );
39
hgs
parents:
diff changeset
   239
    return id;
hgs
parents:
diff changeset
   240
}
hgs
parents:
diff changeset
   241
hgs
parents:
diff changeset
   242
/*!
hgs
parents:
diff changeset
   243
   See WlanWizardPage.
43
hgs
parents: 39
diff changeset
   244
39
hgs
parents:
diff changeset
   245
   Validates the content of the page.
43
hgs
parents: 39
diff changeset
   246
39
hgs
parents:
diff changeset
   247
   @return true if content is valid.
hgs
parents:
diff changeset
   248
 */
hgs
parents:
diff changeset
   249
bool EapWizardPageIdentity::showPage()
hgs
parents:
diff changeset
   250
{
43
hgs
parents: 39
diff changeset
   251
    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_SHOWPAGE_ENTRY );
39
hgs
parents:
diff changeset
   252
    bool valid = false;
hgs
parents:
diff changeset
   253
hgs
parents:
diff changeset
   254
    if (validateGroup(mEditUsername, mCheckUsername, mValidatorUsername.data()) && 
hgs
parents:
diff changeset
   255
        validateGroup(mEditRealm, mCheckRealm, mValidatorRealm.data())) {
hgs
parents:
diff changeset
   256
        valid = true;
hgs
parents:
diff changeset
   257
    }
hgs
parents:
diff changeset
   258
43
hgs
parents: 39
diff changeset
   259
    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_SHOWPAGE_EXIT );
39
hgs
parents:
diff changeset
   260
    return valid;
hgs
parents:
diff changeset
   261
}
hgs
parents:
diff changeset
   262
hgs
parents:
diff changeset
   263
/*!
hgs
parents:
diff changeset
   264
   Slot for textChanged() signal from HbLineEdit.
43
hgs
parents: 39
diff changeset
   265
39
hgs
parents:
diff changeset
   266
   @param [in] text NOT USED.
hgs
parents:
diff changeset
   267
 */
hgs
parents:
diff changeset
   268
void EapWizardPageIdentity::textChanged(const QString & text)
hgs
parents:
diff changeset
   269
{
43
hgs
parents: 39
diff changeset
   270
    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_TEXTCHANGED_ENTRY );
39
hgs
parents:
diff changeset
   271
    Q_UNUSED(text);
hgs
parents:
diff changeset
   272
    mWizard->wizardHelper()->enableNextButton(showPage());
43
hgs
parents: 39
diff changeset
   273
    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_TEXTCHANGED_EXIT );
39
hgs
parents:
diff changeset
   274
}
hgs
parents:
diff changeset
   275
hgs
parents:
diff changeset
   276
/*!
hgs
parents:
diff changeset
   277
   Slot for stateChanged() signal from HbCheckBox.
43
hgs
parents: 39
diff changeset
   278
39
hgs
parents:
diff changeset
   279
   @param [in] state NOT USED.
hgs
parents:
diff changeset
   280
 */
hgs
parents:
diff changeset
   281
void EapWizardPageIdentity::stateChanged(int state )
hgs
parents:
diff changeset
   282
{
43
hgs
parents: 39
diff changeset
   283
    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_STATECHANGED_ENTRY );
39
hgs
parents:
diff changeset
   284
    Q_UNUSED(state);
hgs
parents:
diff changeset
   285
    mEditUsername->setEnabled(!mCheckUsername->isChecked());
hgs
parents:
diff changeset
   286
    mEditRealm->setEnabled(!mCheckRealm->isChecked());
hgs
parents:
diff changeset
   287
    mWizard->wizardHelper()->enableNextButton(showPage());
43
hgs
parents: 39
diff changeset
   288
    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_STATECHANGED_EXIT );
39
hgs
parents:
diff changeset
   289
}
hgs
parents:
diff changeset
   290
hgs
parents:
diff changeset
   291
/*!
hgs
parents:
diff changeset
   292
   Validates the settings group, that is line edit and checkbox using
hgs
parents:
diff changeset
   293
   given validator.
43
hgs
parents: 39
diff changeset
   294
39
hgs
parents:
diff changeset
   295
   @param [in] edit pointer to line edit to which content must be validated
hgs
parents:
diff changeset
   296
   @param [in] checkBox pointer to checkbox
hgs
parents:
diff changeset
   297
   @param [in] validator pointer to validator which is used to validate the content
hgs
parents:
diff changeset
   298
                    of the line editor.
43
hgs
parents: 39
diff changeset
   299
39
hgs
parents:
diff changeset
   300
   @return true if validation is ok, false otherwise. 
hgs
parents:
diff changeset
   301
 */
hgs
parents:
diff changeset
   302
bool EapWizardPageIdentity::validateGroup(
hgs
parents:
diff changeset
   303
    HbLineEdit *edit, 
hgs
parents:
diff changeset
   304
    HbCheckBox *checkBox,
hgs
parents:
diff changeset
   305
    EapQtValidator *validator) const
hgs
parents:
diff changeset
   306
{
43
hgs
parents: 39
diff changeset
   307
    OstTraceFunctionEntry0( EAPWIZARDPAGEIDENTITY_VALIDATEGROUP_ENTRY );
39
hgs
parents:
diff changeset
   308
    bool status = false;
hgs
parents:
diff changeset
   309
    if (checkBox->isChecked() || 
hgs
parents:
diff changeset
   310
        checkBox->isChecked() == false && 
hgs
parents:
diff changeset
   311
        EapQtValidator::StatusOk == validator->validate(edit->text())) {
hgs
parents:
diff changeset
   312
        status = true;
hgs
parents:
diff changeset
   313
    }
43
hgs
parents: 39
diff changeset
   314
    OstTraceFunctionExit0( EAPWIZARDPAGEIDENTITY_VALIDATEGROUP_EXIT );
39
hgs
parents:
diff changeset
   315
    return status;
hgs
parents:
diff changeset
   316
}