cpsecplugins/cpadvancedsecplugin/src/cpcertpluginloader.cpp
changeset 30 cc1cea6aabaf
parent 22 6b63ca65093a
child 44 eb08ec9af6e4
equal deleted inserted replaced
26:aad866c37519 30:cc1cea6aabaf
    18 #include <cpsettingformentryitemdataimpl.h>
    18 #include <cpsettingformentryitemdataimpl.h>
    19 
    19 
    20 #include "cpcertpluginloader.h"
    20 #include "cpcertpluginloader.h"
    21 #include "cpsecurityview.h"
    21 #include "cpsecurityview.h"
    22 #include <hbapplication.h>
    22 #include <hbapplication.h>
       
    23 #include <../../inc/cpsecplugins.h>
    23 
    24 
    24 CpCertPluginLoader::CpCertPluginLoader()
    25 CpCertPluginLoader::CpCertPluginLoader()
    25 	{
    26 	{
       
    27 		RDEBUG("0", 0);
    26 		mTranslator =q_check_ptr( new QTranslator());
    28 		mTranslator =q_check_ptr( new QTranslator());
    27 		// to be uncommented after translation sumission.
    29 		// to be uncommented after translation sumission.
    28 		//  QString lang = QLocale::system().name();
    30 		//  QString lang = QLocale::system().name();
    29 		QString path = "z:/resource/qt/translations/";
    31 		QString path = "z:/resource/qt/translations/";
    30 		mTranslator->load(path + "certificate_management_en" );
    32 		mTranslator->load(path + "certificate_management_en" );
    41         }	
    43         }	
    42 	}
    44 	}
    43 
    45 
    44 QList<CpSettingFormItemData*> CpCertPluginLoader::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
    46 QList<CpSettingFormItemData*> CpCertPluginLoader::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
    45 		{
    47 		{
       
    48 		RDEBUG("0", 0);
    46   return QList<CpSettingFormItemData*>() 
    49   return QList<CpSettingFormItemData*>() 
    47            << new CpSettingFormEntryItemDataImpl<CpSecurityView>(itemDataHelper,tr("Advanced Security"), QString());			
    50            << new CpSettingFormEntryItemDataImpl<CpSecurityView>(itemDataHelper,tr("Advanced Security"), QString());			
    48 		}
    51 		}
    49 
    52 
    50 Q_EXPORT_PLUGIN2(cpcertpluginloader, CpCertPluginLoader);
    53 Q_EXPORT_PLUGIN2(cpcertpluginloader, CpCertPluginLoader);