securitysettings/qtconfigutils/eapqtplugininfo/src/eapqtpluginhandle.cpp
changeset 49 43351a4f2da3
parent 34 ad1f037f1ac2
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    15  *   Handle to EAP plugin information
    15  *   Handle to EAP plugin information
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 /*
    19 /*
    20  * %version: 16 %
    20  * %version: 17 %
    21  */
    21  */
    22 
    22 
    23 // System includes
    23 // System includes
    24 #include <eapqtpluginhandle.h>
    24 #include <eapqtpluginhandle.h>
    25 
    25 
   102 EapQtPluginHandle::EapQtPluginHandle(const EapQtExpandedEapType& type, const int uid) :
   102 EapQtPluginHandle::EapQtPluginHandle(const EapQtExpandedEapType& type, const int uid) :
   103     d_ptr(new EapQtPluginHandlePrivate(type, uid))
   103     d_ptr(new EapQtPluginHandlePrivate(type, uid))
   104 {
   104 {
   105 }
   105 }
   106 
   106 
   107 EapQtPluginHandle::EapQtPluginHandle(const EapQtExpandedEapType& type) :
   107 EapQtPluginHandle::EapQtPluginHandle(const EapQtExpandedEapType& type)
   108     d_ptr(new EapQtPluginHandlePrivate(type, handleMapper[typeMapper[type.type()]].mUid))
       
   109 {
   108 {
       
   109 	if (( type.type() < EapQtExpandedEapType::TypeLast) &&
       
   110 		( typeMapper[type.type()] < EapQtPluginHandle::PluginLast) )
       
   111 		{
       
   112 		d_ptr.reset(new EapQtPluginHandlePrivate(type, handleMapper[typeMapper[type.type()]].mUid));
       
   113 		}
       
   114 	else
       
   115 		{
       
   116 		d_ptr.reset(NULL);	
       
   117 		}
   110 }
   118 }
   111 
   119 
   112 EapQtPluginHandle::EapQtPluginHandle(const EapQtPluginHandle& handle) :
   120 EapQtPluginHandle::EapQtPluginHandle(const EapQtPluginHandle& handle) :
   113     d_ptr(new EapQtPluginHandlePrivate(handle.type(), handle.protocolImplementationUid()))
   121     d_ptr(new EapQtPluginHandlePrivate(handle.type(), handle.protocolImplementationUid()))
   114 {
   122 {