1 #ifndef DALI_INTERNAL_TRIGGER_EVENT_IMPL_H
2 #define DALI_INTERNAL_TRIGGER_EVENT_IMPL_H
5 * Copyright (c) 2019 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 #include <dali/public-api/dali-adaptor-common.h>
26 #include <dali/integration-api/adaptors/trigger-event-interface.h>
37 class TriggerEvent : public TriggerEventInterface
43 * Creates an event file descriptor and starts a GSource which reads from the file
44 * descriptor when there is data.
46 * @param[in] callback The callback to call
47 * @param[in] options Trigger event options.
48 * @note The ownership of callback is taken by this class.
50 TriggerEvent( CallbackBase* callback, TriggerEventInterface::Options options );
62 * This can be called from one thread in order to wake up another thread.
69 * @brief Called when our event file descriptor has been written to.
70 * @param[in] eventBitMask bit mask of events that occured on the file descriptor
76 CallbackBase* mCallback;
78 TriggerEventInterface::Options mOptions;
81 } // namespace Adaptor
83 } // namespace Internal
87 #endif // DALI_INTERNAL_TRIGGER_EVENT_IMPL_H