File Manager / inc / view /

popup.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 POPUP_H_
  19. #define POPUP_H_
  20.  
  21. #include "view/view.h"
  22. #include <Elementary.h>
  23.  
  24. typedef enum {
  25. POPUP_TYPE_DELETE,
  26. POPUP_TYPE_COPY_MOVE,
  27. POPUP_TYPE_NEW_FOLDER,
  28. POPUP_TYPE_FILE_EXISTS,
  29. POPUP_TYPE_WRONG_FILE_NAME,
  30. POPUP_TYPE_FAIL_TO_MOVE,
  31. POPUP_TYPE_MOVE_RECURSIVE_FAIL,
  32. POPUP_TYPE_FAIL_TO_COPY,
  33. POPUP_TYPE_COPY_RECURSIVE_FAIL,
  34. POPUP_TYPE_ERROR
  35. } popup_type;
  36.  
  37. /**
  38. * @brief Creates and shows popup depending on popup type
  39. * @param[in] view View data
  40. * @param[in] type Popup type
  41. * @return Error code. RESULT_TYPE_OK if operation success.
  42. */
  43. int popup_create(view_data *view, popup_type type);
  44.  
  45. #endif /* POPUP_H_ */