Merge "Adjust the log level to INFO()" into devel/master
[platform/core/uifw/dali-adaptor.git] / dali / integration-api / 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) 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 #ifdef DALI_ADAPTOR_COMPILATION
26 #include <dali/integration-api/trigger-event-interface.h>
27 #else
28 #include <dali/integration-api/adaptors/trigger-event-interface.h>
29 #endif
30
31 namespace Dali
32 {
33
34 /**
35  * @brief Trigger interface factory class for creating a TriggerEvents
36  *
37  */
38 class TriggerEventFactoryInterface
39 {
40 public:
41
42
43   /**
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
49    */
50   virtual TriggerEventInterface* CreateTriggerEvent( CallbackBase* callback,
51                                                      TriggerEventInterface::Options options ) = 0;
52   /**
53    * @brief destroy a trigger event
54    * @param triggerEventInterface event to destroy
55    */
56   virtual void DestroyTriggerEvent( TriggerEventInterface* triggerEventInterface ) = 0;
57
58 protected:
59
60   /**
61    * @brief  Constructor
62    */
63   TriggerEventFactoryInterface()
64   {
65   }
66
67   /**
68    * @brief Virtual Destructor
69    */
70   virtual ~TriggerEventFactoryInterface()
71   {
72   }
73
74 private:
75
76
77   // Undefined copy constructor.
78   TriggerEventFactoryInterface( const TriggerEventFactoryInterface& );
79
80   // Undefined assignment operator.
81   TriggerEventFactoryInterface& operator=( const TriggerEventFactoryInterface& );
82
83 };
84
85 } // namespace Dali
86
87 #endif // __DALI_INTEGRATION_TRIGGER_EVENT_FACTORY_INTERFACE_H__