Removed singletons from the type registry
[platform/core/uifw/dali-adaptor.git] / adaptors / ecore / wayland / imf-manager-impl-ecore-wl.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <imf-manager-impl.h>
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/events/key-event.h>
23 #include <dali/public-api/object/type-registry.h>
24 #include <dali/integration-api/debug.h>
25
26 // INTERNAL INCLUDES
27 #include <adaptor.h>
28 #include <window-render-surface.h>
29 #include <adaptor-impl.h>
30 #include <singleton-service-impl.h>
31 #include <virtual-keyboard-impl.h>
32
33 namespace Dali
34 {
35
36 namespace Internal
37 {
38
39 namespace Adaptor
40 {
41
42 bool ImfManager::IsAvailable()
43 {
44   return false;
45 }
46
47 Dali::ImfManager ImfManager::Get()
48 {
49   // Return empty handle as not supported
50   return Dali::ImfManager();
51 }
52
53 ImfManager::~ImfManager()
54 {
55 }
56
57 void ImfManager::DeleteContext()
58 {
59 }
60
61 void ImfManager::ConnectCallbacks()
62 {
63 }
64
65 void ImfManager::DisconnectCallbacks()
66 {
67 }
68
69 void ImfManager::Activate()
70 {
71 }
72
73 void ImfManager::Deactivate()
74 {
75 }
76
77 void ImfManager::Reset()
78 {
79 }
80
81 Ecore_IMF_Context* ImfManager::GetContext()
82 {
83   return mIMFContext;
84 }
85
86 bool ImfManager::RestoreAfterFocusLost() const
87 {
88   return mRestoreAfterFocusLost;
89 }
90
91 void ImfManager::SetRestoreAfterFocusLost( bool toggle )
92 {
93   mRestoreAfterFocusLost = toggle;
94 }
95
96 void ImfManager::PreEditChanged( void *, Ecore_IMF_Context *imfContext, void *event_info )
97 {
98 }
99
100 void ImfManager::CommitReceived( void *, Ecore_IMF_Context *imfContext, void *event_info )
101 {
102 }
103
104 Eina_Bool ImfManager::RetrieveSurrounding( void *data, Ecore_IMF_Context *imfContext, char** text, int* cursorPosition )
105 {
106   return EINA_TRUE;
107 }
108
109 void ImfManager::DeleteSurrounding( void *data, Ecore_IMF_Context *imfContext, void *event_info )
110 {
111 }
112
113 void ImfManager::NotifyCursorPosition()
114 {
115 }
116
117 void ImfManager::SetCursorPosition( unsigned int cursorPosition )
118 {
119   mIMFCursorPosition = static_cast<int>( cursorPosition );
120 }
121
122 unsigned int ImfManager::GetCursorPosition() const
123 {
124   return static_cast<unsigned int>( mIMFCursorPosition );
125 }
126
127 void ImfManager::SetSurroundingText( const std::string& text )
128 {
129   mSurroundingText = text;
130 }
131
132 const std::string& ImfManager::GetSurroundingText() const
133 {
134   return mSurroundingText;
135 }
136
137 } // Adaptor
138
139 } // Internal
140
141 } // Dali