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 #ifdef DALI_ADAPTOR_COMPILATION
26 #include <trigger-event-interface.h>
28 #include <dali/integration-api/adaptors/trigger-event-interface.h>
35 * @brief Trigger interface factory class for creating a TriggerEvents
38 class TriggerEventFactoryInterface
44 * @brief Create a new concrete implementation of the event trigger interface.
45 * @param callback called when interface->Trigger() is called
46 * @param options TriggerEventInterface option
47 * @return pointer to a new trigger event
48 * @note Ownership of callback should be taken over by deriving classes
50 virtual TriggerEventInterface* CreateTriggerEvent( CallbackBase* callback,
51 TriggerEventInterface::Options options ) = 0;
53 * @brief destroy a trigger event
54 * @param triggerEventInterface event to destroy
56 virtual void DestroyTriggerEvent( TriggerEventInterface* triggerEventInterface ) = 0;
63 TriggerEventFactoryInterface()
68 * @brief Virtual Destructor
70 virtual ~TriggerEventFactoryInterface()
77 // Undefined copy constructor.
78 TriggerEventFactoryInterface( const TriggerEventFactoryInterface& );
80 // Undefined assignment operator.
81 TriggerEventFactoryInterface& operator=( const TriggerEventFactoryInterface& );
87 #endif // __DALI_INTEGRATION_TRIGGER_EVENT_FACTORY_INTERFACE_H__