File Manager / inc / model /
  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 _NAVI_PATH_STORAGE_H_
  19. #define _NAVI_PATH_STORAGE_H_
  20.  
  21. #include "view/view.h"
  22. #include "main-app.h"
  23.  
  24. #include <Elementary.h>
  25.  
  26. /* Forward declaration: */
  27. typedef struct _navi_path_storage navi_path_storage;
  28.  
  29. /**
  30. * @brief Create navigation path storage instance
  31. * @return Navigation path storage instance on success, otherwise NULL
  32. */
  33. navi_path_storage *navi_path_storage_create();
  34.  
  35. /**
  36. * @brief Destroy navigation path storage instance
  37. * @param[in] storage Navigation path storage instance
  38. */
  39. void navi_path_storage_destroy(navi_path_storage *storage);
  40.  
  41. /**
  42. * @brief Destroy navigation path storage instance
  43. * @param[in] storage Navigation path storage instance
  44. * @param[in] folder_name Folder name to add
  45. * @return Error code. RESULT_TYPE_OK if operation success.
  46. */
  47. int navi_path_storage_add_folder(navi_path_storage *storage, const char *folder_name);
  48.  
  49. /**
  50. * @brief Removes folders from path list to set index
  51. * @param[in] storage Navigation path storage instance
  52. * @param[in] index Path list item index
  53. * @return Error code. RESULT_TYPE_OK if operation success.
  54. */
  55. int navi_path_storage_remove_path_to_index(navi_path_storage *storage, int index);
  56.  
  57. /**
  58. * @brief Get path list
  59. * @param[in] storage Navigation path storage instance
  60. * @param[out] path_list Path list to set result
  61. * @return Error code. RESULT_TYPE_OK if operation success.
  62. */
  63. int navi_path_storage_get_path_list(navi_path_storage *storage, Eina_List **path_list);
  64.  
  65. #endif /* _NAVI_PATH_STORAGE_H_ */