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 FMedia_ImageUriDataHolder.cpp
20 * @brief This file contains the implementation of _ImageUriDataHolder class,
21 * required internally by Image::DecodeUrl.
25 #include <FBaseRtTimer.h>
26 #include <FBaseRtITimerEventListener.h>
27 #include <FBaseRtIEventListener.h>
28 #include <FBaseUtilUri.h>
29 #include <FBaseObject.h>
30 #include <FGrpDimension.h>
31 #include <FGrpBitmapCommon.h>
32 #include "FMedia_ImageUriData.h"
33 #include "FMedia_ImageUriDataHolder.h"
35 using namespace Tizen::Base;
36 using namespace Tizen::Graphics;
37 using namespace Tizen::Base::Runtime;
38 using namespace Tizen::Base::Utility;
40 namespace Tizen{ namespace Media{
42 _ImageUriDataHolder::_ImageUriDataHolder(void)
45 __colorFormat = BITMAP_PIXEL_FORMAT_RGB565;
50 _ImageUriDataHolder::~_ImageUriDataHolder(void)
56 _ImageUriDataHolder::GetDestDim(void) const
62 _ImageUriDataHolder::GetTimeout(void) const
68 _ImageUriDataHolder::GetUri(void) const
74 _ImageUriDataHolder::SetDestDim(const Dimension& destDim)
80 _ImageUriDataHolder::SetTimeout(long timeout)
86 _ImageUriDataHolder::SetUri(const Uri& uri)
92 _ImageUriDataHolder::GetColorFormat(void) const
98 _ImageUriDataHolder::SetColorFormat(BitmapPixelFormat colorFormat)
100 __colorFormat = colorFormat;
104 _ImageUriDataHolder::GetListener(void) const
110 _ImageUriDataHolder::SetListener(IEventListener* pListener)
112 __pListener = pListener;
116 _ImageUriDataHolder::GetRequestId(void) const
122 _ImageUriDataHolder::SetRequestId(RequestId reqId)