1 #ifndef __DALI_INTERNAL_BASE_LIFECYCLE_OBSERVER_H__
2 #define __DALI_INTERNAL_BASE_LIFECYCLE_OBSERVER_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
32 * Adaptor life cycle observer
34 class LifeCycleObserver
38 * Called when the adaptor has started.
40 virtual void OnStart() = 0;
43 * Called when the adaptor is about to pause.
45 virtual void OnPause() = 0;
48 * Called when the adaptor is about to resume.
50 virtual void OnResume() = 0;
53 * Called when the adaptor is about to stop.
55 virtual void OnStop() = 0;
58 * Called when the adaptor is about to be destroyed.
60 virtual void OnDestroy() = 0;
74 virtual ~LifeCycleObserver()
80 // Undefined copy constructor.
81 LifeCycleObserver( const LifeCycleObserver& );
83 // Undefined assignment operator.
84 LifeCycleObserver& operator=( const LifeCycleObserver& );
90 } // namespace Internal
92 } // namespace Adaptor
96 #endif // __DALI_INTERNAL_BASE_LIFECYCLE_OBSERVER_H__