Revert "[Tizen] Add screen and client rotation itself function"
[platform/core/uifw/dali-core.git] / dali / internal / event / common / thread-local-storage.h
index 73a4021..448a61f 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_INTERNAL_THREAD_LOCAL_STORAGE_H__
-#define __DALI_INTERNAL_THREAD_LOCAL_STORAGE_H__
+#ifndef DALI_INTERNAL_THREAD_LOCAL_STORAGE_H
+#define DALI_INTERNAL_THREAD_LOCAL_STORAGE_H
 
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 
 // INTERNAL INCLUDES
 #include <dali/internal/event/common/stage-def.h>
+#include <dali/internal/event/common/scene-impl.h>
 
 namespace Dali
 {
@@ -36,12 +37,11 @@ namespace Internal
 
 class Core;
 class NotificationManager;
-class ResourceClient;
-class ResourceManager;
-class ImageFactory;
 class ShaderFactory;
 class GestureEventProcessor;
 class RelayoutController;
+class ObjectRegistry;
+class EventThreadServices;
 
 namespace SceneGraph
 {
@@ -111,24 +111,6 @@ public:
   NotificationManager& GetNotificationManager();
 
   /**
-   * Returns the Resource Manager
-   * @return reference to the Resource Manager
-   */
-  ResourceManager& GetResourceManager();
-
-  /**
-   * Returns the Resource Client
-   * @return reference to the Resource Client
-   */
-  ResourceClient& GetResourceClient();
-
-  /**
-   * Returns the Image Factory
-   * @return reference to the Image Factory
-   */
-  ImageFactory& GetImageFactory();
-
-  /**
    * Returns the Shader Factory
    * @return reference to the Shader Factory
    */
@@ -152,6 +134,44 @@ public:
    */
   RelayoutController& GetRelayoutController();
 
+  /**
+   * Returns the Object registry.
+   * @return A reference to the Object registry
+   */
+  ObjectRegistry& GetObjectRegistry();
+
+  /**
+   * @brief Gets the event thread services.
+   * @return A reference to the event thread services
+   */
+  EventThreadServices& GetEventThreadServices();
+
+  /**
+   * @brief Gets the property notification manager.
+   * @return A reference to the property notification manager
+   */
+  PropertyNotificationManager& GetPropertyNotificationManager();
+
+  /**
+   * @brief Gets the animation play list.
+   * @return A reference to the animation play list
+   */
+  AnimationPlaylist& GetAnimationPlaylist();
+
+  /**
+   * Add a Scene to the Core.
+   * This is only used by the Scene to add itself to the core when the Scene is created.
+   * @param[in] scene The Scene.
+   */
+  void AddScene( Scene* scene );
+
+  /**
+   * Remove a Scene from the Core.
+   * This is only used by the Scene to remove itself from the core when the Scene is destroyed.
+   * @param[in] scene The Scene.
+   */
+  void RemoveScene( Scene* scene );
+
 private:
 
   Core* mCore;                                              ///< reference to core
@@ -162,4 +182,4 @@ private:
 
 } // namespace Dali
 
-#endif // __DALI_INTERNAL_THREAD_LOCAL_STORAGE_H__
+#endif // DALI_INTERNAL_THREAD_LOCAL_STORAGE_H