Add pepper-dali
[platform/core/uifw/pepper-dali.git] / pepper-dali / internal / shell-client.cpp
1 /*
2  * Copyright (c) 2016 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 // CLASS HEADER
19 #include <pepper-dali/internal/shell-client.h>
20
21 // INTERNAL INCLUDES
22 #include <pepper-dali/internal/shell-client-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Pepper
28 {
29
30 ShellClient ShellClient::New( Compositor compositor, struct wl_client* client, uint32_t version, uint32_t id )
31 {
32   Internal::ShellClientPtr internal = Internal::ShellClient::New( compositor, client, version, id );
33
34   return ShellClient( internal.Get() );
35 }
36
37 ShellClient ShellClient::DownCast( BaseHandle handle )
38 {
39   return ShellClient( dynamic_cast< Internal::ShellClient* >( handle.GetObjectPtr() ) );
40 }
41
42 ShellClient::ShellClient()
43 {
44 }
45
46 ShellClient::ShellClient( const ShellClient& handle )
47 : BaseHandle(handle)
48 {
49 }
50
51 ShellClient& ShellClient::operator=( const ShellClient& handle )
52 {
53   BaseHandle::operator=(handle);
54   return *this;
55 }
56
57 ShellClient::~ShellClient()
58 {
59 }
60
61 ShellClient::ShellClient( Internal::ShellClient* implementation )
62 : BaseHandle( implementation )
63 {
64 }
65
66 } // namespace Toolkit
67
68 } // namespace Dali