Change event sync to async
[platform/framework/native/appfw.git] / src / io / inc / FIo_IChannelService.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 //
16
17 /**
18  * @file        FIo_IChannelService.h
19  * @brief       This is the header file for the _IChannelService class.
20  *
21  * This file contains the declarations of _IChannelService.
22  */
23
24
25 #ifndef _FIO_INTERNAL_ICHANNEL_SERVICE_H_
26 #define _FIO_INTERNAL_ICHANNEL_SERVICE_H_
27
28 #include <FBaseResult.h>
29 #include <FBaseString.h>
30 #include <FIoIChannelEventListener.h>
31 #include "FIo_IChannelServiceEventListener.h"
32
33 namespace Tizen { namespace Io
34 {
35
36 class _IChannelService
37 {
38 public:
39         virtual ~_IChannelService(void) {}
40
41         virtual result RegisterChannel(const Tizen::Base::String& channelId, const _IChannelServiceEventListener& listener) = 0;
42
43         virtual result UnregisterChannel(const Tizen::Base::String& channelId) = 0;
44
45         virtual result SendRequest(const Tizen::Base::String& src,
46                                                            const Tizen::Base::String& dest,
47                                                            const Tizen::Base::Collection::ArrayList& args,
48                                                            int messageId) = 0;
49
50         virtual result SendNullRequest(const Tizen::Base::String& src,
51                                                            const Tizen::Base::String& dest,
52                                                            int messageId) = 0;
53
54         virtual result SendResponse(const Tizen::Base::String& src,
55                                                                 const Tizen::Base::String& dest,
56                                                                 const Tizen::Base::Collection::ArrayList& args,
57                                                                 int messageId) = 0;
58
59         virtual result SendNullResponse(const Tizen::Base::String& src,
60                                                                 const Tizen::Base::String& dest,
61                                                                 int messageId) = 0;
62
63 }; // _IChannelService
64
65
66 } } // Tizen::Io
67
68 #endif // _FIO_INTERNAL_ICHANNEL_SERVICE_H_