Fix smack dependency
[platform/framework/native/common-service.git] / inc / FUi_UiManagerStub.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file         FUi_UiManagerStub.h
20  * @brief       This is the header file of the _UiManagerStub class.
21  *
22  * This header file contains the declarations of the _UiManagerStub class.
23  */
24
25 #ifndef _FUI_INTERNAL_UI_MANAGER_STUB_H_
26 #define _FUI_INTERNAL_UI_MANAGER_STUB_H_
27
28 #include <unique_ptr.h>
29 #include <FBaseObject.h>
30 #include <FBaseString.h>
31 #include <FIo_IIpcServerEventListener.h>
32
33 namespace Tizen { namespace Ui
34 {
35
36 class _UiManagerStub
37         : public Tizen::Base::Object
38         , public Tizen::Io::_IIpcServerEventListener
39 {
40 public:
41         _UiManagerStub(void);
42         virtual ~_UiManagerStub(void);
43         
44         result Construct(void);
45
46         bool OnSetZOrderGroup(unsigned int window, int windowZOrderGroup, result* pResult);
47
48 private:
49         _UiManagerStub(const _UiManagerStub& rhs);
50         _UiManagerStub& operator =(const _UiManagerStub& rhs);
51
52         result StartIpcServer(void);
53
54         virtual void OnIpcServerStarted(const Tizen::Io::_IpcServer& server);
55         virtual void OnIpcServerStopped(const Tizen::Io::_IpcServer& server);
56         virtual void OnIpcClientConnected(const Tizen::Io::_IpcServer& server, int clientId);
57         virtual void OnIpcClientDisconnected(const Tizen::Io::_IpcServer&server, int clientId);
58         virtual void OnIpcRequestReceived(Tizen::Io::_IpcServer& server, const IPC::Message& message);
59
60 private:
61         std::unique_ptr<Tizen::Io::_IpcServer> __pIpcServer;
62 }; // _UiManagerStub
63
64 }} // Tizen::Ui
65
66 #endif // _FUI_INTERNAL_UI_MANAGER_STUB_H_