Remove DALI_ADAPTOR_COMPILATION define
[platform/core/uifw/dali-adaptor.git] / dali / integration-api / adaptors / trigger-event-factory-interface.h
1 #ifndef DALI_INTEGRATION_TRIGGER_EVENT_FACTORY_INTERFACE_H
2 #define DALI_INTEGRATION_TRIGGER_EVENT_FACTORY_INTERFACE_H
3
4 /*
5  * Copyright (c) 2019 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 // EXTERNAL INCLUDES
22 #include <dali/public-api/signals/callback.h>
23
24 // INTERNAL INCLUDES
25 #include <dali/integration-api/adaptors/trigger-event-interface.h>
26
27 namespace Dali
28 {
29
30 /**
31  * @brief Trigger interface factory class for creating a TriggerEvents
32  *
33  */
34 class TriggerEventFactoryInterface
35 {
36 public:
37
38
39   /**
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
45    */
46   virtual TriggerEventInterface* CreateTriggerEvent( CallbackBase* callback,
47                                                      TriggerEventInterface::Options options ) = 0;
48   /**
49    * @brief destroy a trigger event
50    * @param triggerEventInterface event to destroy
51    */
52   virtual void DestroyTriggerEvent( TriggerEventInterface* triggerEventInterface ) = 0;
53
54 protected:
55
56   /**
57    * @brief  Constructor
58    */
59   TriggerEventFactoryInterface()
60   {
61   }
62
63   /**
64    * @brief Virtual Destructor
65    */
66   virtual ~TriggerEventFactoryInterface()
67   {
68   }
69
70 private:
71
72
73   // Undefined copy constructor.
74   TriggerEventFactoryInterface( const TriggerEventFactoryInterface& );
75
76   // Undefined assignment operator.
77   TriggerEventFactoryInterface& operator=( const TriggerEventFactoryInterface& );
78
79 };
80
81 } // namespace Dali
82
83 #endif // DALI_INTEGRATION_TRIGGER_EVENT_FACTORY_INTERFACE_H