Add AllowTextPrediction/IsTextPredictionAllowed api
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / application-extensions.h
1 #ifndef __DALI_APPLICATION_EXTENSIONS_H__
2 #define __DALI_APPLICATION_EXTENSIONS_H__
3
4 /*
5  * Copyright (c) 2018 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 // INTERNAL INCLUDES
22 #include <dali/public-api/dali-adaptor-common.h>
23
24 namespace Dali
25 {
26 class Application;
27
28 /**
29  * @brief An Application extension class object should be created by DaliApplication.
30  *
31  * It provides some extension methods to DaliApplication.
32  *
33  */
34 class DALI_ADAPTOR_API ApplicationExtensions
35 {
36 public:
37
38  /**
39    * @brief The default constructor.
40    *
41    */
42   ApplicationExtensions();
43
44  /**
45    * @brief The constructor accept an instance of Dali::Application.
46    *
47    * This can be initialized by new keyword.
48    */
49   ApplicationExtensions(Dali::Application* application);
50
51  /**
52    * @brief Destructor
53    *
54    */
55   ~ApplicationExtensions();
56
57
58  /**
59    * @brief Called when the framework is initialised.
60    * @SINCE_1_2.7
61    */
62   void Init();
63
64   /**
65     * @brief Called when the framework is started.
66     */
67    void Start();
68
69  /**
70    * @brief Called when the framework is terminated.
71    * @SINCE_1_2.7
72    */
73   void Terminate();
74
75  /**
76    * @brief Called when the framework is paused.
77    * @SINCE_1_2.7
78    */
79   void Pause();
80
81  /**
82    * @brief Called when the framework resumes from a paused state.
83    * @SINCE_1_2.7
84    */
85   void Resume();
86
87  /**
88    * @brief Called when the framework informs the application that the language of the device has changed.
89    * @SINCE_1_2.7
90    */
91   void LanguageChange();
92
93 private:
94   Dali::Application* mApplication;
95 };
96
97 } // namespace Dali
98
99 #endif // ___DALI_APPLICATION_EXTENSIONS_H__