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 "GlSlideShowPopUp.h"
32 #include "GlSlideSettingListener.h"
34 class FileListPresentationModel;
36 class ISlideSettingListener;
38 class FileListEditorForm
40 , public Tizen::Ui::IActionEventListener
41 , public Tizen::Ui::Controls::IFormBackEventListener
42 , public IFileOpInvalidateListener
43 , public IFormContentUpdateEventListener
44 , public ISlideSettingListener
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();
65 //From IFileOpInvalidate
66 void OnFileOpInvalidate(enum FileActionMode __actionId);
67 void OnFileOpComplete(enum FileActionMode __actionId, enum FileActionCompleteRes);
69 virtual void OnSlideSettingPopUpItemSelected(int index);
71 result InitializeFooter(void);
72 Tizen::Base::String GetDirecotyNameFromFullPath(const Tizen::Base::String& fullPath)const;
73 result SetUpPopup(void);
74 void SelectAllPressed(void);
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;
90 #endif /* _GL_FILE_LIST_EDITOR_FORM_H_ */