Initialize Tizen 2.3
[apps/osp/Gallery.git] / inc / GlAlbumInfo.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                GlAlbumInfo.h
19  * @brief               This is the header file for AlbumInfo class.
20  */
21
22 #ifndef _GL_ALBUM_INFO_H_
23 #define _GL_ALBUM_INFO_H_
24
25 #include <FContent.h>
26 #include "GlTypes.h"
27
28 class AlbumInfo
29         : public Tizen::Base::Object
30 {
31 public:
32         AlbumInfo(void);
33         virtual ~AlbumInfo(void);
34
35         result Construct(void);
36         result Construct(const Tizen::Base::String& albumName, Tizen::Content::ContentType contentType,
37                                         const Tizen::Base::Collection::IList& directoryList,
38                                         const Tizen::Base::Collection::IList& contentIdList);
39         result Construct(const AlbumInfo& albumInfo);
40
41         Tizen::Base::String GetAlbumName(void) const;
42         void SetAlbumName(const Tizen::Base::String& albumName);
43         Tizen::Base::String GetDirectory(int index) const;
44         Tizen::Base::Collection::IList* GetDirectoryListN(void) const;
45         void ClearDirectoryList(void);
46         void AppendDirectory(const Tizen::Base::String& directoryPath);
47         void AppendDirectoryList(const Tizen::Base::Collection::ICollection& directoryList);
48         int GetDirectoryCount(void) const;
49
50         void ClearAll(void);
51         AlbumInfoType GetAlbumInfoType(void) const;
52
53         Tizen::Graphics::Bitmap* GetFolderThumnailBitmap(void) const;
54         void SetFolderThumnailBitmap(Tizen::Graphics::Bitmap* folderThumnailBitmap);
55
56         void ClearContentIdList(void);
57         Tizen::Base::Collection::IList* GetContentIdListN(void) const;
58         Tizen::Content::ContentId GetContentId(int index) const;
59         void AppendContentId(const Tizen::Content::ContentId& contentId);
60         void AppendContentIdList(const Tizen::Base::Collection::ICollection& contentIdList);
61         int GetContentIdCount(void) const;
62         result RemoveContentIdAt(const int index);
63
64 private:
65         Tizen::Base::String __albumName;
66         Tizen::Base::Collection::IList* __pDirectoryFullPathList;
67         Tizen::Base::Collection::IList* __pContentIdList;
68         Tizen::Graphics::Bitmap* __pFolderThumnailBitmap;
69 };
70
71 #endif /* _GL_ALBUM_INFO_H_ */