1 #ifndef __DALI_ECORE_CALLBACK_MANAGER_H__
2 #define __DALI_ECORE_CALLBACK_MANAGER_H__
5 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
25 #include <dali/internal/system/common/callback-manager.h>
40 * Ecore interface to install call backs in the applications main loop.
42 class EcoreCallbackManager : public CallbackManager
50 EcoreCallbackManager();
55 ~EcoreCallbackManager()
60 * @copydoc CallbackManager::AddIdleCallback()
62 virtual bool AddIdleCallback( CallbackBase* callback, bool hasReturnValue );
65 * @copydoc CallbackManager::RemoveIdleCallback()
67 virtual void RemoveIdleCallback( CallbackBase* callback );
70 * @copydoc CallbackManager::AddIdleEntererCallback()
72 virtual bool AddIdleEntererCallback( CallbackBase* callback );
75 * @copydoc CallbackManager::RemoveIdleEntererCallback()
77 virtual void RemoveIdleEntererCallback( CallbackBase* callback );
80 * @copydoc CallbackManager::Start()
85 * @copydoc CallbackManager::Stop()
92 * @brief Remove all idle call backs that are pending
94 * Always called from the main thread
96 void RemoveAllCallbacks();
99 * @brief Removes a single call back from the container
100 * Always called from main thread
101 * @param callbackData callback data
103 void RemoveCallbackFromContainer(CallbackData *callbackData);
106 * @brief Remove a standard call back from ecore
107 * Always called from main thread
108 * @param callbackData callback data
110 void RemoveStandardCallback(CallbackData *callbackData);
113 typedef std::list<CallbackData *> CallbackList;
115 bool mRunning; ///< flag is set to true if when running
116 CallbackList mCallbackContainer; ///< container of live idle callbacks
119 } // namespace Adaptor
121 } // namespace Internal
125 #endif // __DALI_ECORE_CALLBACK_MANAGER_H__