phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonyplugin.cpp
changeset 46 bc5a64e5bc3c
parent 37 ba76fc04e6c2
child 50 377c906a8701
child 51 f39ed5e045e0
--- a/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonyplugin.cpp	Wed Jun 23 18:12:20 2010 +0300
+++ b/phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonyplugin.cpp	Tue Jul 06 14:15:47 2010 +0300
@@ -71,6 +71,22 @@
     return ret;
 }
 
+/*!
+    CpTelephonyPlugin::createSettingView() const
+*/
+CpBaseSettingView *CpTelephonyPlugin::createSettingView(const QVariant &hint) const
+{
+    QVariantHash hash = hint.value<QVariantHash>();
+    
+    if( hash.value("view").toString().compare("divert_view",Qt::CaseInsensitive) == 0){
+        QVariantList params;
+        params << QVariant("cpdivertplugin");
+        return new CpTelephonyPluginView(params);
+    }
+    return 0;
+}
+
+
 Q_EXPORT_PLUGIN2(cptelephonyplugin, CpTelephonyPlugin);