1 #ifndef __DALI_INTERNAL_BASE_TRIGGER_EVENT_FACTORY_INTERFACE_H__
2 #define __DALI_INTERNAL_BASE_TRIGGER_EVENT_FACTORY_INTERFACE_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/signals/callback.h>
25 #include <base/interfaces/trigger-event-interface.h>
37 * @brief Trigger interface factory class for creating a TriggerEvents
40 class TriggerEventFactoryInterface
46 * @brief Create a new concrete implementation of the event trigger interface.
47 * @param callback called when interface->Trigger() is called
48 * @return pointer to a new trigger event
49 * @note Ownership of callback should be taken over by deriving classes
51 virtual TriggerEventInterface* CreateTriggerEvent( CallbackBase* callback,
52 TriggerEventInterface::Options options = TriggerEventInterface::NONE) = 0;
54 * @brief destroy a trigger event
55 * @param trigger event to destroy
57 virtual void DestroyTriggerEvent( TriggerEventInterface* triggerEventInterface ) = 0;
64 TriggerEventFactoryInterface()
69 * @brief Virtual Destructor
71 virtual ~TriggerEventFactoryInterface()
78 // Undefined copy constructor.
79 TriggerEventFactoryInterface( const TriggerEventFactoryInterface& );
81 // Undefined assignment operator.
82 TriggerEventFactoryInterface& operator=( const TriggerEventFactoryInterface& );
87 } // namespace Internal
89 } // namespace Adaptor
93 #endif // __DALI_INTERNAL_BASE_TRIGGER_EVENT_FACTORY_INTERFACE_H__