Merge "Revert "Fix N_SE-46938 for tz list."" into devel_3.0_main
[platform/framework/native/appfw.git] / src / io / inc / FIo_ClientChannelImpl.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_ClientChannelImpl.h
19  * @brief       This is the header file for the _ClientChannelImpl class.
20  *
21  * This file contains the declarations of  _ClientChannelImpl
22  */
23
24
25 #ifndef _FIO_INTERNAL_CLIENT_CHANNEL_IMPL_H_
26 #define _FIO_INTERNAL_CLIENT_CHANNEL_IMPL_H_
27
28 #include <FBaseResult.h>
29 #include <FBaseObject.h>
30 #include <FBaseDataType.h>
31 #include <FBaseString.h>
32 #include <FBaseColArrayList.h>
33 #include <FAppTypes.h>
34 #include "FIo_IChannelResponseEventListener.h"
35
36
37 namespace Tizen { namespace Io
38 {
39
40 class _Channel;
41 class ClientChannel;
42 class IChannelResponseEventListener;
43
44 class _ClientChannelImpl
45         : public Tizen::Base::Object
46         , public _IChannelResponseEventListener
47 {
48 public:
49         _ClientChannelImpl(void);
50
51         virtual ~_ClientChannelImpl(void);
52
53         result Construct(ClientChannel* pClientChannel, const Tizen::Base::String& channelName = L"");
54
55         void SetChannelResponseEventListener(IChannelResponseEventListener* pResponseEventListener);
56
57         result SendRequest(const Tizen::Base::String& serverChannelId, const Tizen::Base::Collection::IList* pArgs, RequestId& reqId);
58
59         void OnChannelResponseReceivedN(RequestId reqId, const Tizen::Base::String& channelId, Tizen::Base::Collection::IList* pArgs);
60
61         static _ClientChannelImpl* GetInstance(ClientChannel* pChannel);
62
63         static ClientChannel* GetClientChannel(const Tizen::Base::String& channelName);
64
65 private:
66         _ClientChannelImpl(const _ClientChannelImpl& value);
67
68         _ClientChannelImpl& operator =(const _ClientChannelImpl& value);
69
70 private:
71         ClientChannel* __pClientChannel;
72         IChannelResponseEventListener* __pResponseListener;
73         _Channel* __pChannel;
74 }; // _ClientChannelImpl
75
76 } } // Tizen::Io
77
78 #endif //_FIO_INTERNAL_CLIENT_CHANNEL_IMPL_H_