Update DeviceManager [dep:osp-appfw, osp-app-service]
[platform/framework/native/common-service.git] / inc / FSys_SystemServiceIpcEventForAsync.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        FSys_SystemServiceIpcEventForAsync.h
19  * @brief       This is the header file for the %_SystemServiceIpcEventForAsync class.
20  *
21  * This header file contains the declarations of the %_SystemServiceIpcEventForAsync class.
22  */
23
24 #ifndef _FSYS_SYSTEM_SERVICE_EVENT_FOR_ASYNC_H_
25 #define _FSYS_SYSTEM_SERVICE_EVENT_FOR_ASYNC_H_
26
27 #include <FBase.h>
28 #include <FBaseSysLog.h>
29 #include <FIo_IpcServer.h>
30
31 using namespace Tizen::Base;
32 using namespace Tizen::Base::Collection;
33 using namespace Tizen::Io;
34
35 namespace Tizen { namespace System {
36 class _OSP_EXPORT_ _SystemServiceIpcEventForAsync
37         : public Tizen::Base::Runtime::EventDrivenThread
38 {
39 public:
40         _SystemServiceIpcEventForAsync(_IpcServer *pIpcServer);
41
42         bool OnStart(void)
43         {
44                 return true;
45         }
46         void OnStop(void) {}
47         result Construct(long stackSize, Tizen::Base::Runtime::ThreadPriority priority);
48         void OnUserEventReceivedN(RequestId requestId, IList *pArgs);
49 private:
50         _IpcServer* __pIpcServer;
51 };
52 }} //Tizen::System
53
54
55 #endif // _FSYS_SYSTEM_SERVICE_EVENT_FOR_ASYNC_H_
56