2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FShellLiveboxInfo.cpp
20 * @brief This is the implementation for the LiveboxInfo class.
23 #include <unique_ptr.h>
24 #include <livebox-service/livebox-service.h>
26 #include <FBaseSysLog.h>
27 #include <FBase_StringConverter.h>
28 #include <FShellLiveboxSizeInfo.h>
30 #include "FShell_LiveboxSizeInfoImpl.h"
33 using namespace Tizen::Base;
34 using namespace Tizen::Base::Collection;
35 using namespace Tizen::Graphics;
37 namespace Tizen { namespace Shell
40 LiveboxSizeInfo::LiveboxSizeInfo(Dimension size, const String& previewImagePath)
42 __pLiveboxSizeInfoImpl = new _LiveboxSizeInfoImpl(size, previewImagePath);
45 LiveboxSizeInfo::LiveboxSizeInfo(const LiveboxSizeInfo& rhs)
47 *__pLiveboxSizeInfoImpl = *rhs.__pLiveboxSizeInfoImpl;
51 LiveboxSizeInfo::operator =(const LiveboxSizeInfo& rhs)
53 *__pLiveboxSizeInfoImpl = *rhs.__pLiveboxSizeInfoImpl;
58 LiveboxSizeInfo::~LiveboxSizeInfo()
63 LiveboxSizeInfo::GetSize() const
65 return __pLiveboxSizeInfoImpl->GetSize();
69 LiveboxSizeInfo::GetPreviewImagePath() const
71 return __pLiveboxSizeInfoImpl->GetPreviewImagePath();