securitysettings/eapqtdialogs/src/eapdialogplugin.cpp
changeset 34 ad1f037f1ac2
parent 26 9abfd4f00d37
child 36 c98682f98478
equal deleted inserted replaced
31:372d2d6c5cf9 34:ad1f037f1ac2
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: Prompt Dialog plugin implementation
    14 * Description: Eap Dialog Plugin implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
       
    18 /*
       
    19 * %version: 8 %
       
    20 */
    18 
    21 
    19 #include <hbdevicedialoginterface.h>
    22 #include <hbdevicedialoginterface.h>
    20 #include <QVariantMap>
    23 #include <QVariantMap>
    21 #include "eapdialogplugin.h"
    24 #include "eapdialogplugin.h"
    22 #include "eapusernamepwddialog.h"
    25 #include "eapusernamepwddialog.h"
       
    26 #include "eapquerydialog.h"
       
    27 #include "eappasswordquerydialog.h"
       
    28 #include "eapfastinstallpacquerydialog.h"
       
    29 #include "eapfastpacstorepwquerydialog.h"
       
    30 #include "eapfastpacfilepwquerydialog.h"
       
    31 #include "eapfastcreatemasterkeyquerydialog.h"
       
    32 #include "eapfastprovwaitnotedialog.h"
       
    33 #include "eapmschapv2pwdexpirednotedialog.h"
       
    34 #include "eapmschapv2oldpwddialog.h"
       
    35 #include "eapmschapv2newpwddialog.h"
       
    36 #include "eapfastprovnotsuccessnotedialog.h"
    23 #include "OstTraceDefinitions.h"
    37 #include "OstTraceDefinitions.h"
    24 #ifdef OST_TRACE_COMPILER_IN_USE
    38 #ifdef OST_TRACE_COMPILER_IN_USE
    25 #endif
    39 #endif
    26 
    40 
    27 
    41 
    80     if ( deviceDialogType.compare("com.nokia.eap.usernamepassworddialog/1.0") == 0 ) 
    94     if ( deviceDialogType.compare("com.nokia.eap.usernamepassworddialog/1.0") == 0 ) 
    81         {
    95         {
    82         qDebug("EapDialogPlugin::createDeviceDialog: new EapUsernamePwdDialog");
    96         qDebug("EapDialogPlugin::createDeviceDialog: new EapUsernamePwdDialog");
    83         return ( new EapUsernamePwdDialog(parameters) );
    97         return ( new EapUsernamePwdDialog(parameters) );
    84         }
    98         }
    85     else 
    99     else if ( deviceDialogType.compare("com.nokia.eap.querydialog/1.0") == 0 ) 
    86         {
   100         { 
    87         qDebug("EapDialogPlugin::createDeviceDialog: ELSE --> ERRORISMO");
   101         qDebug("EapDialogPlugin::createDeviceDialog: new EapQueryDialog");
    88         }       
   102         return ( new EapQueryDialog(parameters) );
       
   103         }
       
   104     else if ( deviceDialogType.compare("com.nokia.eap.passwordquerydialog/1.0") == 0 ) 
       
   105         { 
       
   106         qDebug("EapDialogPlugin::createDeviceDialog: new EapPasswordQueryDialog");
       
   107         return ( new EapPasswordQueryDialog(parameters) );
       
   108         }
       
   109     else if ( deviceDialogType.compare("com.nokia.eap.fastinstallpacquerydialog/1.0") == 0 )
       
   110         {
       
   111         qDebug("EapDialogPlugin::createDeviceDialog: new EapFastInstallPacQueryDialog");
       
   112         return ( new EapFastInstallPacQueryDialog(parameters) );
       
   113         }
       
   114     else if ( deviceDialogType.compare("com.nokia.eap.fastpacstorepwquerydialog/1.0") == 0 )
       
   115         {
       
   116         qDebug("EapDialogPlugin::createDeviceDialog: new EapFastPacStorePwQueryDialog");
       
   117         return ( new EapFastPacStorePwQueryDialog(parameters));
       
   118         }   
       
   119     else if ( deviceDialogType.compare("com.nokia.eap.fastcreatemasterkeyquerydialog/1.0") == 0 )
       
   120         {
       
   121         qDebug("EapDialogPlugin::createDeviceDialog: new EapFastCreateMasterKeyQueryDialog");
       
   122         return ( new EapFastCreateMasterKeyQueryDialog(parameters) );
       
   123         }  
       
   124     else if ( deviceDialogType.compare("com.nokia.eap.fastpacfilepwquerydialog/1.0") == 0 )
       
   125         {
       
   126         qDebug("EapDialogPlugin::createDeviceDialog: new EapFastPacFilePwQueryDialog");
       
   127         return ( new EapFastPacFilePwQueryDialog(parameters) );
       
   128         }
       
   129     else if ( deviceDialogType.compare("com.nokia.eap.fastprovwaitnotedialog/1.0") == 0 )
       
   130         {
       
   131         qDebug("EapDialogPlugin::createDeviceDialog: new EapFastProvWaitNoteDialog");
       
   132         return ( new EapFastProvWaitNoteDialog(parameters) );
       
   133         }  
       
   134     else if ( deviceDialogType.compare("com.nokia.eap.mschapv2passwordexpirednotedialog/1.0") == 0 )
       
   135         {
       
   136         qDebug("EapDialogPlugin::createDeviceDialog: new EapMschapv2PwdExpNoteDialog");
       
   137         return ( new EapMschapv2PwdExpNoteDialog(parameters) );
       
   138         }  
       
   139     else if ( deviceDialogType.compare("com.nokia.eap.mschapv2oldpassworddialog/1.0") == 0 )
       
   140         {
       
   141         qDebug("EapDialogPlugin::createDeviceDialog: new EapMschapv2OldPwdDialog");
       
   142         return ( new EapMschapv2OldPwdDialog(parameters) );
       
   143         }  
       
   144     else if ( deviceDialogType.compare("com.nokia.eap.mschapv2newpassworddialog/1.0") == 0 )
       
   145         {
       
   146         qDebug("EapDialogPlugin::createDeviceDialog: new EapMschapv2NewPwdDialog");
       
   147         return ( new EapMschapv2NewPwdDialog(parameters) );
       
   148         }  
       
   149     else if ( deviceDialogType.compare("com.nokia.eap.fastshowprovnotsuccessnotedialog/1.0") == 0 )
       
   150         {
       
   151         qDebug("EapDialogPlugin::createDeviceDialog: new EapFastProvNotSuccessNoteDialog");
       
   152         return ( new EapFastProvNotSuccessNoteDialog(parameters) );
       
   153         }   
    89     OstTraceFunctionExit0( EAPDIALOGPLUGIN_CREATEDEVICEDIALOG_EXIT );
   154     OstTraceFunctionExit0( EAPDIALOGPLUGIN_CREATEDEVICEDIALOG_EXIT );
    90     qDebug("EapDialogPlugin::createDeviceDialog EXIT");
   155     qDebug("EapDialogPlugin::createDeviceDialog EXIT");
    91     
   156     
    92     return NULL;
   157     return NULL;
    93 }
   158 }