File Manager / inc / view /

view.h

  1. /*
  2. * Copyright 2014 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
  3. *
  4. * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
  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. #ifndef VIEW_H_
  19. #define VIEW_H_
  20.  
  21. #include <Elementary.h>
  22.  
  23. // Forward declaration:
  24. struct _app_data;
  25.  
  26. /**
  27. * @brief View edit mode data
  28. */
  29. typedef struct _edit_data {
  30. int checked_count; /**< Counter how many items checked */
  31. Eina_Bool is_all_selected; /**< Had all items are selected or not*/
  32. } edit_data;
  33.  
  34. /**
  35. * @brief View data
  36. */
  37. typedef struct _view {
  38. struct _app_data *app; /**< A descriptor of the application. */
  39.  
  40. Evas_Object *navi; /**< Naviframe object */
  41. Evas_Object *navi_layout; /**< Layout which pushed to naviframe */
  42. Elm_Object_Item *navi_item; /**< NaviItem object */
  43. Eina_Bool is_root; /**< Current path is root or not */
  44. char *curr_path; /**< Current directory path */
  45. edit_data edit; /**< View edit mode object */
  46. } view_data;
  47.  
  48. #endif /* VIEW_H_ */