equal
deleted
inserted
replaced
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. |