Initialize Tizen 2.3
[apps/osp/Gallery.git] / inc / GlThumbnailInfo.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file                GlThumbnailInfo.h
19  * @brief               This is the header file for ThumbnailInfo class.
20  */
21
22 #ifndef _GL_THUMBNAIL_INFO_H_
23 #define _GL_THUMBNAIL_INFO_H_
24
25 #include <FContent.h>
26
27 class ThumbnailInfo
28         : public Tizen::Base::Object
29 {
30 public:
31         ThumbnailInfo(void);
32         virtual ~ThumbnailInfo(void);
33
34         void Construct(const Tizen::Content::ContentId& contentId,
35                         const Tizen::Base::String& filePath, const Tizen::Graphics::Bitmap& bitmap,
36                         const Tizen::Content::ContentType contentType, const long duration = 0);
37
38         Tizen::Content::ContentId GetContentId(void) const;
39         Tizen::Base::String GetFilePath(void) const;
40         void SetFilePath(const Tizen::Base::String& filePath);
41         Tizen::Graphics::Bitmap* GetBitmapN(void) const;
42         void SetBitmap(const Tizen::Graphics::Bitmap& bitmap);
43         Tizen::Content::ContentType GetContentType(void) const;
44         void SetContentType(const Tizen::Content::ContentType contentType);
45         long GetDuration(void) const;
46         void SetDuration(const long duration);
47
48 private:
49         Tizen::Graphics::Bitmap* CloneBitmapN(const Tizen::Graphics::Bitmap& bitmap) const;
50
51 private :
52         Tizen::Content::ContentId __contentId;
53         Tizen::Base::String __filePath;
54         Tizen::Graphics::Bitmap* __pBitmap;
55         Tizen::Content::ContentType __contentType;
56         long __duration;
57 };
58
59 #endif /* _GL_THUMBNAIL_INFO_H_ */