1 #ifndef __DALI_INTEGRATION_TRIGGER_EVENT_FACTORY_INTERFACE_H__
2 #define __DALI_INTEGRATION_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 <trigger-event-interface.h>
31 * @brief Trigger interface factory class for creating a TriggerEvents
34 class TriggerEventFactoryInterface
40 * @brief Create a new concrete implementation of the event trigger interface.
41 * @param callback called when interface->Trigger() is called
42 * @param options TriggerEventInterface option
43 * @return pointer to a new trigger event
44 * @note Ownership of callback should be taken over by deriving classes
46 virtual TriggerEventInterface* CreateTriggerEvent( CallbackBase* callback,
47 TriggerEventInterface::Options options = TriggerEventInterface::NONE) = 0;
49 * @brief destroy a trigger event
50 * @param triggerEventInterface event to destroy
52 virtual void DestroyTriggerEvent( TriggerEventInterface* triggerEventInterface ) = 0;
59 TriggerEventFactoryInterface()
64 * @brief Virtual Destructor
66 virtual ~TriggerEventFactoryInterface()
73 // Undefined copy constructor.
74 TriggerEventFactoryInterface( const TriggerEventFactoryInterface& );
76 // Undefined assignment operator.
77 TriggerEventFactoryInterface& operator=( const TriggerEventFactoryInterface& );
83 #endif // __DALI_INTEGRATION_TRIGGER_EVENT_FACTORY_INTERFACE_H__