2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiIDataBindingDataValidator.h
20 * @brief This is the header file for the %IDataBindingDataValidator interface.
22 * This header file contains the declarations of the %IDataBindingDataValidator interface.
25 #ifndef _FUI_IDATA_BINDING_DATA_VALIDATOR_H_
26 #define _FUI_IDATA_BINDING_DATA_VALIDATOR_H_
28 #include <FUiDataBindingTypes.h>
30 namespace Tizen { namespace Base
36 namespace Tizen { namespace Ui
40 * @interface IDataBindingDataValidator
41 * @brief This interface defines methods for validating the value of transformed data that will be updated to the binding
46 * The %IDataBindingDataValidator interface defines methods for validating the value of transformed data that will be updated to the binding.
48 class _OSP_EXPORT_ IDataBindingDataValidator
52 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface is called.
56 virtual ~IDataBindingDataValidator(void) {};
59 * Validates the value of the transformed data that will be updated to the binding target.
62 * @return @c true if the specified value is valid, @n
64 * @param[in] bindingId The binding ID to validate
65 * @param[in] data The data to validate
67 virtual bool ValidateDataToTarget(const Tizen::Base::String& bindingId, const Tizen::Base::Object& data) = 0;
70 * Validates the value of the transformed data that will be updated to the binding source.
73 * @return @c true if the specified value is valid, @n
75 * @param[in] bindingId The binding ID to validate
76 * @param[in] data The data to validate
78 virtual bool ValidateDataToSource( const Tizen::Base::String& bindingId, const Tizen::Base::Object& data) = 0;
82 // This method is for internal use only. Using this method can cause behavioral, security-related,
83 // and consistency-related issues in the application.
85 // This method is reserved and may change its name at any time without
88 virtual void IDataBindingDataValidator_Reserved1(void) {}
91 // This method is for internal use only. Using this method can cause behavioral, security-related,
92 // and consistency-related issues in the application.
94 // This method is reserved and may change its name at any time without
97 virtual void IDataBindingDataValidator_Reserved2(void) {}
100 // This method is for internal use only. Using this method can cause behavioral, security-related,
101 // and consistency-related issues in the application.
103 // This method is reserved and may change its name at any time without
106 virtual void IDataBindingDataValidator_Reserved3(void) {}
108 }; // IDataBindingDataValidator
111 #endif // _FUI_IDATA_BINDING_DATA_VALIDATOR_H_