[Tizen]Transfer uploadOnly flag to the core and update manager
[platform/core/uifw/dali-adaptor.git] / dali / internal / adaptor / common / lifecycle-observer.h
1 #ifndef DALI_INTERNAL_BASE_LIFECYCLE_OBSERVER_H
2 #define DALI_INTERNAL_BASE_LIFECYCLE_OBSERVER_H
3
4 /*
5  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22
23 namespace Dali
24 {
25 namespace Internal
26 {
27 namespace Adaptor
28 {
29 /**
30  * Adaptor life cycle observer
31  */
32 class LifeCycleObserver
33 {
34 public:
35   /**
36    * Called when the adaptor has started.
37    */
38   virtual void OnStart() = 0;
39
40   /**
41    * Called when the adaptor is about to pause.
42    */
43   virtual void OnPause() = 0;
44
45   /**
46    * Called when the adaptor is about to resume.
47    */
48   virtual void OnResume() = 0;
49
50   /**
51    * Called when the adaptor is about to stop.
52    */
53   virtual void OnStop() = 0;
54
55   /**
56    * Called when the adaptor is about to be destroyed.
57    */
58   virtual void OnDestroy() = 0;
59
60 protected:
61   /**
62    * Constructor
63    */
64   LifeCycleObserver()
65   {
66   }
67
68   /**
69    * Virtual destructor
70    */
71   virtual ~LifeCycleObserver()
72   {
73   }
74
75 private:
76   // Undefined copy constructor.
77   LifeCycleObserver(const LifeCycleObserver&);
78
79   // Undefined assignment operator.
80   LifeCycleObserver& operator=(const LifeCycleObserver&);
81 };
82
83 } // namespace Adaptor
84
85 } // namespace Internal
86
87 } // namespace Dali
88
89 #endif // DALI_INTERNAL_BASE_LIFECYCLE_OBSERVER_H