Replaced boost::function with Dali::Callback
[platform/core/uifw/dali-adaptor.git] / adaptors / common / trigger-event-factory.h
1 #ifndef __DALI_INTERNAL_ADAPTOR_TRIGGER_EVENT_FACTORY_H__
2 #define __DALI_INTERNAL_ADAPTOR_TRIGGER_EVENT_FACTORY_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <base/interfaces/trigger-event-factory-interface.h>
23
24 namespace Dali
25 {
26
27 namespace Internal
28 {
29
30 namespace Adaptor
31 {
32
33 /**
34  * @brief Trigger interface factory class
35  *
36  */
37 class TriggerEventFactory : public TriggerEventFactoryInterface
38 {
39
40 public:
41
42   /**
43    * @brief Constructor
44    */
45   TriggerEventFactory()
46   {
47   }
48
49   /**
50    * @brief Destructor
51    */
52   virtual ~TriggerEventFactory()
53   {
54   }
55
56   /**
57    * @copydoc TriggerEventFactoryInterface::CreateTriggerEvent
58    */
59   virtual TriggerEventInterface* CreateTriggerEvent(  CallbackBase* callback, TriggerEventInterface::Options options );
60
61
62   /**
63    * @copydoc TriggerEventFactoryInterface::DestroyTriggerEvent
64    */
65   virtual void DestroyTriggerEvent( TriggerEventInterface* triggerEventInterface );
66
67 };
68
69 } // namespace Internal
70
71 } // namespace Adaptor
72
73 } // namespace Dali
74
75 #endif // __DALI_INTERNAL_ADAPTOR_TRIGGER_EVENT_FACTORY_H__