solving refresh on update content error
[apps/osp/Gallery.git] / inc / GlFileListEditorForm.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                GlFileListEditorForm.h
19  * @brief               This is the header file for FileListEditorForm class.
20  */
21
22 #ifndef _GL_FILE_LIST_EDITOR_FORM_H_
23 #define _GL_FILE_LIST_EDITOR_FORM_H_
24
25 #include <FApp.h>
26 #include <FBase.h>
27 #include <FContent.h>
28 #include <FUi.h>
29 #include "GlBaseForm.h"
30 #include "GlFileMoveTimer.h"
31 #include "GlSlideShowPopUp.h"
32 #include "GlSlideSettingListener.h"
33
34 class FileListPresentationModel;
35 class FileMoveTimer;
36 class ISlideSettingListener;
37
38 class FileListEditorForm
39         : public BaseForm
40         , public Tizen::Ui::IActionEventListener
41         , public Tizen::Ui::Controls::IFormBackEventListener
42         , public IFileOpInvalidateListener
43         , public IFormContentUpdateEventListener
44         , public ISlideSettingListener
45 {
46 public:
47         FileListEditorForm(void);
48         virtual ~FileListEditorForm(void);
49         result Initialize(void);
50
51         virtual result OnInitializing(void);
52         virtual result OnTerminating(void);
53         virtual void OnContentUpdated(void);
54
55         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
56
57         void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
58
59         void SetTitleText(const Tizen::Base::String& titleText);
60         void RefreshFolderList(void);
61         void SetFooterButtonsState(bool enableState);
62         result MoveToAlbum(Tizen::Base::String& destDirectory);
63
64         bool GetOverlayStatus();
65         //From IFileOpInvalidate
66         void OnFileOpInvalidate(enum FileActionMode __actionId);
67         void OnFileOpComplete(enum FileActionMode __actionId, enum FileActionCompleteRes);
68
69         virtual void OnSlideSettingPopUpItemSelected(int index);
70 private:
71         result InitializeFooter(void);
72         Tizen::Base::String GetDirecotyNameFromFullPath(const Tizen::Base::String& fullPath)const;
73         result SetUpPopup(void);
74         void SelectAllPressed(void);
75
76 private:
77         Tizen::Ui::Controls::ContextMenu* __pContextMenuMore;
78         Tizen::Ui::Controls::ContextMenu* __pContextMenuShare;
79         Tizen::Ui::Controls::ContextMenu* __pContextEditorMenuMove;
80         Tizen::Ui::Controls::ContextMenu* __pContextSelectionMenuMove;
81         Tizen::Ui::Controls::Popup* __pDeletePopup;
82         Tizen::Graphics::Point __morePosition;
83         Tizen::Base::Collection::IList* __pContentDirectoryList;
84         Tizen::Base::Collection::IList* __pContentDirectoryNameList;
85         SlideShowPopUp* __pPopUp;
86         FileListPresentationModel* __pPresentationModel;
87         FileMoveTimer* __pFileMove;
88 };
89
90 #endif /* _GL_FILE_LIST_EDITOR_FORM_H_ */