+void LayerControl::dispatchCreateEvent(ilmObjectType object, unsigned id, bool created)\r
+{\r
+ this->cb.test(id);\r
+ if (ILM_SURFACE == object)\r
+ {\r
+ if (created)\r
+ {\r
+ ilmSurfaceProperties sp;\r
+ ilmErrorTypes rc;\r
+ rc = ilm_getPropertiesOfSurface(id, &sp);\r
+ if(rc != ILM_SUCCESS)\r
+ return;\r
+ // this->cb->surfaceCreated(pid, id);\r
+ ilm_surfaceAddNotification(id, surfaceCallback_static);\r
+ ilm_surfaceSetSourceRectangle(id, 0, 0, sp.origSourceWidth, sp.origSourceHeight);\r
+ }\r
+ else\r
+ {\r
+ // this->cb->surfaceDestroyed(id);\r
+ }\r
+ }\r
+ if (ILM_LAYER == object)\r
+ {\r
+ if(created)\r
+ {\r
+ ilm_layerAddNotification(id, layerCallback_static);\r
+ // this->cb->layerCreated(id);\r
+ }\r
+ else\r
+ {\r
+ // this->cb->layerDestroyed(id); // Means Application is dead.\r
+ }\r
+ }\r
+}\r
+\r
+void LayerControl::dispatchPropertyChangeEvent(unsigned id,\r
+ struct ilmSurfaceProperties* sprop,\r
+ t_ilm_notification_mask mask)\r
+{\r
+ pid_t pid = sprop->creatorPid;\r
+ HMI_DEBUG("pid : %d", pid);\r
+\r
+ if (ILM_NOTIFICATION_VISIBILITY & mask)\r
+ {\r
+ //this->cb->surfaceVisibilityChanged(id, sprop->visibility);\r
+ }\r
+ if (ILM_NOTIFICATION_OPACITY & mask)\r
+ {\r
+ }\r
+ if (ILM_NOTIFICATION_ORIENTATION & mask)\r
+ {\r
+ }\r
+ if (ILM_NOTIFICATION_SOURCE_RECT & mask)\r
+ {\r
+ // this->cb->surfaceSourceRectChanged(id, )\r
+ }\r
+ if (ILM_NOTIFICATION_DEST_RECT & mask)\r
+ {\r
+ // this->cb->surfaceSourceRectChanged(id, )\r
+ }\r
+ if (ILM_NOTIFICATION_CONTENT_AVAILABLE & mask)\r
+ {\r
+ }\r
+ if (ILM_NOTIFICATION_CONTENT_REMOVED & mask)\r
+ {\r
+ /* application being down */\r
+ // m_appLayers.remove(pid);\r
+ }\r
+ if (ILM_NOTIFICATION_CONFIGURED & mask)\r
+ {\r
+ /* qDebug("ILM_NOTIFICATION_CONFIGURED");\r
+ qDebug(" surfaceProperties %d", surface);\r
+ qDebug(" surfaceProperties.origSourceWidth: %d", surfaceProperties->origSourceWidth);\r
+ qDebug(" surfaceProperties.origSourceHeight: %d", surfaceProperties->origSourceHeight);\r
+\r
+ if (surface == WINDOWMANAGER_HOMESCREEN_MAIN_SURFACE_ID) {\r
+ addSurfaceToLayer(surface, WINDOWMANAGER_LAYER_HOMESCREEN);\r
+ configureHomeScreenMainSurface(surface, surfaceProperties->origSourceWidth, surfaceProperties->origSourceHeight);\r
+ } else {\r
+ ilmErrorTypes result;\r
+ t_ilm_layer layer = addSurfaceToAppLayer(pid, surface);\r
+\r
+ if (layer != 0) {\r
+ configureAppSurface(surface,\r
+ surfaceProperties->origSourceWidth,\r
+ surfaceProperties->origSourceHeight);\r
+\r
+ result = ilm_layerAddSurface(layer, surface);\r
+ if (result != ILM_SUCCESS) {\r
+ qDebug("ilm_layerAddSurface(%d,%d) failed.", layer, surface);\r
+ }\r
+ ilm_commitChanges();\r
+ }\r
+ }\r
+ updateScreen(); */\r
+ }\r
+}\r
+\r
+void LayerControl::dispatchPropertyChangeEvent(unsigned id,\r
+ struct ilmLayerProperties* lprop,\r
+ t_ilm_notification_mask mask)\r