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_IDataRouterEventListener.h
19 * @brief This is the header file for the %_IDataRouterEventListener class.
21 * This header file contains the declarations of the %_IDataRouterEventListener class.
24 #ifndef _FIO_DATAROUTER_EVENT_LISTENER_H_
25 #define _FIO_DATAROUTER_EVENT_LISTENER_H_
28 #include <FIo_DataRouter.h>
30 namespace Tizen { namespace Io
34 * @interface _IDataRouterEventListener
35 * @brief This interface is an event listener used to receive serial port event synchronously.
37 * The listener interface for data router events.
40 class _OSP_EXPORT_ _IDataRouterEventListener
41 : public Tizen::Base::Runtime::IEventListener
45 virtual void OnDataRouterDataReceivedN(const char* buffer, int length) = 0;
46 virtual void OnDataRouterStateChanged(_DataRouterState state) = 0;
48 }; // _IDataRouterEventListener
52 #endif // _FIO_DATAROUTER_EVENT_LISTENER_H_