delete progress bar implementation
[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.0 (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 <FBase.h>
26 #include <FContent.h>
27
28 class ThumbnailInfo
29         : public Tizen::Base::Object
30 {
31 public:
32         ThumbnailInfo(void);
33         virtual ~ThumbnailInfo(void);
34
35         void Construct(const Tizen::Content::ContentId& contentId,
36                         const Tizen::Base::String& filePath, const Tizen::Graphics::Bitmap& bitmap,
37                         const Tizen::Content::ContentType contentType, const long duration = 0);
38
39         Tizen::Content::ContentId GetContentId(void) const;
40         Tizen::Base::String GetFilePath(void) const;
41         void SetFilePath(const Tizen::Base::String& filePath);
42         Tizen::Graphics::Bitmap* GetBitmapN(void) const;
43         void SetBitmap(const Tizen::Graphics::Bitmap& bitmap);
44         Tizen::Content::ContentType GetContentType(void) const;
45         void SetContentType(const Tizen::Content::ContentType contentType);
46         long GetDuration(void) const;
47         void SetDuration(const long duration);
48
49 private:
50         Tizen::Graphics::Bitmap* CloneBitmapN(const Tizen::Graphics::Bitmap& bitmap) const;
51
52 private :
53         Tizen::Content::ContentId __contentId;
54         Tizen::Base::String __filePath;
55         Tizen::Graphics::Bitmap* __pBitmap;
56         Tizen::Content::ContentType __contentType;
57         long __duration;
58 };
59
60 #endif /* _GL_THUMBNAIL_INFO_H_ */