homescreenapp/hsdomainmodel/src/hswidgetcomponentregistry.cpp
changeset 62 341166945d65
parent 55 03646e8da489
child 69 87476091b3f5
equal deleted inserted replaced
57:2e2dc3d30ca8 62:341166945d65
    36 /*!
    36 /*!
    37     \class HsWidgetComponentRegistry
    37     \class HsWidgetComponentRegistry
    38     \ingroup group_hsdomainmodel
    38     \ingroup group_hsdomainmodel
    39     \brief Homescreen widget component registry.
    39     \brief Homescreen widget component registry.
    40 
    40 
    41     Homescreen widget component registry keeps track of packages from which is(are) 
    41     Widget component registry contains HsWidgetComponent instances. All widget instances from same type 
    42     created widget(s) to homescreen page(s). Registry updates its content
    42     are refering to one HsWidgetComponent. Registry updates its content
    43     when the installation package is uninstalled/updated or installation location is( or is not)
    43     when the installation package is uninstalled/updated or installation location is( or is not)
    44 	available (media attached/detached). Registry takes care of package registration/unregistration
    44 	available (media attached/detached). Registry takes care of package registration/unregistration
    45 	to Qt service framework.
    45 	to Qt service framework.
    46     
    46     
    47     Events for all above cases are get from Content Storage. Component registry listens
    47     Events for all above cases are get from Content Storage. Component registry listens
    90     Requests widget component to emit 'aboutToUninstall' signal to free widget resources when
    90     Requests widget component to emit 'aboutToUninstall' signal to free widget resources when
    91     uninstalling the widget's installation package.
    91     uninstalling the widget's installation package.
    92 */
    92 */
    93 void HsWidgetComponentRegistry::uninstallComponent(const HsWidgetComponentDescriptor &componentDescriptor)
    93 void HsWidgetComponentRegistry::uninstallComponent(const HsWidgetComponentDescriptor &componentDescriptor)
    94 {
    94 {
    95     HsWidgetComponent *component = mRegistry.value(componentDescriptor.uri);
    95     HsWidgetComponent *component = mRegistry.value(componentDescriptor.uri());
    96     if (component) {
    96     if (component) {
    97         component->emitAboutToUninstall();
    97         component->emitAboutToUninstall();
    98     }
    98     }
    99 }
    99 }
   100 
   100