apply Pre-ACR result, add _LiveboxPopupProviderImpl
[platform/framework/native/shell.git] / src / FShellLiveboxSizeInfo.cpp
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        FShellLiveboxInfo.cpp
20  * @brief       This is the implementation for the LiveboxInfo class.
21  */
22
23 #include <unique_ptr.h>
24 #include <livebox-service/livebox-service.h>
25 #include <FBase.h>
26 #include <FBaseSysLog.h>
27 #include <FBase_StringConverter.h>
28 #include <FShellLiveboxSizeInfo.h>
29
30 #include "FShell_LiveboxSizeInfoImpl.h"
31
32
33 using namespace Tizen::Base;
34 using namespace Tizen::Base::Collection;
35 using namespace Tizen::Graphics;
36
37 namespace Tizen { namespace Shell
38 {
39
40 LiveboxSizeInfo::LiveboxSizeInfo(Dimension size, const String& previewImagePath)
41 {
42         __pLiveboxSizeInfoImpl = new _LiveboxSizeInfoImpl(size, previewImagePath);
43 }
44
45 LiveboxSizeInfo::LiveboxSizeInfo(const LiveboxSizeInfo& rhs)
46 {
47         *__pLiveboxSizeInfoImpl = *rhs.__pLiveboxSizeInfoImpl;
48 }
49
50 LiveboxSizeInfo&
51 LiveboxSizeInfo::operator =(const LiveboxSizeInfo& rhs)
52 {
53         *__pLiveboxSizeInfoImpl = *rhs.__pLiveboxSizeInfoImpl;
54
55         return *this;
56 }
57
58 LiveboxSizeInfo::~LiveboxSizeInfo()
59 {
60 }
61
62 Dimension
63 LiveboxSizeInfo::GetSize() const
64 {
65         return __pLiveboxSizeInfoImpl->GetSize();
66 }
67
68 Tizen::Base::String
69 LiveboxSizeInfo::GetPreviewImagePath() const
70 {
71         return __pLiveboxSizeInfoImpl->GetPreviewImagePath();
72 }
73
74 }} // Tizen::Shell