2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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.
19 #include <imf-manager.h>
22 #include <imf-manager-impl.h>
23 #include <adaptor-impl.h>
28 ImfManager::ImfManager()
32 ImfManager::~ImfManager()
36 ImfManager ImfManager::Get()
38 return Internal::Adaptor::ImfManager::Get();
41 ImfContext ImfManager::GetContext()
43 return reinterpret_cast<ImfContext>( Internal::Adaptor::ImfManager::GetImplementation(*this).GetContext() );
46 void ImfManager::Activate()
48 Internal::Adaptor::ImfManager::GetImplementation(*this).Activate();
51 void ImfManager::Deactivate()
53 Internal::Adaptor::ImfManager::GetImplementation(*this).Deactivate();
56 bool ImfManager::RestoreAfterFocusLost() const
58 return Internal::Adaptor::ImfManager::GetImplementation(*this).RestoreAfterFocusLost();
61 void ImfManager::SetRestoreAferFocusLost( bool toggle )
63 Internal::Adaptor::ImfManager::GetImplementation(*this).SetRestoreAferFocusLost( toggle );
66 void ImfManager::Reset()
68 Internal::Adaptor::ImfManager::GetImplementation(*this).Reset();
71 void ImfManager::NotifyCursorPosition()
73 Internal::Adaptor::ImfManager::GetImplementation(*this).NotifyCursorPosition();
76 void ImfManager::SetCursorPosition( unsigned int SetCursorPosition )
78 Internal::Adaptor::ImfManager::GetImplementation(*this).SetCursorPosition( SetCursorPosition );
81 int ImfManager::GetCursorPosition()
83 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetCursorPosition();
86 void ImfManager::SetSurroundingText( std::string text )
88 Internal::Adaptor::ImfManager::GetImplementation(*this).SetSurroundingText( text );
91 std::string ImfManager::GetSurroundingText()
93 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetSurroundingText();
96 ImfManager::ImfManagerSignalV2& ImfManager::ActivatedSignal()
98 return Internal::Adaptor::ImfManager::GetImplementation(*this).ActivatedSignal();
101 ImfManager::ImfEventSignalV2& ImfManager::EventReceivedSignal()
103 return Internal::Adaptor::ImfManager::GetImplementation(*this).EventReceivedSignal();
106 ImfManager::ImfManager(Internal::Adaptor::ImfManager *impl)