f34f813d3b6e23d6f926d56311495fa58509afe0
[platform/core/appfw/message-port.git] / src / IIpcClientEventListener.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file        IIpcClientEventListener.h
20  * @brief       This is the header file for the IIpcClientEventListener class.
21  *
22  * This file contains the declarations of  IIpcClientEventListener.
23  */
24
25 #ifndef _IIPC_CLIENT_EVENT_LISTENER_H_
26 #define _IIPC_CLIENT_EVENT_LISTENER_H_
27
28 namespace IPC { class Message; }
29
30 class IpcClient;
31
32 /**
33  * @interface IIpcClientEventListener
34  * @brief     This interface provides the listener method for the response from IPC server.
35  */
36 class IIpcClientEventListener
37 {
38 public:
39
40         /**
41          * This is the destructor for this class.
42          */
43         virtual ~IIpcClientEventListener(void) {}
44
45         /**
46          * Called when an IPC response message received.
47          *
48          * @param[in] client       The IPC client
49          * @param[in] message      The response message
50          */
51         virtual void OnIpcResponseReceived(IpcClient& client, const IPC::Message& message) = 0;
52 }; // IIpcClientEventListener
53
54 #endif //_IIPC_CLIENT_EVENT_LISTENER_H_