2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
17 * @file FIoIChannelEventListener.h
18 * @brief This is the header file for the %IChannelEventListener interface.
20 * This header file contains the declarations of the %IChannelEventListener interface. @n
21 * If the channel event is generated, a method of this interface will be called.
22 * So, if the application performs jobs related to the channel event, use methods that belong to this class.
25 #ifndef _FIO_ICHANNEL_EVENT_LISTENER_H_
26 #define _FIO_ICHANNEL_EVENT_LISTENER_H_
29 #include <FBaseRtIEventListener.h>
30 #include <FIoChannelTypes.h>
31 #include <FAppTypes.h>
33 namespace Tizen { namespace Io
37 * @interface IChannelEventListener
38 * @brief This interface provides event handlers for the channel creation and deletion.
42 * The %IChannelEventListener interface provides event handlers for receiving the channel events.
45 class IChannelEventListener
46 : virtual public Tizen::Base::Runtime::IEventListener
50 * This is the destructor for this class.
54 virtual ~IChannelEventListener(void) {}
57 * Called when an application creates the channel.
61 * @param[in] appId The application ID that creates the channel
62 * @param[in] type The type of the channel
65 virtual void OnChannelCreated(const Tizen::App::AppId& appId, ChannelType type){}
68 * Called when an application deletes the channel.
72 * @param[in] appId The application ID that deletes the channel
73 * @param[in] type The type of the channel
76 virtual void OnChannelDeleted(const Tizen::App::AppId& appId, ChannelType type){}
81 // This method is for internal use only.
82 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
84 // This method is reserved and may change its name at any time without prior notice.
88 virtual void IChannelEventListener_Reserved1(void) {}
91 // This method is for internal use only.
92 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
94 // This method is reserved and may change its name at any time without prior notice.
98 virtual void IChannelEventListener_Reserved2(void) {}
101 // This method is for internal use only.
102 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
104 // This method is reserved and may change its name at any time without prior notice.
108 virtual void IChannelEventListener_Reserved3(void) {}
113 #endif // _FIO_ICHANNEL_EVENT_LISTENER_H_