1 #ifndef DALI_APPLICATION_DEVEL_H
2 #define DALI_APPLICATION_DEVEL_H
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #ifdef DALI_ADAPTOR_COMPILATION // full path doesn't exist until adaptor is installed so we have to use relative
23 #include <application.h>
25 #include <dali/public-api/adaptor-framework/application.h>
31 namespace DevelApplication
35 * @brief An enum of memory status.
47 * Soft warning status.
52 * Hard warning status.
59 * @brief An enum of battery status.
67 * Battery status is over 5%.
72 * Battery status is under 5%.
77 * Device can be turned off anytime.
78 * Battery status is under 1%.
84 typedef Signal< void (BatteryStatus::Type) > LowBatterySignalType;
85 typedef Signal< void (MemoryStatus::Type) > LowMemorySignalType;
88 * @brief This is the constructor for applications.
92 * @param[in,out] argc A pointer to the number of arguments
93 * @param[in,out] argv A pointer to the argument list
94 * @param[in] stylesheet The path to user defined theme file
95 * @param[in] windowMode A member of WINDOW_MODE
96 * @param[in] positionSize A position and a size of the window
97 * @return A handle to the Application
98 * @note If the stylesheet is not specified, then the library's default stylesheet will not be overridden.
100 DALI_IMPORT_API Application New( int* argc, char **argv[], const std::string& stylesheet, Application::WINDOW_MODE windowMode, PositionSize positionSize );
103 * @brief This is used to improve application launch performance.
104 * It preloads so files, initializes some functions in advance and makes a window in advance.
106 * @param[in,out] argc A pointer to the number of arguments
107 * @param[in,out] argv A pointer to the argument list
109 DALI_IMPORT_API void PreInitialize( int* argc, char** argv[] );
112 * @brief This is used to get region information from device.
114 * @return Region information
116 DALI_IMPORT_API std::string GetRegion( Application application );
119 * @brief This is used to get language information from device.
121 * @return Language information
123 DALI_IMPORT_API std::string GetLanguage( Application application );
126 * @brief This signal is emitted when the battery level of the device is low.
128 * @return The signal to connect to
130 DALI_IMPORT_API LowBatterySignalType& LowBatterySignal( Application application );
133 * @brief This signal is emitted when the memory level of the device is low.
135 * @return The signal to connect to
137 DALI_IMPORT_API LowMemorySignalType& LowMemorySignal( Application application );
140 } // namespace DevelApplication
144 #endif // DALI_APPLICATION_DEVEL_H