Framework refactoring
[platform/core/uifw/dali-adaptor.git] / dali / internal / adaptor / libuv / framework-libuv.h
1 #ifndef DALI_INTERNAL_ADAPTOR_LIBUV_FRAMEWORK_H
2 #define DALI_INTERNAL_ADAPTOR_LIBUV_FRAMEWORK_H
3
4 /*
5  * Copyright (c) 2023 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 // INTERNAL INCLUDES
21 #include <dali/internal/adaptor/common/framework.h>
22
23 namespace Dali
24 {
25 namespace Internal
26 {
27 namespace Adaptor
28 {
29 /**
30  * FrameworkLibuv class provides an Framework Libuv implementation.
31  */
32 class FrameworkLibuv : public Framework
33 {
34 public:
35   /**
36    * @copydoc Dali::Internal::Adaptor::Framework::Framework()
37    */
38   FrameworkLibuv(Observer& observer, TaskObserver& taskObserver, int* argc, char*** argv, Type type, bool useUiThread);
39
40   /**
41    * Destructor
42    */
43   ~FrameworkLibuv();
44
45 public:
46   /**
47    * @copydoc Dali::Internal::Adaptor::Framework::Run()
48    */
49   void Run() override;
50
51   /**
52    * @copydoc Dali::Internal::Adaptor::Framework::Quit()
53    */
54   void Quit() override;
55
56 private:
57   // Undefined
58   FrameworkLibuv(const FrameworkLibuv&);
59   FrameworkLibuv& operator=(FrameworkLibuv&);
60
61 private: // impl members
62   struct Impl;
63   Impl* mImpl;
64 };
65
66 } // namespace Adaptor
67
68 } // namespace Internal
69
70 } // namespace Dali
71
72 #endif // DALI_INTERNAL_ADAPTOR_LIBUV_FRAMEWORK_H