1 #ifndef __DALI_SIGNAL_SLOT_OBSERVERS_H__
2 #define __DALI_SIGNAL_SLOT_OBSERVERS_H__
5 * Copyright (c) 2015 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/common/dali-common.h>
27 * @addtogroup dali_core_signals
35 * @brief Abstract interface used by a signal to inform a slot it is disconnecting.
37 * This will happen if the object owning the signal is destroyed.
40 class DALI_IMPORT_API SignalObserver
51 * @brief Virtual destructor.
54 virtual ~SignalObserver();
57 * @brief This method is called when the signal is disconnecting.
60 * @param[in] slotObserver The signal that has disconnected.
61 * @param[in] callback The callback attached to the signal disconnected.
63 virtual void SignalDisconnected( SlotObserver* slotObserver, CallbackBase* callback ) = 0;
67 * @brief Abstract Interface used by a slot to inform a signal it is disconnecting.
69 * This is used by the slot if wants to disconnect or is deleted.
72 class DALI_IMPORT_API SlotObserver
83 * @brief Virtual destructor.
86 virtual ~SlotObserver();
89 * @brief This method is called when the slot is disconnecting.
92 * @param[in] callback The callback attached to the signal disconnected.
94 virtual void SlotDisconnected( CallbackBase* callback ) = 0;
102 #endif // __DALI_SIGNAL_SLOT_OBSERVERS_H__