2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FIoIChannelResponseEventListener.h
19 * @brief This is the header file for the %IChannelResponseEventListener interface.
21 * This header file contains the declarations of the %IChannelResponseEventListener interface.
24 #ifndef _FIO_ICHANNEL_RESPONSEEVENT_LISTENER_H_
25 #define _FIO_ICHANNEL_RESPONSEEVENT_LISTENER_H_
27 #include <FBaseTypes.h>
28 #include <FBaseDataType.h>
29 #include <FBaseRtIEventListener.h>
31 #include <FAppTypes.h>
33 namespace Tizen { namespace Io
39 * @interface IChannelResponseEventListener
40 * @brief <i> [Deprecated] </i> This interface provides event handlers for any response events received through a channel.
42 * @deprecated This class is deprecated. Instead of using this class, use the MessagePortManager class.
45 * The %IChannelResponseEventListener interface provides event handlers for receiving the channel response events.
48 class _OSP_EXPORT_ IChannelResponseEventListener
49 : virtual public Tizen::Base::Runtime::IEventListener
53 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface is called.
57 virtual ~IChannelResponseEventListener(void) {}
60 * Called when a response is received from a server channel.
64 * @param[in] reqId The request ID
65 * @param[in] clientChannel The reference to the client channel
66 * @param[in] serverChannelId The server channel ID
67 * @param[in] pArgs A pointer to an argument list of type String
70 virtual void OnChannelResponseReceivedN(RequestId reqId, ClientChannel& clientChannel, const Tizen::Base::String& serverChannelId, Tizen::Base::Collection::IList* pArgs) = 0;
75 // This method is for internal use only.
76 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
78 // This method is reserved and may change its name at any time without prior notice.
82 virtual void IChannelResponseEventListener_Reserved2(void) {}
85 // This method is for internal use only.
86 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
88 // This method is reserved and may change its name at any time without prior notice.
92 virtual void IChannelResponseEventListener_Reserved3(void) {}
93 }; // IChannelResponseEventListener
97 #endif // _FIO_ICHANNEL_RESPONSEEVENT_LISTENER_H_