Revert "Separating integration-devel from devel package for 2nd party to use adaptor"
[platform/core/uifw/dali-adaptor.git] / adaptors / base / interfaces / trigger-event-factory-interface.h
1 #ifndef __DALI_INTERNAL_BASE_TRIGGER_EVENT_FACTORY_INTERFACE_H__
2 #define __DALI_INTERNAL_BASE_TRIGGER_EVENT_FACTORY_INTERFACE_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 // EXTERNAL INCLUDES
22 #include <dali/public-api/signals/callback.h>
23
24 // INTERNAL INCLUDES
25 #include <base/interfaces/trigger-event-interface.h>
26
27 namespace Dali
28 {
29
30 namespace Internal
31 {
32
33 namespace Adaptor
34 {
35
36 /**
37  * @brief Trigger interface factory class for creating a TriggerEvents
38  *
39  */
40 class TriggerEventFactoryInterface
41 {
42 public:
43
44
45   /**
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
50    */
51   virtual TriggerEventInterface* CreateTriggerEvent( CallbackBase* callback,
52                                                      TriggerEventInterface::Options options = TriggerEventInterface::NONE) = 0;
53   /**
54    * @brief destroy a trigger event
55    * @param trigger event to destroy
56    */
57   virtual void DestroyTriggerEvent( TriggerEventInterface* triggerEventInterface ) = 0;
58
59 protected:
60
61   /**
62    * @brief  Constructor
63    */
64   TriggerEventFactoryInterface()
65   {
66   }
67
68   /**
69    * @brief Virtual Destructor
70    */
71   virtual ~TriggerEventFactoryInterface()
72   {
73   }
74
75 private:
76
77
78   // Undefined copy constructor.
79   TriggerEventFactoryInterface( const TriggerEventFactoryInterface& );
80
81   // Undefined assignment operator.
82   TriggerEventFactoryInterface& operator=( const TriggerEventFactoryInterface& );
83
84 };
85
86
87 } // namespace Internal
88
89 } // namespace Adaptor
90
91 } // namespace Dali
92
93 #endif // __DALI_INTERNAL_BASE_TRIGGER_EVENT_FACTORY_INTERFACE_H__