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://floralicense.org/license/
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.
19 * @file FIo_SerialPortImpl.h
20 * @brief This is the header file for the %_SerialPortImpl class.
22 * This header file contains the declarations of the %_SerialPortImpl class.
25 #ifndef _FIO_INTERNAL_SERIALPORT_IMPL_H_
26 #define _FIO_INTERNAL_SERIALPORT_IMPL_H_
28 #include <FBaseRtEvent.h>
30 #include <FIoISerialPortEventListener.h>
31 #include <FIo_IIpcClientEventListener.h>
33 namespace Tizen { namespace Base { namespace Collection {
37 namespace Tizen { namespace Io
41 : public _IIpcClientEventListener
44 _SerialPortImpl(ISerialPortEventListener& listener);
46 virtual ~_SerialPortImpl(void);
48 result Write(const Tizen::Base::ByteBuffer &byteBuffer);
49 int GetWriteBufferSize(void) const;
50 void OnIpcResponseReceived(_IpcClient& client, const IPC::Message& message);
51 void OnDataReceived(const Tizen::Base::Collection::ArrayList& data);
54 _IpcClient* __pIpcClient;
55 Tizen::Base::Runtime::Event* __pEvent;
57 _SerialPortImpl(_SerialPortImpl& serialPortImpl);
59 _SerialPortImpl& operator =(const _SerialPortImpl& serialPortImpl);
64 #endif // _FIO_INTERNAL_SERIALPORT_IMPL_H_