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.
18 * @file FIo_ClientChannelImpl.h
19 * @brief This is the header file for the _ClientChannelImpl class.
21 * This file contains the declarations of _ClientChannelImpl
25 #ifndef _FIO_INTERNAL_CLIENT_CHANNEL_IMPL_H_
26 #define _FIO_INTERNAL_CLIENT_CHANNEL_IMPL_H_
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"
37 namespace Tizen { namespace Io
42 class IChannelResponseEventListener;
44 class _ClientChannelImpl
45 : public Tizen::Base::Object
46 , public _IChannelResponseEventListener
49 _ClientChannelImpl(void);
51 virtual ~_ClientChannelImpl(void);
53 result Construct(ClientChannel* pClientChannel, const Tizen::Base::String& channelName = L"");
55 void SetChannelResponseEventListener(IChannelResponseEventListener* pResponseEventListener);
57 result SendRequest(const Tizen::Base::String& serverChannelId, const Tizen::Base::Collection::IList* pArgs, RequestId& reqId);
59 void OnChannelResponseReceivedN(RequestId reqId, const Tizen::Base::String& channelId, Tizen::Base::Collection::IList* pArgs);
61 static _ClientChannelImpl* GetInstance(ClientChannel* pChannel);
63 static ClientChannel* GetClientChannel(const Tizen::Base::String& channelName);
66 _ClientChannelImpl(const _ClientChannelImpl& value);
68 _ClientChannelImpl& operator =(const _ClientChannelImpl& value);
71 ClientChannel* __pClientChannel;
72 IChannelResponseEventListener* __pResponseListener;
74 }; // _ClientChannelImpl
78 #endif //_FIO_INTERNAL_CLIENT_CHANNEL_IMPL_H_