Revert "[Tizen] Add DALi Autofill implementation"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / application-devel.h
1 #ifndef DALI_APPLICATION_DEVEL_H
2 #define DALI_APPLICATION_DEVEL_H
3
4 /*
5  * Copyright (c) 2019 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/adaptor-framework/application.h>
23
24 namespace Dali
25 {
26
27 namespace DevelApplication
28 {
29
30
31 /**
32  * @brief Ensures that the function passed in is called from the main loop when it is idle.
33  * @param[in] application A handle to the Application
34  * @param[in] callback The function to call
35  * @return @c true if added successfully, @c false otherwise
36  *
37  * @note Function must be called from main event thread only
38  *
39  * A callback of the following type should be used:
40  * @code
41  *   bool MyFunction();
42  * @endcode
43  * This callback will be called repeatedly as long as it returns true. A return of 0 deletes this callback.
44  *
45  * @note Ownership of the callback is passed onto this class.
46  */
47 DALI_ADAPTOR_API bool AddIdleWithReturnValue( Application application, CallbackBase* callback );
48
49 /**
50 * @brief Gets the absolute path to the application's data directory which is used to store private data of the application.
51 * @return The absolute path to the application's data directory
52 */
53 DALI_ADAPTOR_API std::string GetDataPath();
54
55 /**
56  * @brief Downcasts a ref object to Application handle
57  *
58  * If handle points to an Application object, the downcast produces valid base handle
59  * If not, the returned base handle is left uninitialized
60  *
61  * @param[in] refObject to an Application
62  * @return handle to an Application object or an uninitialized base handle
63  */
64 DALI_ADAPTOR_API Application DownCast( Dali::RefObject* refObject );
65
66 } // namespace DevelApplication
67
68 } // namespace Dali
69
70 /**
71  * @brief This is used to improve application launch performance.
72  * Initializes some functions in advance and makes a window in advance.
73  * @param[in,out]  argc A pointer to the number of arguments
74  * @param[in,out]  argv A pointer to the argument list
75  *
76  * @note Declared in C style for calling from app-launcher.
77  *
78  */
79 extern "C"
80 DALI_ADAPTOR_API void ApplicationPreInitialize( int* argc, char** argv[] );
81
82 #endif // DALI_APPLICATION_DEVEL_H