InputMethod Public enums added for settings 47/39747/5
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 21 May 2015 16:53:38 +0000 (17:53 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 22 May 2015 16:02:13 +0000 (17:02 +0100)
Change-Id: Ic1a0cf976acda726a48a3a2c863ff2fdbd8fa716
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
adaptors/public-api/adaptor-framework/input-method.h [new file with mode: 0644]
adaptors/public-api/dali.h
adaptors/public-api/file.list

diff --git a/adaptors/public-api/adaptor-framework/input-method.h b/adaptors/public-api/adaptor-framework/input-method.h
new file mode 100644 (file)
index 0000000..06d0d06
--- /dev/null
@@ -0,0 +1,71 @@
+#ifndef __DALI_INPUT_MEHTOD_H__
+#define __DALI_INPUT_MEHTOD_H__
+
+/*
+ * Copyright (c) 2015 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.
+ *
+ */
+
+// EXTERNAL INCLUDES
+#include <dali/public-api/common/dali-common.h>
+
+namespace Dali
+{
+
+namespace InputMethod
+{
+/**
+ * @brief Specifies what the Input Method "action" button functionality is set to.
+ *
+ * The 'Action' button is traditionally the [RETURN] or [DONE] button.
+ *
+ * Not all these actions are supported by all systems
+ *
+ * Setting a custom label will still require one of these actions to be set.
+ */
+enum ActionButton
+{
+  ACTION_DEFAULT,
+  ACTION_DONE,
+  ACTION_GO,
+  ACTION_JOIN,
+  ACTION_LOGIN,
+  ACTION_NEXT,
+  ACTION_PREVIOUS,
+  ACTION_SEARCH,
+  ACTION_SEND,
+  ACTION_SIGNIN,
+  ACTION_UNSPECIFIED,
+  ACTION_NONE
+};
+
+/**
+ * @brief Settings that can be changed in the system Input Method
+ *
+ * Not all these settings are supported by all systems
+ */
+enum Settings
+{
+  ACTION_BUTTON,          // ActionButton // Apply the one of the ActionButton functions to the action button (return button)
+  AUTO_CAPITALISE,        // boolean      // Capitalise first letter of each sentence automatically
+  AUTO_COMPLETE,          // boolean      // Suggest words based on the current input
+  AUTO_CORRECT            // boolean      // Automatically correct commonly misspelt words
+};
+
+} // namespace InputMethod
+
+} // namespace Dali
+
+#endif // __DALI_INPUT_MEHTOD_H__
index 10b1550..60a1b57 100644 (file)
@@ -23,6 +23,7 @@
 // Application / UI Framework adaption
 #include <dali/public-api/adaptor-framework/application.h>
 #include <dali/public-api/adaptor-framework/orientation.h>
+#include <dali/public-api/adaptor-framework/input-method.h>
 #include <dali/public-api/adaptor-framework/key.h>
 #include <dali/public-api/adaptor-framework/timer.h>
 #include <dali/public-api/dali-adaptor-version.h>
index 2054c8c..c446939 100644 (file)
@@ -14,6 +14,7 @@ public_api_header_files = \
 public_api_adaptor_framework_header_files = \
   $(adaptor_public_api_dir)/adaptor-framework/application.h \
   $(adaptor_public_api_dir)/adaptor-framework/application-configuration.h \
+  $(adaptor_public_api_dir)/adaptor-framework/input-method.h \
   $(adaptor_public_api_dir)/adaptor-framework/key.h \
   $(adaptor_public_api_dir)/adaptor-framework/orientation.h \
   $(adaptor_public_api_dir)/adaptor-framework/style-change.h \