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 FUiScenesIPanelFactory.h
20 * @brief This is the header file for the %IPanelFactory interface.
22 * This header file contains the declarations of the %IPanelFactory interface.
25 #ifndef _FUI_SCENES_IPANEL_FACTORY_H_
26 #define _FUI_SCENES_IPANEL_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 IPanelFactory
43 * @brief This interface is the factory interface for creating the Panel control instance.
47 * The %IPanelFactory interface is the factory interface for creating the Panel control instance.
48 * The SceneManager class calls CreatePanelN() with panel ID string when an instance of %Panel 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_ IPanelFactory
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 ~IPanelFactory(void) {}
64 * Creates a Panel instance.
68 * @return A pointer to a new Panel instance
69 * @param[in] panelId The panel ID string that specifies the ID of the Panel to create
70 * @param[in] sceneId The scene ID corresponding to the Panel
71 * @remarks The new instance managed by the SceneManager class must not be deleted manually.
73 virtual Tizen::Ui::Controls::Panel* CreatePanelN(const Tizen::Base::String& panelId, 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 IPanelFactory_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 IPanelFactory_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 IPanelFactory_Reserved3(void) {}
101 } } } // Tizen::Ui::Scenes
103 #endif //_FUI_SCENES_IPANEL_FACTORY_H_