Applied latest source code
[apps/native/preloaded/Settings.git] / inc / StWallpaperAlbumInfo.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                StWallpaperAlbumInfo.h
19  * @brief               This is the header file for WallpaperAlbumInfo class.
20  */
21
22 #ifndef _ST_WALLPAPER_ALBUM_INFO_H_
23 #define _ST_WALLPAPER_ALBUM_INFO_H_
24
25 #include <FContent.h>
26 #include <FGraphics.h>
27 #include "StTypes.h"
28
29 class AlbumInfo
30         : public Tizen::Base::Object
31 {
32 public:
33         AlbumInfo(void);
34         virtual ~AlbumInfo(void);
35
36         result Construct(void);
37         result Construct(const Tizen::Base::String& albumName, Tizen::Content::ContentType contentType ,
38                                         const Tizen::Base::Collection::IList& directoryList,
39                                         const Tizen::Base::Collection::IList& contentIdList);
40         result Construct(const AlbumInfo& albumInfo);
41
42         Tizen::Base::String GetAlbumName(void) const;
43         void SetAlbumName(const Tizen::Base::String& albumName);
44         Tizen::Base::String GetDirectory(int index) const;
45         Tizen::Base::Collection::IList* GetDirectoryListN(void) const;
46         void ClearDirectoryList(void);
47         void AppendDirectory(const Tizen::Base::String& directoryPath);
48         void AppendDirectoryList(const Tizen::Base::Collection::ICollection& directoryList);
49         int GetDirectoryCount(void) const;
50
51         void ClearContentIdList(void);
52         Tizen::Base::Collection::IList* GetContentIdListN(void) const;
53         Tizen::Content::ContentId GetContentId(int index) const;
54         void AppendContentIdList(const Tizen::Base::Collection::ICollection& contentIdList);
55         int GetContentIdCount(void) const;
56
57         Tizen::Base::String GetCreateDateString(void) const;
58         void SetCreateDateString(Tizen::Base::String& strMinimumDate, Tizen::Base::String& strMaximumDate);
59
60 protected :
61         Tizen::Base::String __albumName;
62         Tizen::Base::Collection::IList* __pDirectoryFullPathList;
63         Tizen::Base::Collection::IList* __pContentIdList;
64         Tizen::Base::String __createFileDateString;
65 };
66
67 #endif // _ST_WALLPAPER_ALBUM_INFO_H_