Change event sync to async
[platform/framework/native/appfw.git] / src / io / inc / FIo_IDataRouterEventListener.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_IDataRouterEventListener.h
19  * @brief       This is the header file for the %_IDataRouterEventListener class.
20  *
21  * This header file contains the declarations of the %_IDataRouterEventListener class.
22  */
23
24 #ifndef _FIO_DATAROUTER_EVENT_LISTENER_H_
25 #define _FIO_DATAROUTER_EVENT_LISTENER_H_
26
27 #include <FBase.h>
28 #include <FIo_DataRouter.h>
29
30 namespace Tizen { namespace Io
31 {
32
33 /**
34  * @interface _IDataRouterEventListener
35  * @brief This interface is an event listener used to receive serial port event synchronously.
36  *
37  * The listener interface for data router events.
38  */
39
40 class _OSP_EXPORT_ _IDataRouterEventListener
41         : public Tizen::Base::Runtime::IEventListener
42 {
43
44 public:
45         virtual void OnDataRouterDataReceivedN(const char* buffer, int length) = 0;
46         virtual void OnDataRouterStateChanged(_DataRouterState state) = 0;
47
48 }; // _IDataRouterEventListener
49
50 }} // Tizen::Io
51
52 #endif // _FIO_DATAROUTER_EVENT_LISTENER_H_
53