2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
18 * @file GlFileListEditorForm.h
19 * @brief This is the header file for FileListEditorForm class.
22 #ifndef _GL_FILE_LIST_EDITOR_FORM_H_
23 #define _GL_FILE_LIST_EDITOR_FORM_H_
29 #include "GlBaseForm.h"
30 #include "GlFileMoveTimer.h"
31 #include "GlSlideSettingListener.h"
32 #include "GlSlideShowPopUp.h"
34 class FileListPresentationModel;
36 class ISlideSettingListener;
38 class FileListEditorForm
40 , public IFileOpInvalidateListener
41 , public IFormContentUpdateEventListener
42 , public ISlideSettingListener
43 , public Tizen::Ui::IActionEventListener
44 , public Tizen::Ui::Controls::IFormBackEventListener
47 FileListEditorForm(void);
48 virtual ~FileListEditorForm(void);
49 result Initialize(void);
51 virtual result OnInitializing(void);
52 virtual result OnTerminating(void);
53 virtual void OnContentUpdated(void);
55 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
57 void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
59 void SetTitleText(const Tizen::Base::String& titleText);
60 void RefreshFolderList(void);
61 void SetFooterButtonsState(bool enableState);
62 result MoveToAlbum(Tizen::Base::String& destDirectory);
64 bool GetOverlayStatus(void) const;
66 virtual void OnFileOpInvalidate(enum FileActionMode actionId);
67 virtual void OnFileOpComplete(enum FileActionMode actionId, enum FileActionCompleteRes);
69 virtual void OnSlideSettingPopUpItemSelected(int index);
72 result InitializeFooter(void);
73 Tizen::Base::String GetDirecotyNameFromFullPath(const Tizen::Base::String& fullPath) const;
74 result SetUpPopup(void);
75 void SelectAllPressed(void);
78 Tizen::Ui::Controls::ContextMenu* __pContextMenuMore;
79 Tizen::Ui::Controls::ContextMenu* __pContextMenuShare;
80 Tizen::Ui::Controls::ContextMenu* __pContextEditorMenuMove;
81 Tizen::Ui::Controls::ContextMenu* __pContextSelectionMenuMove;
82 Tizen::Ui::Controls::Popup* __pDeletePopup;
83 Tizen::Graphics::Point __morePosition;
84 Tizen::Base::Collection::IList* __pContentDirectoryList;
85 Tizen::Base::Collection::IList* __pContentDirectoryNameList;
86 SlideShowPopUp* __pPopUp;
87 FileMoveTimer* __pFileMove;
88 bool __isCopyOperation;
89 FileListPresentationModel* __pPresentationModel;
92 #endif /* _GL_FILE_LIST_EDITOR_FORM_H_ */