FUi_CardLayoutImpl.cpp
FUiInputConnection.cpp
FUi_InputConnectionImpl.cpp
+ FUi_InputConnectionUtils.cpp
FUi_Matrix3Df.cpp
FUi_TouchEventManagerImpl.cpp
FUiTouchEventManager.cpp
#include "FUi_EcoreEvas.h"
#include "FUi_EcoreEvasMgr.h"
#include "FUi_InputConnectionImpl.h"
+#include "FUi_InputConnectionUtils.h"
#include "FUi_UiEventManager.h"
#include "FUiAnim_EflNode.h"
#include "FUiAnim_VisualElement.h"
int
_InputConnectionImpl::CheckUSBKeyboardStatus(void)
{
- Ecore_X_Window rootWindow = ecore_x_window_root_first_get();
- Ecore_X_Atom keyboardExist = 0;
- unsigned int keyboardNumber = 0;
- int ret = 0;
-
- if (!keyboardExist)
- {
- keyboardExist = ecore_x_atom_get("X External Keyboard Exist");
- }
- ret = ecore_x_window_prop_card32_get(rootWindow, keyboardExist, &keyboardNumber, 1);
-
- return keyboardNumber;
+ return _InputConnectionUtils::CheckUSBKeyboardStatus();
}
result
--- /dev/null
+//
+// Open Service Platform
+// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file FUi_InputConnectionUtils.cpp
+ * @brief This is the implementation file for the _InputConnectionUtils class.
+ */
+#include <Ecore.h>
+#include "FUi_EcoreEvas.h"
+#include "FUi_EcoreEvasMgr.h"
+#include "FUi_InputConnectionUtils.h"
+
+namespace Tizen { namespace Ui
+{
+
+_InputConnectionUtils::_InputConnectionUtils(void)
+{
+}
+
+_InputConnectionUtils::~_InputConnectionUtils(void)
+{
+}
+
+int
+_InputConnectionUtils::CheckUSBKeyboardStatus(void)
+{
+ Ecore_X_Window rootWindow = ecore_x_window_root_first_get();
+ Ecore_X_Atom keyboardExist = 0;
+ unsigned int keyboardNumber = 0;
+ int ret = 0;
+
+ if (!keyboardExist)
+ {
+ keyboardExist = ecore_x_atom_get("X External Keyboard Exist");
+ }
+ ret = ecore_x_window_prop_card32_get(rootWindow, keyboardExist, &keyboardNumber, 1);
+
+ return keyboardNumber;
+}
+
+}} // Tizen::Ui
--- /dev/null
+//
+// Open Service Platform
+// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file FUi_InputConnectionUtils.h
+ * @brief This is the header file for the _InputConnectionUtils class.
+ *
+ * This header file contains the declarations of the _InputConnectionUtils class.
+ */
+
+#ifndef _FUI_INTERNAL_INPUTCONNECTION_UTILS_H_
+#define _FUI_INTERNAL_INPUTCONNECTION_UTILS_H_
+
+namespace Tizen { namespace Ui
+{
+
+class _InputConnectionUtils
+{
+public:
+ static int CheckUSBKeyboardStatus(void);
+
+private:
+ _InputConnectionUtils(void);
+ ~_InputConnectionUtils(void);
+
+ _InputConnectionUtils(const _InputConnectionUtils& rhs);
+ _InputConnectionUtils& operator =(const _InputConnectionUtils& rhs);
+}; //_InputConnectionUtils
+
+}} // Tizen::Ui
+
+#endif //_FUI_INTERNAL_INPUTCONNECTION_UTILS_H_
\ No newline at end of file