phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonyplugin.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 30 ebdbd102c78a
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    69     ret.append(new CpSettingFormEntryItemDataImpl<CpTelephonyPluginView>(
    69     ret.append(new CpSettingFormEntryItemDataImpl<CpTelephonyPluginView>(
    70             itemDataHelper, hbTrId("txt_cp_dblist_telephone"), hbTrId("")));
    70             itemDataHelper, hbTrId("txt_cp_dblist_telephone"), hbTrId("")));
    71     return ret;
    71     return ret;
    72 }
    72 }
    73 
    73 
       
    74 /*!
       
    75     CpTelephonyPlugin::createSettingView() const
       
    76 */
       
    77 CpBaseSettingView *CpTelephonyPlugin::createSettingView(const QVariant &hint) const
       
    78 {
       
    79     QVariantHash hash = hint.value<QVariantHash>();
       
    80     
       
    81     if( hash.value("view").toString().compare("divert_view",Qt::CaseInsensitive) == 0){
       
    82         QVariantList params;
       
    83         params << QVariant("cpdivertplugin");
       
    84         return new CpTelephonyPluginView(params);
       
    85     }
       
    86     return 0;
       
    87 }
       
    88 
       
    89 
    74 Q_EXPORT_PLUGIN2(cptelephonyplugin, CpTelephonyPlugin);
    90 Q_EXPORT_PLUGIN2(cptelephonyplugin, CpTelephonyPlugin);
    75 
    91 
    76 
    92 
    77 // End of File. 
    93 // End of File.