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.h
20 * @brief This file contains the declaration of _ImageUriDataHolder class,
21 * required internally by Image::DecodeUrl.
24 #ifndef FMEDIA_INTERNAL_IMAGEURIDATAHOLDER_H_
25 #define FMEDIA_INTERNAL_IMAGEURIDATAHOLDER_H_
28 namespace Tizen{ namespace Media{
31 * @brief This class provides the _ImageUriDataHolder
35 class _ImageUriDataHolder
36 : public Tizen::Base::Object
39 _ImageUriDataHolder(void);
40 virtual ~_ImageUriDataHolder(void);
42 Tizen::Graphics::Dimension GetDestDim(void) const;
43 long GetTimeout(void) const;
44 Tizen::Base::Utility::Uri GetUri(void) const;
45 RequestId GetRequestId(void) const;
47 void SetDestDim(const Tizen::Graphics::Dimension& destDim);
48 void SetTimeout(long timeout);
49 void SetUri(const Tizen::Base::Utility::Uri& uri);
50 Tizen::Graphics::BitmapPixelFormat GetColorFormat(void) const;
51 void SetColorFormat(Tizen::Graphics::BitmapPixelFormat colorFormat);
52 Tizen::Base::Runtime::IEventListener *GetListener(void) const;
53 void SetListener(Tizen::Base::Runtime::IEventListener *pListener);
54 void SetRequestId(RequestId reqId);
57 Tizen::Base::Utility::Uri __uri;
58 Tizen::Graphics::Dimension __destDim;
60 Tizen::Graphics::BitmapPixelFormat __colorFormat;
61 Tizen::Base::Runtime::IEventListener* __pListener;
62 RequestId __requestId;
68 #endif // FMEDIA_INTERNAL_IMAGEURIDATAHOLDER_H_