devicemgmtdialogsplugin/src/devicemanagementnotifierplugin.cpp
changeset 67 fdbfe0a95492
parent 47 d316aecb87fd
equal deleted inserted replaced
62:03849bd79877 67:fdbfe0a95492
    65 
    65 
    66 // Check if client is allowed to use device dialog widget
    66 // Check if client is allowed to use device dialog widget
    67 bool devicemanagementnotifierplugin::accessAllowed(const QString &deviceDialogType,
    67 bool devicemanagementnotifierplugin::accessAllowed(const QString &deviceDialogType,
    68     const QVariantMap &parameters, const QVariantMap &securityInfo) const
    68     const QVariantMap &parameters, const QVariantMap &securityInfo) const
    69 {
    69 {
    70        
    70     Q_UNUSED(deviceDialogType);
       
    71     Q_UNUSED(parameters);
       
    72     Q_UNUSED(securityInfo);
    71     // This plugin doesn't perform operations that may compromise security.
    73     // This plugin doesn't perform operations that may compromise security.
    72     // All clients are allowed to use.
    74     // All clients are allowed to use.
    73     return true;
    75     return true;
    74     
    76     
    75 }
    77 }
    87         if (dialogtype == EOmaCPPinDialog)
    89         if (dialogtype == EOmaCPPinDialog)
    88             {
    90             {
    89             // Return specific object for showing appropriate dialog
    91             // Return specific object for showing appropriate dialog
    90             return new omacppinquerydialog(parameters);
    92             return new omacppinquerydialog(parameters);
    91             }
    93             }
    92            
    94 
    93         if (dialogtype >= EFwDLNeedMoreMemory && dialogtype <= EFwUpdResumeUpdate)
    95         //if (dialogtype >= EFwDLNeedMoreMemory && dialogtype <= EFwUpdResumeUpdate)
    94             {
    96         //{
    95             // Return specific object for showing appropriate dialog
    97         // Return specific object for showing appropriate dialog
    96             return new fotadevicedialogs(parameters);
    98         // return new fotadevicedialogs(parameters);
    97             }
    99         //}
    98 
   100 
    99         }
   101         }
       
   102 
   100     return new devicemanagementnotifierwidget(parameters);
   103     return new devicemanagementnotifierwidget(parameters);
   101         
   104     
   102 }
   105     }
   103 
   106 
   104 // Return information of device dialog the plugin creates
   107 // Return information of device dialog the plugin creates
   105 bool devicemanagementnotifierplugin::deviceDialogInfo(const QString &deviceDialogType,
   108 bool devicemanagementnotifierplugin::deviceDialogInfo(const QString &deviceDialogType,
   106     const QVariantMap &parameters, DeviceDialogInfo *info) const
   109     const QVariantMap &parameters, DeviceDialogInfo *info) const
   107 {
   110 {