bluetoothengine/btindicator/src/btindicatorplugin.cpp
changeset 47 9e2a905b887f
parent 42 b72428996822
equal deleted inserted replaced
45:b0aebde9b1fb 47:9e2a905b887f
    32 
    32 
    33 // ----------------------------------------------------------------------------
    33 // ----------------------------------------------------------------------------
    34 // BTIndicatorPlugin::~BTIndicatorPlugin
    34 // BTIndicatorPlugin::~BTIndicatorPlugin
    35 // ----------------------------------------------------------------------------
    35 // ----------------------------------------------------------------------------
    36 BTIndicatorPlugin::~BTIndicatorPlugin()
    36 BTIndicatorPlugin::~BTIndicatorPlugin()
    37     {
    37 {
    38     delete mIndicatorTranslator;
    38     delete mIndicatorTranslator;
    39     }
    39 }
    40 
    40 
    41 // ----------------------------------------------------------------------------
    41 // ----------------------------------------------------------------------------
    42 // BTIndicatorPlugin::indicatorTypes
    42 // BTIndicatorPlugin::indicatorTypes
    43 // Return notification types this plugin implements
    43 // Return notification types this plugin implements
    44 // ----------------------------------------------------------------------------
    44 // ----------------------------------------------------------------------------
    68 // BTIndicatorPlugin::createIndicator
    68 // BTIndicatorPlugin::createIndicator
    69 // Creates and returns the HbIndicatorInterface
    69 // Creates and returns the HbIndicatorInterface
    70 // ----------------------------------------------------------------------------
    70 // ----------------------------------------------------------------------------
    71 HbIndicatorInterface* BTIndicatorPlugin::createIndicator(const QString &indicatorType)
    71 HbIndicatorInterface* BTIndicatorPlugin::createIndicator(const QString &indicatorType)
    72 {
    72 {
    73     if(!mIndicatorTranslator)
    73     if(!mIndicatorTranslator) {
    74         {
       
    75         mIndicatorTranslator = new HbTranslator(BTINDICATOR_TRANSLATION);
    74         mIndicatorTranslator = new HbTranslator(BTINDICATOR_TRANSLATION);
    76         }
    75     }
    77     HbIndicatorInterface *indicator = new BTIndicator(indicatorType);
    76     HbIndicatorInterface *indicator = new BTIndicator(indicatorType);
    78     return indicator;
    77     return indicator;
    79 }
    78 }
    80 
    79 
    81 // ----------------------------------------------------------------------------
    80 // ----------------------------------------------------------------------------