2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0/
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 FUiScenesIFormFactory.h
20 * @brief This is the header file for the %IFormFactory interface.
22 * This header file contains the declarations of the %IFormFactory interface.
25 #ifndef _FUI_SCENES_IFORM_FACTORY_H_
26 #define _FUI_SCENES_IFORM_FACTORY_H_
28 #include <FBaseString.h>
29 #include <FUiScenesTypes.h>
32 namespace Tizen { namespace Ui { namespace Controls
38 namespace Tizen { namespace Ui { namespace Scenes
42 * @interface IFormFactory
43 * @brief This interface is the factory interface for creating the Form control instance.
47 * The %IFormFactory interface is the factory interface for creating the Form control instance.
48 * The SceneManager calls CreateFormN() with form ID string when an instance of %Form control is required.
50 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/scene_management.htm">Scene Management</a>.
52 class _OSP_EXPORT_ IFormFactory
56 * This polymorphic destructor should be overridden if required. This way,
57 * the destructors of the derived classes are called when the destructor of this interface is called.
61 virtual ~IFormFactory(void) {}
64 * Creates a Form instance.
68 * @return A pointer to a new Form instance
69 * @param[in] formId The form ID string that specifies the ID of the Form to create
70 * @param[in] sceneId The scene ID corresponding to the Form
71 * @remarks The new instance managed by the SceneManager class must not be deleted manually.
73 virtual Tizen::Ui::Controls::Form* CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId) = 0;
77 // This method is for internal use only. Using this method can cause behavioral,
78 // security-related, and consistency-related issues in the application.
82 virtual void IFormFactory_Reserved1(void) {}
85 // This method is for internal use only. Using this method can cause behavioral,
86 // security-related, and consistency-related issues in the application.
90 virtual void IFormFactory_Reserved2(void) {}
93 // This method is for internal use only. Using this method can cause behavioral,
94 // security-related, and consistency-related issues in the application.
98 virtual void IFormFactory_Reserved3(void) {}
101 } } } // Tizen::Ui::Scenes
103 #endif //_FUI_SCENES_IFORM_FACTORY_H_