2 * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 #include "sclcoreui.h"
22 #include "sclcoreui-efl.h"
26 CSCLCoreUI::CSCLCoreUI()
28 m_backend_identifier = "undefined";
32 CSCLCoreUI::~CSCLCoreUI()
36 std::string CSCLCoreUI::get_backend_indentifier()
38 return m_backend_identifier;
41 sclboolean CSCLCoreUI::init(sclwindow main_window)
43 sclboolean ret = FALSE;
45 /* There could be other backend implementations.. */
46 m_impl = new CSCLCoreUIEFL;
48 ret = m_impl->init(main_window);
54 void CSCLCoreUI::fini()
63 void CSCLCoreUI::run(const sclchar *display)
70 void CSCLCoreUI::set_keyboard_size_hints(SclSize portrait, SclSize landscape)
73 m_impl->set_keyboard_size_hints(portrait, landscape);
77 sclwindow CSCLCoreUI::get_main_window()
79 sclwindow ret = SCLWINDOW_INVALID;
81 ret = m_impl->get_main_window();
86 int CSCLCoreUI::get_screen_rotation_degree()
90 ret = m_impl->get_screen_rotation_degree();
95 sclwindow CSCLCoreUI::create_option_window(SCLOptionWindowType type)
97 sclwindow ret = SCLWINDOW_INVALID;
99 ret = m_impl->create_option_window(type);
104 bool CSCLCoreUI::show_option_window(SCLOptionWindowType type)
108 ret = m_impl->show_option_window(type);
113 void CSCLCoreUI::destroy_option_window(sclwindow window)
116 m_impl->destroy_option_window(window);
120 void CSCLCoreUI::process_keyboard_ui_state_change(KEYBOARD_UI_STATE state)
123 m_impl->process_keyboard_ui_state_change(state);
127 void CSCLCoreUI::set_floating_mode(sclboolean floating_mode)
130 m_impl->set_floating_mode(floating_mode);