merge commits of 2.2.1 to public
[platform/framework/native/image.git] / src / FMedia_ImageUriDataHolder.h
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   FMedia_ImageUriDataHolder.h
20  * @brief  This file contains the declaration of _ImageUriDataHolder class,
21  *               required internally by Image::DecodeUrl.
22  */
23
24 #ifndef FMEDIA_INTERNAL_IMAGEURIDATAHOLDER_H_
25 #define FMEDIA_INTERNAL_IMAGEURIDATAHOLDER_H_
26
27
28 namespace Tizen{ namespace Media{
29
30 /**
31  *      @brief  This class provides the _ImageUriDataHolder
32  *
33  *      @see    Image
34  */
35 class _ImageUriDataHolder
36         : public Tizen::Base::Object
37 {
38         public:
39         _ImageUriDataHolder(void);
40         virtual ~_ImageUriDataHolder(void);
41
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;
46
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);
55
56 private:
57         Tizen::Base::Utility::Uri __uri;
58         Tizen::Graphics::Dimension __destDim;
59         long __timeout;
60         Tizen::Graphics::BitmapPixelFormat __colorFormat;
61         Tizen::Base::Runtime::IEventListener* __pListener;
62         RequestId __requestId;
63 };
64
65
66 }} // Tizen::Media
67
68 #endif // FMEDIA_INTERNAL_IMAGEURIDATAHOLDER_H_